Expand description
The micromux MCP server.
A thin, near-stateless proxy: it discovers running micromux sessions over their local control
endpoints and exposes them as MCP tools. It holds no supervision state — every tool connects to
a session endpoint per call (cheap, local) and speaks the micromux_control protocol. All
actions go through the same control plane the human uses in the TUI, so dependency gating, health
re-probing, and restart policy are respected.
The one tool that does more than connect is start_session: it spawns a detached, headless
micromux serve for a project that has no live session. stop_session is its inverse — it asks
a session to exit (freeing its ports), useful when switching between git worktrees that bind the
same ports.
Structs§
- McpServer
- The MCP server handler. Cheap to clone; holds no supervision state.
Functions§
- serve_
stdio - Serve the MCP server over stdio (JSON-RPC), blocking until the client disconnects.