File tree Expand file tree Collapse file tree
test/integration/test/compat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ const _t: Transport | undefined = undefined;
4545void _t ;
4646
4747describe ( 'v1 API surface (bump-only compat)' , ( ) => {
48- it ( 'McpServer.tool() variadic + raw-shape + InMemory roundtrip + callTool(_, ResultSchema)' , async ( ) => {
48+ it ( 'McpServer.registerTool with raw-shape inputSchema + InMemory roundtrip + callTool(_, ResultSchema)' , async ( ) => {
4949 const warn = vi . spyOn ( console , 'warn' ) . mockImplementation ( ( ) => { } ) ;
5050 const server = new McpServer ( { name : 't' , version : '1.0.0' } ) ;
51- // C2 variadic + C4 raw-shape (object of ZodTypes, not z.object)
52- server . tool ( 'echo' , { msg : z . string ( ) } , async ( { msg } ) => ( {
51+ // C4: raw-shape inputSchema (object of ZodTypes, not z.object)
52+ server . registerTool ( 'echo' , { inputSchema : { msg : z . string ( ) } } , async ( { msg } ) => ( {
5353 content : [ { type : 'text' , text : msg } ]
5454 } ) ) ;
5555
You can’t perform that action at this time.
0 commit comments