@@ -318,12 +318,7 @@ async function listTools(): Promise<void> {
318318 console . log ( ' No tools available' ) ;
319319 } else {
320320 for ( const tool of toolsResult . tools ) {
321- const displayName = getDisplayName ( tool ) ;
322- if ( displayName !== tool . name ) {
323- console . log ( ` - ${ tool . name } (${ displayName } ): ${ tool . description } ` ) ;
324- } else {
325- console . log ( ` - ${ tool . name } : ${ tool . description } ` ) ;
326- }
321+ console . log ( ` - id: ${ tool . name } , name: ${ getDisplayName ( tool ) } , description: ${ tool . description } ` ) ;
327322 }
328323 }
329324 } catch ( error ) {
@@ -386,7 +381,7 @@ async function runNotificationsToolWithResumability(interval: number, count: num
386381 try {
387382 console . log ( `Starting notification stream with resumability: interval=${ interval } ms, count=${ count || 'unlimited' } ` ) ;
388383 console . log ( `Using resumption token: ${ notificationsToolLastEventId || 'none' } ` ) ;
389-
384+
390385 const request : CallToolRequest = {
391386 method : 'tools/call' ,
392387 params : {
@@ -399,7 +394,7 @@ async function runNotificationsToolWithResumability(interval: number, count: num
399394 notificationsToolLastEventId = event ;
400395 console . log ( `Updated resumption token: ${ event } ` ) ;
401396 } ;
402-
397+
403398 const result = await client . request ( request , CallToolResultSchema , {
404399 resumptionToken : notificationsToolLastEventId ,
405400 onresumptiontoken : onLastEventIdUpdate
@@ -435,7 +430,7 @@ async function listPrompts(): Promise<void> {
435430 console . log ( ' No prompts available' ) ;
436431 } else {
437432 for ( const prompt of promptsResult . prompts ) {
438- console . log ( ` - ${ getDisplayName ( prompt ) } : ${ prompt . description } ` ) ;
433+ console . log ( ` - id: ${ prompt . name } , name: ${ getDisplayName ( prompt ) } , description : ${ prompt . description } ` ) ;
439434 }
440435 }
441436 } catch ( error ) {
@@ -486,7 +481,7 @@ async function listResources(): Promise<void> {
486481 console . log ( ' No resources available' ) ;
487482 } else {
488483 for ( const resource of resourcesResult . resources ) {
489- console . log ( ` - ${ getDisplayName ( resource ) } : ${ resource . uri } ` ) ;
484+ console . log ( ` - id: ${ resource . name } , name: ${ getDisplayName ( resource ) } , description : ${ resource . uri } ` ) ;
490485 }
491486 }
492487 } catch ( error ) {
0 commit comments