Commit bfef196
committed
fix(deps): require mcp>=1.19.0 for CallToolResult handler returns
create_sdk_mcp_server tool handlers return CallToolResult objects since
v0.1.51 (PR #717). mcp<1.19.0 cannot handle this return type from
@server.call_tool() decorated functions — it falls through the iterable
branch, fails pydantic validation, and silently swallows the tool output
into an error result.
Users upgrading claude-agent-sdk in an existing env with old mcp would
see in-process SDK MCP tools run but return validation error blobs
instead of actual results.1 parent 3600dd0 commit bfef196
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments