@@ -67,11 +67,13 @@ function createMcpServer(): McpServer {
6767 ) ;
6868
6969 // Simple echo tool for testing authenticated calls
70- mcpServer . tool (
70+ mcpServer . registerTool (
7171 'echo' ,
72- 'Echoes back the provided message - used for testing authenticated calls' ,
7372 {
74- message : z . string ( ) . optional ( ) . describe ( 'The message to echo back' )
73+ description : 'Echoes back the provided message - used for testing authenticated calls' ,
74+ inputSchema : {
75+ message : z . string ( ) . optional ( ) . describe ( 'The message to echo back' )
76+ }
7577 } ,
7678 async ( args : { message ?: string } ) => {
7779 const message = args . message || 'No message provided' ;
@@ -82,10 +84,11 @@ function createMcpServer(): McpServer {
8284 ) ;
8385
8486 // Simple test tool with no arguments
85- mcpServer . tool (
87+ mcpServer . registerTool (
8688 'test-tool' ,
87- 'A simple test tool that returns a success message' ,
88- { } ,
89+ {
90+ description : 'A simple test tool that returns a success message'
91+ } ,
8992 async ( ) => {
9093 return {
9194 content : [ { type : 'text' , text : 'test' } ]
@@ -94,11 +97,13 @@ function createMcpServer(): McpServer {
9497 ) ;
9598
9699 // Privileged tool requiring 'admin' scope - for step-up auth testing
97- mcpServer . tool (
100+ mcpServer . registerTool (
98101 'admin-action' ,
99- 'A privileged action that requires admin scope - used for step-up auth testing' ,
100102 {
101- action : z . string ( ) . optional ( ) . describe ( 'The admin action to perform' )
103+ description : 'A privileged action that requires admin scope - used for step-up auth testing' ,
104+ inputSchema : {
105+ action : z . string ( ) . optional ( ) . describe ( 'The admin action to perform' )
106+ }
102107 } ,
103108 async ( args : { action ?: string } ) => {
104109 const action = args . action || 'default-admin-action' ;
0 commit comments