Skip to content

Commit c959ee1

Browse files
authored
Update mcp-run-python docs (#2610)
1 parent 8d3b609 commit c959ee1

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

docs/mcp/run-python.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ where:
3232
so Pyodide can download and cache the Python standard library and packages
3333
- `--node-modules-dir=auto` tells deno to use a local `node_modules` directory
3434
- `stdio` runs the server with the
35-
[Stdio MCP transport](https://spec.modelcontextprotocol.io/specification/2024-11-05/basic/transports/#stdio)
36-
— suitable for running the process as a subprocess locally
35+
[Stdio MCP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#stdio) — suitable for
36+
running the process as a subprocess locally
3737
- `streamable_http` runs the server with the
38-
[Streamable HTTP MCP transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
39-
— running the server as an HTTP server to connect locally or remotely.
40-
This supports stateful requests, but does not require the client to hold a stateful connection like SSE
38+
[Streamable HTTP MCP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http) -
39+
suitable for running the server as an HTTP server to connect locally or remotely. This supports stateful requests, but does not require the client to hold a stateful connection like SSE
4140
- `sse` runs the server with the
42-
[SSE MCP transport](https://spec.modelcontextprotocol.io/specification/2024-11-05/basic/transports/#http-with-sse)
43-
— running the server as an HTTP server to connect locally or remotely
41+
[SSE MCP transport](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse)
42+
suitable for running the server as an HTTP server to connect locally or remotely. Note that the SSE transport has been
43+
[deprecated in newer MCP protocol versions](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#backwards-compatibility)
44+
and is there to maintain backwards compatibility.
4445
- `warmup` will run a minimal Python script to download and cache the Python
4546
standard library. This is also useful to check the server is running
4647
correctly.

mcp-run-python/README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The server can be run with `deno` installed using:
1212
```bash
1313
deno run \
1414
-N -R=node_modules -W=node_modules --node-modules-dir=auto \
15-
jsr:@pydantic/mcp-run-python [stdio|sse|warmup]
15+
jsr:@pydantic/mcp-run-python [stdio|streamable_http|sse|warmup]
1616
```
1717

1818
where:
@@ -22,11 +22,17 @@ where:
2222
the Python standard library and packages
2323
- `--node-modules-dir=auto` tells deno to use a local `node_modules` directory
2424
- `stdio` runs the server with the
25-
[Stdio MCP transport](https://spec.modelcontextprotocol.io/specification/2024-11-05/basic/transports/#stdio)
26-
suitable for running the process as a subprocess locally
25+
[Stdio MCP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#stdio) — suitable for
26+
running the process as a subprocess locally
27+
- `streamable_http` runs the server with the
28+
[Streamable HTTP MCP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http) -
29+
suitable for running the server as an HTTP server to connect locally or remotely. This supports stateful requests, but
30+
does not require the client to hold a stateful connection like SSE
2731
- `sse` runs the server with the
28-
[SSE MCP transport](https://spec.modelcontextprotocol.io/specification/2024-11-05/basic/transports/#http-with-sse)
29-
running the server as an HTTP server to connect locally or remotely
32+
[SSE MCP transport](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse)
33+
suitable for running the server as an HTTP server to connect locally or remotely. Note that the SSE transport has been
34+
[deprecated in newer MCP protocol versions](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#backwards-compatibility)
35+
and is there to maintain backwards compatibility.
3036
- `warmup` will run a minimal Python script to download and cache the Python standard library. This is also useful to
3137
check the server is running correctly.
3238

0 commit comments

Comments
 (0)