gemini-cli 0.70.0 Skips Insecure MCP Servers

By Rogier Muller11.23.26
gemini-cli 0.70.0 Skips Insecure MCP Servers

Gemini CLI 0.70.0 now skips system MCP servers with insecure command permissions, and gemini-cli, the google-gemini terminal agent, also keeps ASK_USER in place for shell commands with unresolved expansion. That pairing matters more than the session preview polish in the same release: the CLI is tightening the places where local commands and external integrations can cross a boundary.

Question Answer
Who must act Gemini CLI users who configure system MCP servers or shell command rules should review those entries.
What changes for them The CLI skips system MCP servers with insecure command permissions and keeps ASK_USER for unresolved shell expansion.
Who can skip Users outside MCP, shell commands, IDE discovery, and resumed chats can treat this as a maintenance release.

Read the permission fixes first

The sharpest change is the MCP one. Gemini CLI 0.70.0 skips system MCP servers when their command permissions are insecure.

MCP is the layer that lets the CLI reach external systems through configured servers. In a coding terminal, that makes permissions part of the execution path rather than mere configuration housekeeping. A bad command permission on a system server is now something the CLI refuses to quietly carry forward.

The shell-command fixes point in the same direction. The release keeps ASK_USER when a shell command has unresolved expansion, and it matches commandPrefix and commandRegex rules against the top-level command argument. Those are small words in a changelog, but they affect whether a command is treated as something already approved or something that still needs a human decision.

Rolling this out in your team?

We train engineering teams on their own codebase in two days. Gemini setup, shared rules and review included.

Session state gets less surprising

The release also fixes several places where the CLI could show or restore the wrong working state. It preserves the selected worktree across authentication restarts, restores workspace directories only after resumeChat succeeds, and preserves an interrupted placeholder after empty model responses to tool turns.

That matters in ordinary Gemini CLI work because the agent is sitting inside a real filesystem. If authentication restarts or a chat resumes against the wrong worktree, the next tool call can be aimed at the wrong checkout.

Session previews get a cleanup too. Unicode prompts are preserved, and ANSI fragments are stripped from previews. That is the kind of fix nobody wants to think about, until a preview becomes the only quick clue about which conversation is worth reopening.

Model limits and timeouts get cleaned up

Gemini CLI 0.70.0 scales undici bodyTimeout when the request timeout exceeds the 300 second default. It also reports accurate output token limits in the models list, initializes auth capabilities, and deduplicates options when listing models.

These are not flashy changes. They reduce false signals. A model list with wrong output limits can push a user into a bad plan before the first prompt is sent.

The timeout fix continues a theme from gemini-cli 0.69.0 Adds Stats, Fixes Timeouts. The CLI is still being hardened around the boring edges where long-running terminal work usually fails.

Try it on a small repo first

Pick one repository where Gemini CLI already has a normal job: inspect a change, explain a failure, or run a small edit loop. Use the same MCP setup and the same shell rules you use today, then upgrade only that environment to 0.70.0.

Check the first permission boundary. If a system MCP server is skipped, treat that as useful signal. Fix the command permission before you ask the agent to use that integration again.

Then check the shell path. A command with unresolved expansion should still ask the user. This is a Review concern in our methodology: the approval step has to inspect the actual command boundary rather than the intent that produced it.

Finally, resume a session that uses a worktree. The release says the selected worktree and workspace restoration path were fixed, so the safe test is to confirm the CLI resumes where the previous session actually worked.

What changed and what to test

Release fix Safe check after upgrade
Skip system MCP servers with insecure command permissions Open the MCP-backed workflow and confirm insecure entries are skipped instead of used.
Keep ASK_USER for shell commands with unresolved expansion Run a normal shell-command approval path and confirm unresolved expansion still asks.
Preserve selected worktree across authentication restarts Restart authentication during a session and confirm the same worktree remains selected.
Restore workspace directories only after resumeChat succeeds Resume an existing chat and confirm workspace restoration happens only after success.
Report accurate output token limits in models list Compare the listed model limits with the planning assumptions in your prompt or script.

Further reading

Next step

Upgrade one small Gemini CLI workflow that uses MCP or shell approval, then inspect the first skipped server or ASK_USER prompt before widening the change. For a guided pass through this kind of Gemini CLI review work, use hands-on training.

Train your team on Gemini

Two days on your team's own repository, onsite or remote, with a written proposal before you commit.

Book a call

Prefer to measure first? Take the free team check.