Skip to content

fix(mcp): separate tool errors from transport breaker - #79298

Closed
Muhtasham wants to merge 1 commit into
NousResearch:mainfrom
Muhtasham:feat/mcp-breaker-error-classification
Closed

Muhtasham wants to merge 1 commit into
NousResearch:mainfrom
Muhtasham:feat/mcp-breaker-error-classification

Conversation

@Muhtasham

Copy link
Copy Markdown

Intent

Keep one tool-level validation or business error from disabling every tool on an otherwise healthy MCP server.

Behavior

A completed tools/call RPC now closes the server transport breaker even when the MCP result has isError=true. Missing sessions and raised transport exceptions retain the existing breaker behavior.

Verification

  • scripts/run_tests.sh tests/tools/test_mcp_circuit_breaker.py -q (8 passed)
  • scripts/run_tests.sh tests/tools/test_mcp_tool.py tests/tools/test_mcp_tool_session_expired.py -q (103 passed)
  • Ruff on both changed files

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists tool/mcp MCP client and OAuth needs-decision Awaiting maintainer decision before any implementation labels Aug 5, 2026
@Muhtasham Muhtasham closed this by deleting the head repository Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-decision Awaiting maintainer decision before any implementation P2 Medium — degraded but workaround exists tool/mcp MCP client and OAuth type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants