@@ -23,12 +23,6 @@ export const resources = new Map<string, {
2323 blob ?: Uint8Array ;
2424} > ( ) ;
2525
26- // Add a simple hello world resource
27- resources . set ( "hello://world" , {
28- name : "Hello World Message" ,
29- mimeType : "text/plain" ,
30- text : "Hello, World! This is my first MCP resource."
31- } ) ;
3226
3327// Keep a reference to the server for notifications
3428let serverInstance : Server | null = null ;
@@ -93,7 +87,7 @@ export const resourceTemplates: Array<{
9387 {
9488 name : "mars-rover-photo" ,
9589 description : "NASA Mars Rover photograph" ,
96- uriTemplate : "nasa://mars_rover /photo?rover={rover}&id={id}" ,
90+ uriTemplate : "nasa://mars-rover /photo?rover={rover}&id={id}" ,
9791 generator : async ( params ) => {
9892 const rover = params [ "rover" ] || "curiosity" ;
9993 const id = params [ "id" ] || "1" ;
@@ -421,7 +415,7 @@ async function startServer() {
421415 } ,
422416 {
423417 name : "NASA Mars Rover Photos" ,
424- id : "nasa/mars_rover " ,
418+ id : "nasa/mars-rover " ,
425419 description : "Browse photos from NASA's Mars rovers"
426420 } ,
427421 {
@@ -808,7 +802,7 @@ async function startServer() {
808802 }
809803 } ,
810804 {
811- name : "nasa/mars_rover " ,
805+ name : "nasa/mars-rover " ,
812806 description : "NASA Mars Rover Photos - images from Mars rovers" ,
813807 inputSchema : {
814808 type : "object" ,
@@ -1264,9 +1258,9 @@ export function registerMcpTools() {
12641258 return await handleToolCall ( 'nasa/donki' , args ) ;
12651259 } ) ;
12661260
1267- registerGlobalTool ( 'mcp__nasamars_rover ' , async ( args : Record < string , any > ) => {
1261+ registerGlobalTool ( 'mcp__nasamars-rover ' , async ( args : Record < string , any > ) => {
12681262 console . log ( 'MCP NASA Mars Rover called with args:' , args ) ;
1269- return await handleToolCall ( 'nasa/mars_rover ' , args ) ;
1263+ return await handleToolCall ( 'nasa/mars-rover ' , args ) ;
12701264 } ) ;
12711265
12721266 registerGlobalTool ( 'mcp__nasaeonet' , async ( args : Record < string , any > ) => {
0 commit comments