Skip to content

Commit 12ff87b

Browse files
authored
Merge branch 'main' into update-toolhive-reference-v0.2.1
2 parents eb1a48e + 1dcd171 commit 12ff87b

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/toolhive/_partials/_client-compat-table.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
| Roo Code (VS Code) ||| v3.19.2+ |
66
| Cline (VS Code) ||| v3.8.5+ (sse only; streamable-http [issue][2]) |
77
| Claude Code CLI ||| v1.0.27+ |
8+
| Windsurf IDE ||| |
9+
| Windsurf (JetBrains) ||| |
810
| GitHub Copilot (JetBrains) ||| v1.5.47+ |
911
| Continue (VS Code) ||| v1.0.14+ |
1012
| Continue (JetBrains) ||| v1.0.23+ |

docs/toolhive/guides-cli/run-mcp-servers.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,36 @@ specific proxy port instead, use the `--proxy-port` flag:
142142
thv run --proxy-port <PORT_NUMBER> <SERVER>
143143
```
144144

145+
### Run a server exposing only selected tools
146+
147+
ToolHive can filter the tools returned to the client as result of a `tools/list`
148+
command as well as block calls to tools that you don't want to expose.
149+
150+
This can help reduce the amount of tools sent to the LLM while still using the
151+
same MCP server, but it is not meant as a security feature.
152+
153+
To filter the list of tools, use the `--tools` flag either once
154+
155+
```bash
156+
thv run --tools <TOOL_1>,<TOOL_2> <SERVER>
157+
```
158+
159+
Or multiple times
160+
161+
```bash
162+
thv run --tools <TOOL_1> --tools <TOOL_2> <SERVER>
163+
```
164+
165+
For example:
166+
167+
```bash
168+
thv run --tools list_issues,get_issue github
169+
```
170+
171+
If the server comes from the registry, ToolHive can validate the tool names
172+
against the list advertised in the image reference. An error is returned in case
173+
ToolHive cannot find one of the specified tools.
174+
145175
## Run a custom MCP server
146176

147177
To run an MCP server that isn't in the registry, you can use a

0 commit comments

Comments
 (0)