MCP server-level trust silently approves all future tools from a trusted server (no first-seen confirmation)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start with packages/core/src/tools/mcp-tool.ts, especially getConfirmationDetails(), and trace how mcpServerConfig.trust and the server-name allowlist affect confirmation for tools added later. Then review the policy engine’s existing confirmation rules. Done when newly seen tools from a trusted server receive the intended confirmation or policy behavior, with tests covering both existing and newly added tools.
Written by the indexing model from the issue text.
Description
Server-level MCP trust skips confirmation for every tool the server serves, including tools added after the user approved
Type: trust-granularity architecture (verified against current main source)
The code
packages/core/src/tools/mcp-tool.ts, getConfirmationDetails():
if (this.cliConfig?.isTrustedFolder() && this.trust) {
return false; // server is trusted, no confirmation needed
}
this.trust comes from mcpServerConfig.trust — a per-server flag. The confirmation skip therefore applies to every tool the server currently serves and ever will serve: the allowlist key is serverName, and a tool added by the server after the user granted trust inherits the same silent 'allow'.
An MCP server's tool list is remote-controlled (stdio process or HTTP with mutable registry). The user's mental model when setting trust: true is "I trust this server as I saw it" — but the effective grant is "I trust every future tool this server declares", with no re-confirmation and no first-seen prompt for new tools.
Why this matters
This same pattern exists in downstream forks of this codebase (qwen-code, where I filed a corresponding issue today). Gemini CLI is the origin of the family, and it has no classifier-layer backstop: the policy engine's git-command hardening (line ~450: forcing ASK_USER for git in untrusted workspaces) shows the codebase already knows trust must be re-verified per-call for shell — the same reasoning should apply to remote-declared MCP tools.
Suggested direction
Keep server-level trust as transport trust (spawn/connect/health-check), but either:
- prompt once per newly seen tool on trusted servers (first-seen confirmation), or
- expose a policy-engine knob (
mcp.trust.mode = server | tool) defaulting totool.
Happy to elaborate on the cross-framework comparison if useful.
- Dominant language
- TypeScript
- Stars
- 109k
- Forks
- 15k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 106
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google-gemini/gemini-cli
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google-gemini/gemini-cli#30412 · 1 comment ·
Maintainers usually reply within 1 day
-
--acp never answers initialize when a sandbox is enabled (stdin read as a piped prompt before the sandbox hop)Possibly taken @Raamia claimed this 1 day ago. Openstatus/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-gemini/gemini-cli#30398 · 2 comments ·
Maintainers usually reply within 1 day
-
** Docs: `/shells` slash command (and `/bashes`) is documented but was removed in #22740 — tutorial and tip tell users to run a command that doesn't existPossibly taken @DZH166 claimed this 1 day ago. Openstatus/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google-gemini/gemini-cli#30396 · 2 comments ·
Maintainers usually reply within 1 day
-
** Docs: System Prompt Override guide links "Persisting Environment Variables" to an anchor that does not exist in authentication.mdxPossibly taken @DZH166 claimed this 2 days ago. Openstatus/need-triage
Difficulty 1/5 Under an hour Newbie friendliness 82/100
google-gemini/gemini-cli#30394 · 2 comments ·
Maintainers usually reply within 1 day
-
core tests: orphan PTY slave fd test fails on Macs where /dev/ttys001 existsPossibly taken @Anoshor claimed this 2 days ago. Openstatus/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-gemini/gemini-cli#30384 · 2 comments ·
Maintainers usually reply within 1 day
All issues in google-gemini/gemini-cli
Similar issues
-
qa-manually-tested Status: Triage Type: Bug / Error
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mermaid-js/mermaid-v13#1158 ·
Maintainers usually reply within 1 day
-
Bug Daily
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Expensify/App#107705 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Changing shipping to country value from storefront homepage creates an invalid URLPossibly taken @Riamus78 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
medusajs/dtc-starter#106 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
digitalfabrik/integreat-app#4558 ·
Maintainers usually reply within 5 days
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
redhat-developer/podman-desktop-ibmcloud-account-ext#755 ·
Maintainers usually reply within 1 day