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
- Seedance 2.0 unlimited for $5: Dreamina CLI lets your agent run video generation end-to-end — Aiden_Tech_Ai · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Ambient open-sources anti-slop writing model trained on a single 96GB RTX PRO 6000 — IridiumEagle · 2026-11-30
- Devs say vibe-coding workflow is draining the joy of programming — weskambale · 2026-11-30
- Slipwing: Open-Source Windows MCP Server Lets Agents Drive Chrome and Desktop Apps in the Background — Sudden_Analysis8617 · 2026-11-30
- ByteDance's TRAE launches TRAE Bao: a cloud-based coding assistant you control from your phone — xiaohu · 2026-11-30