You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct McpError usage in demo script - use ErrorData type
Fixes mypy type errors in examples/mcp_http_error_handling_demo.py:
- Use ErrorData(error_code, message) instead of McpError(string)
- Add proper type annotation for model_dump_json() return value
- Import ErrorData and INTERNAL_ERROR from mcp.types
- Add mypy type: ignore comments for conditional MCP imports
Resolves 4 mypy errors:
1. Line 39: McpError expects ErrorData, not str
2. Line 45: McpError expects ErrorData, not str
3. Line 51: McpError expects ErrorData, not str
4. Line 93: Returning Any from function declared to return str
0 commit comments