Skip to content

execbox

Execbox is a Node.js 22+ library for running guest JavaScript against host-defined tools and MCP tool catalogs. It gives you a small provider model in @execbox/core and a QuickJS executor in @execbox/quickjs that can run inline or in a worker thread.

Start by defining one provider, run it with QuickJS, then decide whether your application should keep QuickJS inline or move it off the main thread.

Terminal window
npm install @execbox/core @execbox/quickjs

Use Getting Started to define one host tool, resolve it with @execbox/core, and call it from guest JavaScript through QuickJsExecutor.

PackageUse it for
@execbox/coreProvider contracts, schema validation, and MCP adapters
@execbox/quickjsInline and worker-hosted QuickJS execution
  • Examples - run the main example flows from the repo
  • MCP Integration - wrap upstream MCP tools or expose execbox as MCP tools