Commit 62d98d0
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 62d98d0
File tree
13 files changed
+6987
-0
lines changed- src/js-host-api
- examples/mcp-server
- tests
13 files changed
+6987
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments