Skip to content

v0.3.0-experimental

Pre-release
Pre-release

Choose a tag to compare

@mdaehn mdaehn released this 11 Oct 06:48
· 28 commits to main since this release

@mantlejs/mcp-code 0.3.0-experimental — MCP code mode

First release of @mantlejs/mcp-code: a typed API plus a QuickJS sandbox, so an agent writes one short script
against your services instead of calling many MCP tools.

  • search_api and the mantle://code/api.d.ts resource give the agent TypeScript declarations for exactly the
    services and methods you expose — deny-by-default, narrowed further by an agent token's capability scope.
  • execute runs the script in a fresh QuickJS sandbox with no network, filesystem, timers, or imports. Call count,
    run time, memory, and output size are all capped with typed errors.
  • Every service call the script makes runs the full hook pipeline with provider: "mcp". @mantlejs/audit entries
    for one script share an executionId.
  • Custom executors can replace QuickJS; a conformance suite is exported for them.
npm install @mantlejs/mcp-code@experimental

Requires @mantlejs/mcp and @mantlejs/mantle ^0.3.0 (see v0.3.0). Experimental: the API may change before
it's promoted.