You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: preserve triple underscores in MCP tool names
This fix addresses Issue #10858 where MCP aggregators (like 1mcp) use
triple underscores (___) in tool names (e.g., playwright___browser_navigate)
but Roo Code was incorrectly converting them to hyphens.
The issue was in normalizeMcpToolName() which used the regex /__|--/ to
split tool names. This regex matched double underscores anywhere, including
within triple underscore sequences.
The fix changes the regex to /(?<!_)__(?!_)|--/ which uses negative
lookbehind/lookahead to match exactly two underscores that are not part
of a longer underscore sequence.
Changes:
- Modified split regex in normalizeMcpToolName() to preserve ___
- Added comprehensive tests for triple underscore tool names
- Added full flow test for MCP aggregator scenario
0 commit comments