File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -27,21 +27,21 @@ server.tool(
27
27
} ,
28
28
] ,
29
29
} ;
30
- } ,
31
- {
32
- title : 'Greeting Tool' ,
33
- readOnlyHint : true ,
34
- openWorldHint : false
35
30
}
36
31
) ;
37
32
38
- // Register a tool that sends multiple greetings with notifications
33
+ // Register a tool that sends multiple greetings with notifications (with annotations)
39
34
server . tool (
40
35
'multi-greet' ,
41
36
'A tool that sends different greetings with delays between them' ,
42
37
{
43
38
name : z . string ( ) . describe ( 'Name to greet' ) ,
44
39
} ,
40
+ {
41
+ title : 'Multiple Greeting Tool' ,
42
+ readOnlyHint : true ,
43
+ openWorldHint : false
44
+ } ,
45
45
async ( { name } , { sendNotification } ) : Promise < CallToolResult > => {
46
46
const sleep = ( ms : number ) => new Promise ( resolve => setTimeout ( resolve , ms ) ) ;
47
47
@@ -72,11 +72,6 @@ server.tool(
72
72
}
73
73
] ,
74
74
} ;
75
- } ,
76
- {
77
- title : 'Multiple Greeting Tool' ,
78
- readOnlyHint : true ,
79
- openWorldHint : false
80
75
}
81
76
) ;
82
77
You can’t perform that action at this time.
0 commit comments