Skip to content

fix: classify unknown MCP tool calls as client mistakes - #256

Merged
Snaylaker merged 4 commits into
mainfrom
mehdihimmid/si-5017-unknown-tool-client-fault
Nov 27, 2026
Merged

Snaylaker merged 4 commits into
mainfrom
mehdihimmid/si-5017-unknown-tool-client-fault

Conversation

@Snaylaker

Copy link
Copy Markdown
Contributor

Summary

  • Recognize FastMCP unknown-tool lookup refusals as expected client failures through the shared failure classifier.
  • Emit a WARNING terminal record with fault=client and suppress the Sentry error event, preserving the explicit MCP error response and request context.
  • Keep unrelated lookup errors and underlying defects classified as server failures.

Verification

  • Full suite: 674 passed, 1 xfailed.
  • HTTP/JSON-RPC regression tests cover three stale tool names and a genuinely unknown name with the real MCPIntegration and in-memory Sentry transport.
  • Verify preserved request correlation, zero Sentry events for unknown tools, and one event for a genuine server failure.
  • Ruff lint/format checks pass; Pyrefly reports zero errors (four existing warnings).

Closes https://linear.app/gitguardian/issue/SI-5017

Legacy-name recovery guidance remains tracked separately in SI-4995.

@linear

linear Bot commented Nov 24, 2026

Copy link
Copy Markdown

SI-5017

@Snaylaker Snaylaker self-assigned this Nov 24, 2026
@Snaylaker
Snaylaker requested review from julienc91 and removed request for julienc91 November 24, 2026 19:00
@Snaylaker
Snaylaker force-pushed the mehdihimmid/si-5017-unknown-tool-client-fault branch from 45f3dd7 to fedf6fc Compare November 26, 2026 14:10
@Snaylaker
Snaylaker merged commit 24a250b into main Nov 27, 2026
4 checks passed
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.

3 participants