@@ -271,7 +271,7 @@ pub mod tests_mcp_manager {
271
271
let params_map = params. as_object ( ) . unwrap ( ) . clone ( ) ;
272
272
273
273
let result = run_tool_via_command (
274
- "npx -y @modelcontextprotocol/server-everything" . to_string ( ) ,
274
+ "npx -y @modelcontextprotocol/server-everything@2025.9.12 " . to_string ( ) ,
275
275
"add" . to_string ( ) ,
276
276
HashMap :: new ( ) ,
277
277
params_map,
@@ -295,7 +295,7 @@ pub mod tests_mcp_manager {
295
295
"npx" . to_string ( ) ,
296
296
Some ( vec ! [
297
297
"-y" . to_string( ) ,
298
- "@modelcontextprotocol/server-everything" . to_string( ) ,
298
+ "@modelcontextprotocol/server-everything@2025.9.12 " . to_string( ) ,
299
299
"sse" . to_string( ) ,
300
300
] ) as Option < Vec < String > > ,
301
301
Some ( envs) ,
@@ -335,25 +335,31 @@ pub mod tests_mcp_manager {
335
335
336
336
#[ tokio:: test]
337
337
async fn test_list_tools_via_command ( ) {
338
- let result = list_tools_via_command ( "npx -y @modelcontextprotocol/server-everything" , None ) . await ;
338
+ let result = list_tools_via_command ( "npx -y @modelcontextprotocol/server-everything@2025.9.12 " , None ) . await ;
339
339
assert ! ( result. is_ok( ) ) ;
340
340
let unwrapped = result. unwrap ( ) ;
341
- assert ! ( unwrapped. len( ) == 11 ) ;
342
- let tools = [
341
+
342
+ // Debug output to see actual tools
343
+ println ! ( "Actual number of tools: {}" , unwrapped. len( ) ) ;
344
+ println ! ( "Actual tools: {:?}" , unwrapped. iter( ) . map( |t| & t. name) . collect:: <Vec <_>>( ) ) ;
345
+
346
+ // The MCP server-everything package now returns 10 tools
347
+ assert_eq ! ( unwrapped. len( ) , 10 , "Expected exactly 10 tools, got {}" , unwrapped. len( ) ) ;
348
+
349
+ let expected_tools = [
343
350
"echo" ,
344
- "add" ,
351
+ "add" ,
345
352
"longRunningOperation" ,
346
353
"printEnv" ,
347
354
"sampleLLM" ,
348
355
"getTinyImage" ,
349
356
"annotatedMessage" ,
350
357
"getResourceReference" ,
351
- "startElicitation" ,
352
358
"getResourceLinks" ,
353
359
"structuredContent" ,
354
360
] ;
355
- for tool in tools {
356
- assert ! ( unwrapped. iter( ) . any( |t| t. name == tool) ) ;
361
+ for tool in expected_tools {
362
+ assert ! ( unwrapped. iter( ) . any( |t| t. name == tool) , "Missing expected tool: {}" , tool ) ;
357
363
}
358
364
}
359
365
@@ -365,7 +371,7 @@ pub mod tests_mcp_manager {
365
371
"npx" . to_string ( ) ,
366
372
Some ( vec ! [
367
373
"-y" . to_string( ) ,
368
- "@modelcontextprotocol/server-everything" . to_string( ) ,
374
+ "@modelcontextprotocol/server-everything@2025.9.12 " . to_string( ) ,
369
375
"sse" . to_string( ) ,
370
376
] ) as Option < Vec < String > > ,
371
377
Some ( envs) ,
@@ -390,22 +396,28 @@ pub mod tests_mcp_manager {
390
396
} ) ;
391
397
assert ! ( result. is_ok( ) ) ;
392
398
let unwrapped = result. unwrap ( ) ;
393
- assert ! ( unwrapped. len( ) == 11 ) ;
394
- let tools = [
399
+
400
+ // Debug output to see actual tools
401
+ println ! ( "SSE - Actual number of tools: {}" , unwrapped. len( ) ) ;
402
+ println ! ( "SSE - Actual tools: {:?}" , unwrapped. iter( ) . map( |t| & t. name) . collect:: <Vec <_>>( ) ) ;
403
+
404
+ // The MCP server-everything package now returns 10 tools
405
+ assert_eq ! ( unwrapped. len( ) , 10 , "Expected exactly 10 tools, got {}" , unwrapped. len( ) ) ;
406
+
407
+ let expected_tools = [
395
408
"echo" ,
396
- "add" ,
409
+ "add" ,
397
410
"longRunningOperation" ,
398
411
"printEnv" ,
399
412
"sampleLLM" ,
400
413
"getTinyImage" ,
401
414
"annotatedMessage" ,
402
415
"getResourceReference" ,
403
- "startElicitation" ,
404
416
"getResourceLinks" ,
405
417
"structuredContent" ,
406
418
] ;
407
- for tool in tools {
408
- assert ! ( unwrapped. iter( ) . any( |t| t. name == tool) ) ;
419
+ for tool in expected_tools {
420
+ assert ! ( unwrapped. iter( ) . any( |t| t. name == tool) , "Missing expected tool: {}" , tool ) ;
409
421
}
410
422
}
411
423
@@ -417,7 +429,7 @@ pub mod tests_mcp_manager {
417
429
"npx" . to_string ( ) ,
418
430
Some ( vec ! [
419
431
"-y" . to_string( ) ,
420
- "@modelcontextprotocol/server-everything" . to_string( ) ,
432
+ "@modelcontextprotocol/server-everything@2025.9.12 " . to_string( ) ,
421
433
"streamableHttp" . to_string( ) ,
422
434
] ) as Option < Vec < String > > ,
423
435
Some ( envs) ,
@@ -435,7 +447,29 @@ pub mod tests_mcp_manager {
435
447
let result = list_tools_via_http ( "http://localhost:8002/mcp" , None ) . await ;
436
448
assert ! ( result. is_ok( ) ) ;
437
449
let unwrapped = result. unwrap ( ) ;
438
- assert ! ( unwrapped. len( ) == 11 ) ;
450
+
451
+ // Debug output to see actual tools
452
+ println ! ( "HTTP - Actual number of tools: {}" , unwrapped. len( ) ) ;
453
+ println ! ( "HTTP - Actual tools: {:?}" , unwrapped. iter( ) . map( |t| & t. name) . collect:: <Vec <_>>( ) ) ;
454
+
455
+ // The MCP server-everything package now returns 10 tools
456
+ assert_eq ! ( unwrapped. len( ) , 10 , "Expected exactly 10 tools, got {}" , unwrapped. len( ) ) ;
457
+
458
+ let expected_tools = [
459
+ "echo" ,
460
+ "add" ,
461
+ "longRunningOperation" ,
462
+ "printEnv" ,
463
+ "sampleLLM" ,
464
+ "getTinyImage" ,
465
+ "annotatedMessage" ,
466
+ "getResourceReference" ,
467
+ "getResourceLinks" ,
468
+ "structuredContent" ,
469
+ ] ;
470
+ for tool in expected_tools {
471
+ assert ! ( unwrapped. iter( ) . any( |t| t. name == tool) , "Missing expected tool: {}" , tool) ;
472
+ }
439
473
}
440
474
441
475
#[ tokio:: test]
@@ -446,7 +480,7 @@ pub mod tests_mcp_manager {
446
480
"npx" . to_string ( ) ,
447
481
Some ( vec ! [
448
482
"-y" . to_string( ) ,
449
- "@modelcontextprotocol/server-everything" . to_string( ) ,
483
+ "@modelcontextprotocol/server-everything@2025.9.12 " . to_string( ) ,
450
484
"streamableHttp" . to_string( ) ,
451
485
] ) as Option < Vec < String > > ,
452
486
Some ( envs) ,
0 commit comments