Skip to content

Commit 62d98d0

Browse files
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

13 files changed

+6987
-0
lines changed

src/js-host-api/eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default [
2020
clearTimeout: 'readonly',
2121
setInterval: 'readonly',
2222
clearInterval: 'readonly',
23+
performance: 'readonly',
2324
},
2425
},
2526
rules: {

0 commit comments

Comments
 (0)