@@ -308,17 +308,17 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
308308 method: "_proxy/initialize",
309309 session: None,
310310 params: Object {
311+ "protocolVersion": Number(1),
311312 "clientCapabilities": Object {
312- "auth": Object {
313- "terminal": Bool(false),
314- },
315313 "fs": Object {
316314 "readTextFile": Bool(false),
317315 "writeTextFile": Bool(false),
318316 },
319317 "terminal": Bool(false),
318+ "auth": Object {
319+ "terminal": Bool(false),
320+ },
320321 },
321- "protocolVersion": Number(1),
322322 },
323323 },
324324 ),
@@ -332,17 +332,17 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
332332 method: "_proxy/initialize",
333333 session: None,
334334 params: Object {
335+ "protocolVersion": Number(1),
335336 "clientCapabilities": Object {
336- "auth": Object {
337- "terminal": Bool(false),
338- },
339337 "fs": Object {
340338 "readTextFile": Bool(false),
341339 "writeTextFile": Bool(false),
342340 },
343341 "terminal": Bool(false),
342+ "auth": Object {
343+ "terminal": Bool(false),
344+ },
344345 },
345- "protocolVersion": Number(1),
346346 },
347347 },
348348 ),
@@ -354,23 +354,23 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
354354 id: String("id:1"),
355355 is_error: false,
356356 payload: Object {
357+ "protocolVersion": Number(1),
357358 "agentCapabilities": Object {
358- "auth": Object {},
359359 "loadSession": Bool(false),
360- "mcpCapabilities": Object {
361- "acp": Bool(true),
362- "http": Bool(false),
363- "sse": Bool(false),
364- },
365360 "promptCapabilities": Object {
361+ "image": Bool(false),
366362 "audio": Bool(false),
367363 "embeddedContext": Bool(false),
368- "image": Bool(false),
364+ },
365+ "mcpCapabilities": Object {
366+ "http": Bool(false),
367+ "sse": Bool(false),
368+ "acp": Bool(true),
369369 },
370370 "sessionCapabilities": Object {},
371+ "auth": Object {},
371372 },
372373 "authMethods": Array [],
373- "protocolVersion": Number(1),
374374 },
375375 },
376376 ),
@@ -382,23 +382,23 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
382382 id: String("id:0"),
383383 is_error: false,
384384 payload: Object {
385+ "protocolVersion": Number(1),
385386 "agentCapabilities": Object {
386- "auth": Object {},
387387 "loadSession": Bool(false),
388- "mcpCapabilities": Object {
389- "acp": Bool(true),
390- "http": Bool(false),
391- "sse": Bool(false),
392- },
393388 "promptCapabilities": Object {
389+ "image": Bool(false),
394390 "audio": Bool(false),
395391 "embeddedContext": Bool(false),
396- "image": Bool(false),
392+ },
393+ "mcpCapabilities": Object {
394+ "http": Bool(false),
395+ "sse": Bool(false),
396+ "acp": Bool(true),
397397 },
398398 "sessionCapabilities": Object {},
399+ "auth": Object {},
399400 },
400401 "authMethods": Array [],
401- "protocolVersion": Number(1),
402402 },
403403 },
404404 ),
@@ -430,10 +430,10 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
430430 "cwd": String("/"),
431431 "mcpServers": Array [
432432 Object {
433- "headers": Array [],
434- "name": String("test"),
435433 "type": String("http"),
434+ "name": String("test"),
436435 "url": String("acp:url:0"),
436+ "headers": Array [],
437437 },
438438 ],
439439 },
@@ -499,13 +499,13 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
499499 method: "session/prompt",
500500 session: None,
501501 params: Object {
502+ "sessionId": String("session:0"),
502503 "prompt": Array [
503504 Object {
504- "text": String("{\"command\":\"call_tool\",\"server\":\"test\",\"tool\":\"echo\",\"params\":{\"message\":\"Hello from trace test!\"}}"),
505505 "type": String("text"),
506+ "text": String("{\"command\":\"call_tool\",\"server\":\"test\",\"tool\":\"echo\",\"params\":{\"message\":\"Hello from trace test!\"}}"),
506507 },
507508 ],
508- "sessionId": String("session:0"),
509509 },
510510 },
511511 ),
@@ -519,13 +519,13 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
519519 method: "session/prompt",
520520 session: None,
521521 params: Object {
522+ "sessionId": String("session:0"),
522523 "prompt": Array [
523524 Object {
524- "text": String("{\"command\":\"call_tool\",\"server\":\"test\",\"tool\":\"echo\",\"params\":{\"message\":\"Hello from trace test!\"}}"),
525525 "type": String("text"),
526+ "text": String("{\"command\":\"call_tool\",\"server\":\"test\",\"tool\":\"echo\",\"params\":{\"message\":\"Hello from trace test!\"}}"),
526527 },
527528 ],
528- "sessionId": String("session:0"),
529529 },
530530 },
531531 ),
@@ -539,12 +539,12 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
539539 method: "initialize",
540540 session: None,
541541 params: Object {
542+ "protocolVersion": String("2025-11-25"),
542543 "capabilities": Object {},
543544 "clientInfo": Object {
544545 "name": String("rmcp"),
545546 "version": String("1.7.0"),
546547 },
547- "protocolVersion": String("2025-11-25"),
548548 },
549549 },
550550 ),
@@ -556,15 +556,15 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
556556 id: String("id:7"),
557557 is_error: false,
558558 payload: Object {
559+ "protocolVersion": String("2025-11-25"),
559560 "capabilities": Object {
560561 "tools": Object {},
561562 },
562- "instructions": String("A simple test MCP server with an echo tool"),
563- "protocolVersion": String("2025-11-25"),
564563 "serverInfo": Object {
565564 "name": String("rmcp"),
566565 "version": String("1.7.0"),
567566 },
567+ "instructions": String("A simple test MCP server with an echo tool"),
568568 },
569569 },
570570 ),
@@ -592,10 +592,10 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
592592 "_meta": Object {
593593 "progressToken": Number(0),
594594 },
595+ "name": String("echo"),
595596 "arguments": Object {
596597 "message": String("Hello from trace test!"),
597598 },
598- "name": String("echo"),
599599 },
600600 },
601601 ),
@@ -609,14 +609,14 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
609609 payload: Object {
610610 "content": Array [
611611 Object {
612- "text": String("{\"result\":\"Echo: Hello from trace test!\"}"),
613612 "type": String("text"),
613+ "text": String("{\"result\":\"Echo: Hello from trace test!\"}"),
614614 },
615615 ],
616- "isError": Bool(false),
617616 "structuredContent": Object {
618617 "result": String("Echo: Hello from trace test!"),
619618 },
619+ "isError": Bool(false),
620620 },
621621 },
622622 ),
@@ -631,11 +631,11 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
631631 params: Object {
632632 "sessionId": String("session:0"),
633633 "update": Object {
634+ "sessionUpdate": String("agent_message_chunk"),
634635 "content": Object {
635- "text": String("OK: CallToolResult { content: [Annotated { raw: Text(RawTextContent { text: \"{\\\"result\\\":\\\"Echo: Hello from trace test!\\\"}\", meta: None }), annotations: None }], structured_content: Some(Object {\"result\": String(\"Echo: Hello from trace test!\")}), is_error: Some(false), meta: None }"),
636636 "type": String("text"),
637+ "text": String("OK: CallToolResult { content: [Annotated { raw: Text(RawTextContent { text: \"{\\\"result\\\":\\\"Echo: Hello from trace test!\\\"}\", meta: None }), annotations: None }], structured_content: Some(Object {\"result\": String(\"Echo: Hello from trace test!\")}), is_error: Some(false), meta: None }"),
637638 },
638- "sessionUpdate": String("agent_message_chunk"),
639639 },
640640 },
641641 },
@@ -663,11 +663,11 @@ async fn test_trace_mcp_tool_call() -> Result<(), agent_client_protocol::Error>
663663 params: Object {
664664 "sessionId": String("session:0"),
665665 "update": Object {
666+ "sessionUpdate": String("agent_message_chunk"),
666667 "content": Object {
667- "text": String("OK: CallToolResult { content: [Annotated { raw: Text(RawTextContent { text: \"{\\\"result\\\":\\\"Echo: Hello from trace test!\\\"}\", meta: None }), annotations: None }], structured_content: Some(Object {\"result\": String(\"Echo: Hello from trace test!\")}), is_error: Some(false), meta: None }"),
668668 "type": String("text"),
669+ "text": String("OK: CallToolResult { content: [Annotated { raw: Text(RawTextContent { text: \"{\\\"result\\\":\\\"Echo: Hello from trace test!\\\"}\", meta: None }), annotations: None }], structured_content: Some(Object {\"result\": String(\"Echo: Hello from trace test!\")}), is_error: Some(false), meta: None }"),
669670 },
670- "sessionUpdate": String("agent_message_chunk"),
671671 },
672672 },
673673 },
0 commit comments