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