Skip to content

Commit ed33ffc

Browse files
committed
feat: add pyodide config option
1 parent 1e32d0f commit ed33ffc

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ Let AI execute JavaScript/Python code with any package imports!
99

1010
## Core Value
1111

12-
- **Secure Sandbox**: Isolated execution environment protecting your host
13-
system
12+
- **Secure Sandbox**: Isolated execution environment protecting your host system
1413
- **Install-on-Demand**: Dynamically import any npm/PyPI packages
1514
- **Reduce Hallucinations**: Let AI verify logic by executing code
1615
- **Quick Validation**: Test if packages meet your needs without local
@@ -161,6 +160,6 @@ print(f"Found {len(files)} files")
161160
---
162161

163162
**Issues & Feedback**:
164-
[GitHub Issues](https://github.com/mcpc-tech/code-runner-mcp/issues)
163+
[GitHub Issues](https://github.com/mcpc-tech/code-runner-mcp/issues)\
165164
**Repository**:
166165
[GitHub Repository](https://github.com/mcpc-tech/code-runner-mcp)

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcpc/code-runner-mcp",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"nodeModulesDir": "auto",
55
"description": "Run Javascript/Python code in a secure sandbox, with support for importing **any package**! 🚀",
66
"tasks": {

src/service/py-runner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PyodideInterface } from "pyodide";
1+
import type { PyodideConfig, PyodideInterface } from "pyodide";
22
import { getPip, getPyodide, loadDeps, makeStream } from "../tool/py.ts";
33

44
// const EXEC_TIMEOUT = 1000;
@@ -25,6 +25,8 @@ export interface RunPyOptions {
2525
/** Custom JavaScript handlers to inject into Python environment */
2626
// deno-lint-ignore no-explicit-any
2727
handlers?: Record<string, (...args: any[]) => unknown>;
28+
/** Pyodide-specific configuration options (passed to loadPyodide) */
29+
pyodide?: PyodideConfig;
2830
}
2931

3032
/**

0 commit comments

Comments
 (0)