Skip to content

Handle MCP HTTP request failures#285

Open
volkthienpreecha wants to merge 1 commit intomsoedov:mainfrom
volkthienpreecha:fix-mcp-http-errors
Open

Handle MCP HTTP request failures#285
volkthienpreecha wants to merge 1 commit intomsoedov:mainfrom
volkthienpreecha:fix-mcp-http-errors

Conversation

@volkthienpreecha
Copy link
Copy Markdown

I found this while looking at issue #196.

This change adds one small request helper for the MCP backend calls. The helper catches HTTP status errors, request failures, and invalid JSON. It returns a small error object instead of letting those cases fall through.

I kept the existing tool names and backend API paths the same.

Although, I'd note I did not run the full suite. This repo imports a lot of runtime dependencies in tests/conftest.py, so I ran the focused MCP test file for this change.

Happy to adjust anything you find necessary.

Cheers,

Volk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant