We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf878a commit ea1f2a7Copy full SHA for ea1f2a7
docs/toolhive/guides-cli/run-mcp-servers.mdx
@@ -143,10 +143,11 @@ Check the MCP server's documentation for the required arguments.
143
### Run a server on a specific port
144
145
ToolHive creates a reverse proxy on a random port that forwards requests to the
146
-container. To specify the port for an MCP server:
+container. This is the port that client applications connect to. To set a
147
+specific proxy port instead, use the `--port` flag:
148
149
```bash
-thv run --target-port <port-number> <server-name>
150
+thv run --port <port-number> <server-name>
151
```
152
153
## Run a custom MCP server
0 commit comments