gemini-cli PR fixes MCP policy mismatch, makes empty allowed list fail-closed
CoralGarden52 · ghdev · 2026-09-04
PR #29200 in google-gemini/gemini-cli fixes inconsistent MCP policy enforcement at runtime:
- McpClientManager previously used exact includes() checks, missing the CLI's case-insensitive, whitespace-trimmed server-name matching — so a name like " PROBE " could bypass policy. Names are now normalized at the runtime boundary.
- An explicitly empty mcp.allowed list was treated as allowing all servers; it is now fail-closed, while distinguishing an omitted allowlist (undefined) from an explicit empty one ([] when MCP is globally disabled).
Validation includes 41 passing MCP tests, 237 config tests, 43 CLI integration tests, plus a passing preflight (formatting, build, lint, typecheck); sandbox integration tests couldn't run in the container since Bubblewrap can't mount /proc.
More from coding & agent
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05
- xAI launches Grok Bot: autonomous AI teammates that live in Slack and Teams — Baconbrix · 2026-12-05
- Dev tries Laravel Go days after launch, deploys web apps to Google Cloud — rseroter · 2026-12-05