mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-30 19:45:59 +08:00
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.