Commit 8e32b4b
committed
feat: add MCP server example for sandboxed JavaScript execution
Add an MCP (Model Context Protocol) server that exposes an
execute_javascript tool, allowing AI agents to run arbitrary JavaScript
inside an isolated Hyperlight micro-VM sandbox with strict CPU time
limits and automatic snapshot/restore recovery after timeouts.
Includes server implementation, demo scripts (PowerShell and Bash),
vitest test suite, and documentation.
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>1 parent 754139c commit 8e32b4b
13 files changed
Lines changed: 6986 additions & 0 deletions
File tree
- src/js-host-api/examples/mcp-server
- tests
Large diffs are not rendered by default.
Lines changed: 801 additions & 0 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Loading
Binary file not shown.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments