Repository navigation
Description
Depends on: the "to file" row in "Phase 3, Track: ToolHive — The remaining ToolHive changes for audit, sign-out, and schedules" (#2570) for the vMCP saying whether a failed call reached the backend
Related: #2536, #2570, #2564, #2731, #2812
Removes shortcut: a tool error result is read as a completed call, even when the gateway's backend call failed after it may have run (#2536)
Problem
The MCP client in #2536 counts any tools/call result as a completed call. ToolHive's vMCP (v0.65.0, on the 2025-11-25 protocol the client uses) returns every backend failure as an ordinary tool error result at HTTP 200, including failures after it sent the call to the backend: a timeout, a dropped connection, or a backend 5xx. The tool may have run, but the model is told it failed, and the send-once claim is completed, so a new tool call can run it again.
The vMCP also returns its own refusals before it calls the backend as tool error results, so the client cannot tell "never ran" from "may have run" from "ran and failed".
Design
- credentials-and-lifecycle.md: (9) vMCP decision and provider credential: which answers mean the call never ran, and unknown outcomes
- credentials-and-lifecycle.md: Pauses and restart
- mcp-gateway-modes.md: one protocol, two modes
What
- Decision needed before starting, recorded in the design: how a gateway tells the MCP client, for a failed call, whether it sent the call to the backend, in a way every gateway can follow and a backend cannot forge (the vMCP relays backend
_metaunchanged today). It must cover tool error results, JSON-RPC errors, and HTTP errors whose body has no JSON-RPC reply. - The ToolHive change for the vMCP, filed and linked from Phase 3, Track: ToolHive — The remaining ToolHive changes for audit, sign-out, and schedules #2570.
- The MCP client reads it: a call the gateway did not send fails as not run and is not retried automatically; a call it may have sent is an unknown outcome; with no signal, today's rules apply. mecak8s reports gateway call dispatch and outcome to the identity broker #2731 reports what the client decided.
Done when
Through the embedded vMCP, a backend timeout after the call was sent reports an unknown outcome, a vMCP refusal before the backend reports the call as not run, and a gateway that sends no signal keeps today's behaviour.
Activity
docs(mcp): mark tool error results after a backend call as a shortcut…
docs(agent-identity): replace the vMCP mark row with the open question (