Skip to content

Commit 13e74f4

Browse files
author
BrokenDuck
committed
Update README
1 parent afdf978 commit 13e74f4

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

mcp-run-python/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ The server can be run with `deno` installed using:
1111

1212
```bash
1313
deno run \
14-
-N -R=node_modules -W=node_modules --node-modules-dir=auto \
15-
jsr:@pydantic/mcp-run-python [stdio|streamable_http|sse|warmup]
14+
-N -R=node_modules,/tmp -W=node_modules,/tmp --node-modules-dir=auto \
15+
jsr:@pydantic/mcp-run-python [stdio|streamable_http|sse|warmup] [--mount ./storage/]
1616
```
1717

1818
where:
1919

20-
- `-N -R=node_modules -W=node_modules` (alias of `--allow-net --allow-read=node_modules --allow-write=node_modules`)
21-
allows network access and read+write access to `./node_modules`. These are required so pyodide can download and cache
22-
the Python standard library and packages
20+
- `-N -R=node_modules,/tmp -W=node_modules,/tmp` (alias of
21+
`--allow-net --allow-read=node_modules,/tmp --allow-write=node_modules,/tmp`) allows network access and read+write
22+
access to `./node_modules` and `/tmp`. These are required so pyodide can download and cache the Python standard
23+
library and packages
2324
- `--node-modules-dir=auto` tells deno to use a local `node_modules` directory
25+
- `--mount ./storage`: Optionally, mount a directory to `/home/pyodide/storage` for persist file between pyodide runs.
26+
File can be uploaded and retrieve using the `upload_file_from_uri`and `retrieve_file` tools respectively.
2427
- `stdio` runs the server with the
2528
[Stdio MCP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#stdio) — suitable for
2629
running the process as a subprocess locally
@@ -52,8 +55,8 @@ server = MCPServerStdio('deno',
5255
args=[
5356
'run',
5457
'-N',
55-
'-R=node_modules',
56-
'-W=node_modules',
58+
'-R=node_modules,/tmp',
59+
'-W=node_modules,/tmp',
5760
'--node-modules-dir=auto',
5861
'jsr:@pydantic/mcp-run-python',
5962
'stdio',

0 commit comments

Comments
 (0)