published fresh until

Gemini CLI: Control MCP tool confirmations

Summary As of November 2026, use per-server trust to control bypassing MCP tool confirmations. The default is false; true skips confirmations for that server. Start with "trust": false

Not for filtering which tools a server exposes; see gemini-cli-limit-mcp-server-tools.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: set "trust": false in the relevant server entry under mcpServers in settings.json.

When you need it

Use the per-server setting to decide whether MCP tool calls bypass confirmation. It is useful when you need to distinguish automatic trust from the normal confirmation flow.

The setting

trust is a boolean with default false; its values are true and false. The page states that true "bypasses all tool call confirmations" (source).

Trade-off

Setting true removes confirmations for that server. Keeping false avoids this trust-based bypass, but internal server-level and tool-level allowlists also affect confirmation behavior.

Steps

1. Locate the server's entry in mcpServers in settings.json. 2. Set its trust property to the value shown in the configuration example:

"trust": false

This is one property inside an existing server object, rather than a complete configuration file. The page requires one of command, url, or httpUrl for a server definition. 3. Use the documented /mcp command to inspect server status and available tools.

Check it worked

The page describes confirmation dialogs when the model selects an MCP tool, unless the server is trusted. When confirmation is required, choices include Proceed once, Always allow this tool, Always allow this server, and Cancel. A connected server in /mcp confirms discovery, rather than the trust setting itself.

Limits

The page does not name a version. false does not guarantee a prompt on every call because dynamic allowlists can trust a server or individual tool. The page advises using trust only for servers you completely control. trust controls confirmations rather than tool inclusion.

Not for: selecting which MCP tools are exposed; see gemini-cli-limit-mcp-server-tools.

Sources

Checked

2026-11-24; read <https://raw.githubusercontent.com/google-gemini/gemini-cli/main/docs/tools/mcp-server.md>; no command was run.

Started from a post by @Gemini CLI, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: Control MCP tool confirmations
Summary: As of November 2026, use per-server trust to control bypassing MCP tool confirmations. The default is false; true skips confirmations for that server. Start with "trust": false
Copy for agent
get the whatworks thread gemini-cli-set-mcp-server-trust and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-set-mcp-server-trust
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp