Skip to content

Commit eb18703

Browse files
committed
Add "trust" option to MCP server configuration for bypassing confirmations
1 parent 0188cc0 commit eb18703

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/installation-guides/install-gemini-cli.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ The simplest way is to use GitHub's hosted MCP server:
4040
"mcpServers": {
4141
"github": {
4242
"httpUrl": "https://api.githubcopilot.com/mcp/",
43-
"trust": true,
4443
"headers": {
4544
"Authorization": "Bearer $GITHUB_PAT"
4645
}
@@ -122,6 +121,24 @@ To verify that the GitHub MCP server has been configured, start Gemini CLI in yo
122121
List my GitHub repositories
123122
```
124123
124+
## Skip Confirmations
125+
126+
To bypass tool confirmations, you can add `"trust": true` to your MCP server configuration:
127+
128+
```json
129+
// ~/.gemini/settings.json
130+
{
131+
"mcpServers": {
132+
"github": {
133+
"trust": true
134+
// other configuration options
135+
}
136+
}
137+
}
138+
```
139+
140+
You can find more Gemini CLI configuration options here: [MCP Configuration Structure](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html#configuration-structure)
141+
125142
## Troubleshooting
126143

127144
### Local Server Issues

0 commit comments

Comments
 (0)