Skip to content

Commit 68ff769

Browse files
committed
Use the --tools flag multiple times
We use StringArrayVar which doesn't split on comma.
1 parent ab99785 commit 68ff769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ same MCP server, but it is not meant as a security feature.
153153
To filter the list of tools, use the `--tools` flag either once
154154

155155
```bash
156-
thv run --tools <TOOL_1>,<TOOL_2> <SERVER>
156+
thv run --tools <TOOL_1> <SERVER>
157157
```
158158

159159
Or multiple times
@@ -165,7 +165,7 @@ thv run --tools <TOOL_1> --tools <TOOL_2> <SERVER>
165165
For example:
166166

167167
```bash
168-
thv run --tools list_issues,get_issue github
168+
thv run --tools list_issues --tools get_issue github
169169
```
170170

171171
If the server comes from the registry, ToolHive can validate the tool names

0 commit comments

Comments
 (0)