mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-19 13:23:50 +03:00
callerSupportsCcrRetrieve() matched the omniroute_ccr_retrieve tool by exact string equality. MCP aggregators/gateways (Docker MCP Toolkit, Claude Code) rename re-exposed tools with a namespace prefix (e.g. mcp__docker__omniroute__omniroute_ccr_retrieve, or a dotted/slashed prefix), so a fully MCP-capable caller reachable only under such a name was treated as unable to retrieve at all -- skipping both the protocol-instruction injection and, per the #7746 safety guarantee, the entire CCR compression engine for that request. Add matchesCcrRetrieveToolName(), a separator-bounded trailing-segment match (__, ., /, :) that accepts a namespaced form of the tool name while still rejecting a near-miss like omniroute_ccr_retrieve_v2 -- never a bare substring/endsWith check.