feat!: align model types with MCP 2025-11-25 spec (#927)
* feat!: align model types with MCP 2025-11-25 spec * fix: complete 2025-11-25 model spec conformance
This commit is contained in:
parent
42a1069833
commit
77932141e3
1 changed files with 4321 additions and 3886 deletions
|
|
@ -126,7 +126,8 @@ mod untagged_server_result {
|
|||
|
||||
#[test]
|
||||
fn round_trip_call_tool_result_preserves_variant() {
|
||||
let original = CallToolResult::success(vec![rmcp::model::Content::text("hello world")]);
|
||||
let original =
|
||||
CallToolResult::success(vec![rmcp::model::ContentBlock::text("hello world")]);
|
||||
let json = serde_json::to_value(&original).unwrap();
|
||||
let result = parse_result(wrap_response(json));
|
||||
assert!(matches!(result, ServerResult::CallToolResult(_)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue