@@ -318,12 +318,7 @@ async function listTools(): Promise<void> {
318
318
console . log ( ' No tools available' ) ;
319
319
} else {
320
320
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 } ` ) ;
327
322
}
328
323
}
329
324
} catch ( error ) {
@@ -386,7 +381,7 @@ async function runNotificationsToolWithResumability(interval: number, count: num
386
381
try {
387
382
console . log ( `Starting notification stream with resumability: interval=${ interval } ms, count=${ count || 'unlimited' } ` ) ;
388
383
console . log ( `Using resumption token: ${ notificationsToolLastEventId || 'none' } ` ) ;
389
-
384
+
390
385
const request : CallToolRequest = {
391
386
method : 'tools/call' ,
392
387
params : {
@@ -399,7 +394,7 @@ async function runNotificationsToolWithResumability(interval: number, count: num
399
394
notificationsToolLastEventId = event ;
400
395
console . log ( `Updated resumption token: ${ event } ` ) ;
401
396
} ;
402
-
397
+
403
398
const result = await client . request ( request , CallToolResultSchema , {
404
399
resumptionToken : notificationsToolLastEventId ,
405
400
onresumptiontoken : onLastEventIdUpdate
@@ -435,7 +430,7 @@ async function listPrompts(): Promise<void> {
435
430
console . log ( ' No prompts available' ) ;
436
431
} else {
437
432
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 } ` ) ;
439
434
}
440
435
}
441
436
} catch ( error ) {
@@ -486,7 +481,7 @@ async function listResources(): Promise<void> {
486
481
console . log ( ' No resources available' ) ;
487
482
} else {
488
483
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 } ` ) ;
490
485
}
491
486
}
492
487
} catch ( error ) {
0 commit comments