Files
CLIProxyAPI/internal/runtime/executor
RoySRose 02fc76b149 fix(claude): restore passthrough MCP tools wrapped with their full mcp__ name
With cloaked Claude OAuth, the model sometimes emits a caller-owned MCP tool
under the request-local virtual server while keeping the tool's full name,
e.g. mcp__<virtual>__mcp__<server>__<tool>. The existing recoveries only
handle the <server>__<tool> and <tool> tails, so this form is forwarded as an
undeclared tool name and the client cannot dispatch it.

Add a first recovery step that maps the suffix back when it is exactly the
full name of a declared passthrough tool. Ambiguous suffixes still fail
closed through the existing recovery path.
2026-10-12 11:53:16 +09:00
..