You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli/configuration.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,19 +132,23 @@ In addition to a project settings file, a project's `.gemini` directory can cont
132
132
- `cwd` (string, optional): The working directory in which to start the server.
133
133
- `timeout` (number, optional): Timeout in milliseconds for requests to this MCP server.
134
134
- `trust` (boolean, optional): Trust this server and bypass all tool call confirmations.
135
+
- `includeTools` (array of strings, optional): List of tool names to include from this MCP server. When specified, only the tools listed here will be available from this server (whitelist behavior). If not specified, all tools from the server are enabled by default.
136
+
- `excludeTools` (array of strings, optional): List of tool names to exclude from this MCP server. Tools listed here will not be available to the model, even if they are exposed by the server. **Note:** `excludeTools` takes precedence over `includeTools` - if a tool is in both lists, it will be excluded.
-**`trust`** (boolean): When `true`, bypasses all tool call confirmations for this server (default: `false`)
95
+
-**`includeTools`** (string[]): List of tool names to include from this MCP server. When specified, only the tools listed here will be available from this server (whitelist behavior). If not specified, all tools from the server are enabled by default.
96
+
-**`excludeTools`** (string[]): List of tool names to exclude from this MCP server. Tools listed here will not be available to the model, even if they are exposed by the server. **Note:**`excludeTools` takes precedence over `includeTools` - if a tool is in both lists, it will be excluded.
95
97
96
98
### Example Configurations
97
99
@@ -185,6 +187,22 @@ Each server configuration supports the following properties:
0 commit comments