Skip to content

Commit 59f8082

Browse files
committed
Add support for ignoring specific tools with --ignore-tool flag in README
1 parent b91ef5d commit 59f8082

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,24 @@ To bypass authentication, or to emit custom headers on all requests to your remo
135135
]
136136
```
137137

138+
* To ignore specific tools from the remote server, add the `--ignore-tool` flag. This will filter out tools matching the specified patterns from both `tools/list` responses and block `tools/call` requests. Supports wildcard patterns with `*`.
139+
140+
```json
141+
"args": [
142+
"mcp-remote",
143+
"https://remote.mcp.server/sse",
144+
"--ignore-tool",
145+
"delete*",
146+
"--ignore-tool",
147+
"remove*"
148+
]
149+
```
150+
151+
You can specify multiple `--ignore-tool` flags to ignore different patterns. Examples:
152+
- `delete*` - ignores all tools starting with "delete" (e.g., `deleteTask`, `deleteUser`)
153+
- `*account` - ignores all tools ending with "account" (e.g., `getAccount`, `updateAccount`)
154+
- `exactTool` - ignores only the tool named exactly "exactTool"
155+
138156
### Transport Strategies
139157

140158
MCP Remote supports different transport strategies when connecting to an MCP server. This allows you to control whether it uses Server-Sent Events (SSE) or HTTP transport, and in what order it tries them.

0 commit comments

Comments
 (0)