Docs menu

Integrate

MCP integration

joymux serve --mcp

MCP tools use the same public session/execution contract as the CLI, SDK, and HTTP API. Tool errors return a structured JoyMuxErrorEnvelope in structuredContent.

Required tools include runtime status, client register/resume, session create/get/list/attach/detach/events/write/resize/close, execute/interrupt/terminate, checkpoint/resume, and grants/permissions/can.

Event retrieval is cursor-based and bounded. Transport is not authority — MCP does not bypass authorization.