summaryrefslogtreecommitdiff
path: root/docs/cli/configuration.md
diff options
context:
space:
mode:
authorSeydulla Narkulyyev <[email protected]>2025-07-21 03:11:49 +0400
committerGitHub <[email protected]>2025-07-20 23:11:49 +0000
commitf4d077cc1f523ddfa278c8be09446b6da0a20839 (patch)
treed130f7213c01be6719708434e241f9b5d241dc20 /docs/cli/configuration.md
parent5f8fff4db3b88705a261a43f31efe93d2226c07c (diff)
docs: add documentation for mcp excludeTools and includeTools (#3409)
Co-authored-by: Jack Wotherspoon <[email protected]>
Diffstat (limited to 'docs/cli/configuration.md')
-rw-r--r--docs/cli/configuration.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/cli/configuration.md b/docs/cli/configuration.md
index 4e76cbe6..228ace41 100644
--- a/docs/cli/configuration.md
+++ b/docs/cli/configuration.md
@@ -132,6 +132,8 @@ In addition to a project settings file, a project's `.gemini` directory can cont
- `cwd` (string, optional): The working directory in which to start the server.
- `timeout` (number, optional): Timeout in milliseconds for requests to this MCP server.
- `trust` (boolean, optional): Trust this server and bypass all tool call confirmations.
+ - `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.
+ - `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.
- **Example:**
```json
"mcpServers": {
@@ -139,12 +141,14 @@ In addition to a project settings file, a project's `.gemini` directory can cont
"command": "python",
"args": ["mcp_server.py", "--port", "8080"],
"cwd": "./mcp_tools/python",
- "timeout": 5000
+ "timeout": 5000,
+ "includeTools": ["safe_tool", "file_reader"],
},
"myNodeServer": {
"command": "node",
"args": ["mcp_server.js"],
- "cwd": "./mcp_tools/node"
+ "cwd": "./mcp_tools/node",
+ "excludeTools": ["dangerous_tool", "file_deleter"]
},
"myDockerServer": {
"command": "docker",