Skip to content

Commit f0c5292

Browse files
committed
Add note about proxy mode for stdio
1 parent 56c95ef commit f0c5292

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ server.
159159
ToolHive supports the following transport methods:
160160

161161
- **Standard I/O** (`stdio`), default:\
162-
ToolHive redirects SSE traffic from the client to the container's standard
163-
input and output. This acts as a secure proxy, ensuring that the container
164-
doesn't have direct access to the network or the host machine.
162+
ToolHive redirects SSE or Streamable HTTP traffic from the client to the
163+
container's standard input and output. This acts as a secure proxy, ensuring
164+
that the container doesn't have direct access to the network or the host
165+
machine.
165166

166167
- **HTTP with SSE (server-sent events)** (`sse`):\
167168
ToolHive creates a reverse proxy that forwards requests to the container using
@@ -179,6 +180,11 @@ the client ecosystem. Once we confirm that ToolHive's supported clients support
179180
Streamable HTTP, we will make it the default proxy transport method for stdio
180181
servers.
181182

183+
Currently, you can add the `--proxy-mode streamable-http` flag to the
184+
[`thv run`](../reference/cli/thv_run.md) command to use Streamable HTTP for
185+
stdio servers. This will ensure that the server is compatible with the latest
186+
MCP specification and can be used with clients that support Streamable HTTP.
187+
182188
:::
183189

184190
### Run a server from a Docker image

0 commit comments

Comments
 (0)