mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
The MCP library's CallToolResult type uses camelCase `isError` property, but the code was checking for snake_case `is_error`. This caused error states from SDK MCP tool failures to not be propagated correctly in the JSONRPC response. Changes: - Fix property name in query.py from `result.root.is_error` to `result.root.isError` - Add test case to verify error handling through JSONRPC handler - Test confirms error flag is now properly included in responses 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_changelog.py | ||
| test_client.py | ||
| test_errors.py | ||
| test_integration.py | ||
| test_message_parser.py | ||
| test_sdk_mcp_integration.py | ||
| test_streaming_client.py | ||
| test_subprocess_buffering.py | ||
| test_tool_callbacks.py | ||
| test_transport.py | ||
| test_types.py | ||