Gemini CLI Fix: Embed Hash in Truncated MCP Tool Names to Avoid Collisions
chandlerm923 · ghdev · 2026-08-23
This PR resolves an issue in gemini-cli where truncated MCP tool names caused collisions. Previously, names exceeding API limits were shortened to the first and last 30 characters, causing distinct tools (e.g., create... vs delete...) to map to the same registry entry. The fix embeds an 8-character hash digest between the head and tail of the name. This ensures stability across restarts and processes while guaranteeing uniqueness within the 63-character limit.
More from coding & agent
- Anthropic GA's Computer Use and Skills API for agents to operate software and apply expertise — krishnan · 2026-08-23
- ThoughtDAG: Local-first infinite canvas for explicit LLM context management — Lopsided_Scarcity979 · 2026-08-23
- Reverse-engineering Claude Code agents: CLI tool enables cross-agent communication — KirkNewcombe · 2026-08-23
- Help: Creating a face count detection loop in ComfyUI workflow — Scardra · 2026-08-23
- Mercury Open Sources 132 AI Agent Skills for Coding Workflows — tom_doerr · 2026-08-23
- Tested ChatGPT plugin summarizing 40 tabs, turning it into a multi-session orchestrator — koltregaskes · 2026-08-23