mirror of
https://github.com/openai/codex.git
synced 2026-04-26 15:45:02 +00:00
[mcp] Support MCP Apps part 2 - Add meta to mcp tool call result. (#16465)
- [x] Add meta to mcp tool call result.
This commit is contained in:
@@ -482,6 +482,7 @@ fn mcp_tool_call_begin_and_end_emit_item_events() {
|
||||
result: Some(McpToolCallResult {
|
||||
content: Vec::new(),
|
||||
structured_content: None,
|
||||
meta: None,
|
||||
}),
|
||||
error: None,
|
||||
duration_ms: Some(1_000),
|
||||
@@ -613,6 +614,7 @@ fn mcp_tool_call_defaults_arguments_and_preserves_structured_content() {
|
||||
"text": "done",
|
||||
})],
|
||||
structured_content: Some(json!({ "status": "ok" })),
|
||||
meta: None,
|
||||
}),
|
||||
error: None,
|
||||
duration_ms: Some(10),
|
||||
|
||||
Reference in New Issue
Block a user