@@ -45,8 +45,12 @@ console.log(
4545 `${ colors . BLUE } - Prompt-related options (--prompt-name, --prompt-args)${ colors . NC } ` ,
4646) ;
4747console . log ( `${ colors . BLUE } - Logging options (--log-level)${ colors . NC } ` ) ;
48- console . log ( `${ colors . BLUE } - Transport types (--transport http/sse/stdio)${ colors . NC } ` ) ;
49- console . log ( `${ colors . BLUE } - Transport inference from URL suffixes (/mcp, /sse)${ colors . NC } ` ) ;
48+ console . log (
49+ `${ colors . BLUE } - Transport types (--transport http/sse/stdio)${ colors . NC } ` ,
50+ ) ;
51+ console . log (
52+ `${ colors . BLUE } - Transport inference from URL suffixes (/mcp, /sse)${ colors . NC } ` ,
53+ ) ;
5054console . log ( `\n` ) ;
5155
5256// Get directory paths
@@ -80,20 +84,18 @@ process.on("exit", () => {
8084 ) ;
8185 }
8286
83- runningServers . forEach ( server => {
87+ runningServers . forEach ( ( server ) => {
8488 try {
8589 process . kill ( - server . pid ) ;
86- } catch ( e ) {
87- }
90+ } catch ( e ) { }
8891 } ) ;
8992} ) ;
9093
9194process . on ( "SIGINT" , ( ) => {
92- runningServers . forEach ( server => {
95+ runningServers . forEach ( ( server ) => {
9396 try {
9497 process . kill ( - server . pid ) ;
95- } catch ( e ) {
96- }
98+ } catch ( e ) { }
9799 } ) ;
98100 process . exit ( 1 ) ;
99101} ) ;
@@ -230,7 +232,9 @@ async function runErrorTest(testName, ...args) {
230232 } ) ;
231233
232234 const timeout = setTimeout ( ( ) => {
233- console . log ( `${ colors . YELLOW } Error test timed out: ${ testName } ${ colors . NC } ` ) ;
235+ console . log (
236+ `${ colors . YELLOW } Error test timed out: ${ testName } ${ colors . NC } ` ,
237+ ) ;
234238 child . kill ( ) ;
235239 } , 10000 ) ;
236240
@@ -649,14 +653,20 @@ async function runTests() {
649653 `\n${ colors . YELLOW } === Running HTTP Transport Tests ===${ colors . NC } ` ,
650654 ) ;
651655
652- console . log ( `${ colors . BLUE } Starting server-everything in streamableHttp mode.${ colors . NC } ` ) ;
653- const httpServer = spawn ( "npx" , [ "@modelcontextprotocol/server-everything" , "streamableHttp" ] , {
654- detached : true ,
655- stdio : "ignore"
656- } ) ;
656+ console . log (
657+ `${ colors . BLUE } Starting server-everything in streamableHttp mode.${ colors . NC } ` ,
658+ ) ;
659+ const httpServer = spawn (
660+ "npx" ,
661+ [ "@modelcontextprotocol/server-everything" , "streamableHttp" ] ,
662+ {
663+ detached : true ,
664+ stdio : "ignore" ,
665+ } ,
666+ ) ;
657667 runningServers . push ( httpServer ) ;
658668
659- await new Promise ( resolve => setTimeout ( resolve , 3000 ) ) ;
669+ await new Promise ( ( resolve ) => setTimeout ( resolve , 3000 ) ) ;
660670
661671 // Test 25: HTTP transport inferred from URL ending with /mcp
662672 await runBasicTest (
@@ -703,9 +713,13 @@ async function runTests() {
703713 // Kill HTTP server
704714 try {
705715 process . kill ( - httpServer . pid ) ;
706- console . log ( `${ colors . BLUE } HTTP server killed, waiting for port to be released...${ colors . NC } ` ) ;
716+ console . log (
717+ `${ colors . BLUE } HTTP server killed, waiting for port to be released...${ colors . NC } ` ,
718+ ) ;
707719 } catch ( e ) {
708- console . log ( `${ colors . RED } Error killing HTTP server: ${ e . message } ${ colors . NC } ` ) ;
720+ console . log (
721+ `${ colors . RED } Error killing HTTP server: ${ e . message } ${ colors . NC } ` ,
722+ ) ;
709723 }
710724
711725 // Print test summary
0 commit comments