Skip to content

Commit cccb203

Browse files
Specify --target-port on docs and match port on quickstart guide (#47)
* Specify --target-port on docs and match port on quickstart guide AFAIK we have 2 ports: the proxy port in which ToolHive runs and a hardcoded port that may be used by an MCP server. For the second one, the current flag should be `--target-port` instead of `--port`. Changed the only reference I could find in docs. Also, there was a small typo in the quickstart guide in the ports. The text was talking about port `49226` but the port shown in the example was port `15266`. * Reverted port on example * Apply suggestions from code review Co-authored-by: Dan Barr <[email protected]> --------- Co-authored-by: Dan Barr <[email protected]>
1 parent 9097b16 commit cccb203

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ Check the MCP server's documentation for the required arguments.
143143
### Run a server on a specific port
144144

145145
ToolHive creates a reverse proxy on a random port that forwards requests to the
146-
container. To specify the port for an MCP server:
146+
container. This is the port that client applications connect to. To set a
147+
specific proxy port instead, use the `--port` flag:
147148

148149
```bash
149150
thv run --port <port-number> <server-name>

docs/toolhive/tutorials/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ NAME PACKAGE STATUS URL PORT
217217
fetch mcp/fetch:latest running http://127.0.0.1:15266/sse#fetch 15266 mcp 2025-06-30 09:12:53 -0400 EDT
218218
```
219219

220-
This confirms that the fetch server is running and available on port 49226.
220+
This confirms that the fetch server is running and available on port 15266.
221221

222222
:::info What's happening?
223223

0 commit comments

Comments
 (0)