Skip to main content

TypeScript SDK

Use @stacklok-oss/mecatl-sdk to create sessions, run agents, handle approvals, follow durable activity, and call the rest of the Mecatl API from TypeScript. The package supports Node.js, Bun, and browser applications.

Start with Use the TypeScript SDK to run one prompt against a private offline daemon.

Choose a workflow

The SDK also exposes typed namespaces for models, agents, skills, teams, schedules, learning, MCP inventory, and storage operations. See the TypeScript SDK API reference for the complete public surface.

Package entry points

ImportUse it for
@stacklok-oss/mecatl-sdkBrowser HTTP and SSE connections, injected transports, and transport-neutral types.
@stacklok-oss/mecatl-sdk/nodeNode.js and Bun gRPC connections, local daemons, one-shot queries, filesystem media helpers, and callback tools.
@stacklok-oss/mecatl-sdk/genGenerated protobuf-es messages and service descriptors for low-level calls and typed namespace requests.