@@ -526,11 +526,11 @@ describe("tool()", () => {
526
526
527
527
// new api
528
528
mcpServer . tool ( "test (new api)" , {
529
- description : "Test description" ,
530
- callback : async ( { } ) => ( {
529
+ description : "Test description" ,
530
+ callback : async ( ) => ( {
531
531
content : [
532
532
{
533
- type : "text" ,
533
+ type : "text" as const ,
534
534
text : "Test response" ,
535
535
} ,
536
536
] ,
@@ -583,11 +583,11 @@ describe("tool()", () => {
583
583
} ) ) ;
584
584
585
585
mcpServer . tool ( "test (new api)" , {
586
- annotations : { title : "Test Tool" , readOnlyHint : true } ,
587
- callback : async ( { } ) => ( {
586
+ annotations : { title : "Test Tool" , readOnlyHint : true } ,
587
+ callback : async ( ) => ( {
588
588
content : [
589
589
{
590
- type : "text" ,
590
+ type : "text" as const ,
591
591
text : "Test response" ,
592
592
} ,
593
593
] ,
@@ -761,8 +761,8 @@ describe("tool()", () => {
761
761
description : "A tool with everything but empty params" ,
762
762
inputSchema : { } ,
763
763
annotations : { title : "Complete Test Tool with empty params" , readOnlyHint : true , openWorldHint : false } ,
764
- callback : async ( { } ) => ( {
765
- content : [ { type : "text" , text : "Test response" } ]
764
+ callback : async ( ) => ( {
765
+ content : [ { type : "text" as const , text : "Test response" } ]
766
766
} )
767
767
} ) ;
768
768
0 commit comments