@@ -12,7 +12,7 @@ The server can be run with `deno` installed using:
12
12
``` bash
13
13
deno run \
14
14
-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]
16
16
```
17
17
18
18
where:
@@ -22,11 +22,17 @@ where:
22
22
the Python standard library and packages
23
23
- ` --node-modules-dir=auto ` tells deno to use a local ` node_modules ` directory
24
24
- ` 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
27
31
- ` 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.
30
36
- ` warmup ` will run a minimal Python script to download and cache the Python standard library. This is also useful to
31
37
check the server is running correctly.
32
38
0 commit comments