Skip to content

Commit 29c8e9a

Browse files
committed
Docs: clarify MCP tools configuration and usage
1 parent 5808c6f commit 29c8e9a

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

docs/features/mcp.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,47 @@ await using var session = await client.CreateSessionAsync(new SessionConfig
156156
});
157157
```
158158

159+
## Tool Configuration
160+
161+
You can control which tools are available to an MCP server using the `tools` field.
162+
163+
### Allow all tools
164+
165+
Use `"*"` to enable all tools provided by the MCP server:
166+
167+
```typescript
168+
tools: ["*"]
169+
```
170+
171+
---
172+
173+
### Allow specific tools
174+
175+
Provide a list of tool names to restrict access:
176+
177+
```typescript
178+
tools: ["bash", "edit"]
179+
```
180+
181+
Only the listed tools will be available to the agent.
182+
183+
---
184+
185+
### Disable all tools
186+
187+
Use an empty array to disable all tools:
188+
189+
```typescript
190+
tools: []
191+
```
192+
193+
---
194+
195+
### Notes
196+
197+
- The `tools` field defines which tools are allowed.
198+
- There is no separate `allow` or `disallow` configuration — tool access is controlled directly through this list.
199+
159200
## Quick Start: Filesystem MCP Server
160201

161202
Here's a complete working example using the official [`@modelcontextprotocol/server-filesystem`](https://www.npmjs.com/package/@modelcontextprotocol/server-filesystem) MCP server:

0 commit comments

Comments
 (0)