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
- raylib 6.2 ships with 300+ improvements and 100 new contributors, 20 new API functions — jsuarez · 2026-10-16
- "Vibecoding" is as misleading a label as "AI" and "SI," dev complains — eschadiol · 2026-10-16
- Doc2Harness: New benchmark finds best coding agent passes only 53% across 329 cases — _akhaliq · 2026-10-16
- Perplexity open-sources SPACE, the Firecracker microVM sandbox behind Perplexity Computer — perplexity_ai · 2026-10-16
- Blackstone goes all-in on Factory for autonomous software development — matanSF · 2026-10-16
- Longtime Windsurf user cancels $10/month legacy plan, citing AI subscription fatigue — tristanbob · 2026-10-16