isotopo-mcp exposes the agent loop as Model Context Protocol tools
over stdio, so Claude Code / Claude Desktop / Cursor / any MCP client
can draw isometric diagrams without shelling out to the CLI.
Install
Register
Claude Code:claude_desktop_config.json):
which isotopo-mcp if your client
doesn’t inherit $GOPATH/bin on PATH.)
Tools
The loop, MCP-shaped
iso_capabilities→ learn the DSL surface.- Emit YAML following the positioning rules in
PROMPT_TEMPLATE.md (or install the
draw-iso-diagramskill, which encodes them). iso_validate→ applysuggestvalues untilissuesis empty.iso_evaluate→ fix layout untilcrossingsandtunnelsare 0, then act oncomposition.findings(balance / alignment / color) to liftcomposition.scoretoward the gallery band (≥ 0.85).iso_repair(compose: true) → apply the returneddsl— defects and off-track parts fixed in one call, comment-preserved.iso_render→ read backoutput_dir/topology.svg.iso_snapshot→ LOOK at the PNG before delivering — visual self-review catches what numbers cannot.iso_preview(optional) → crop a single node or edge to inspect it close up without re-reading the whole scene.
Protocol notes
Minimal, dependency-free implementation: JSON-RPC 2.0 over newline-delimited stdio per the MCP spec. Supported methods:initialize (echoes the client’s protocolVersion), ping,
tools/list, tools/call; notifications are accepted and ignored.
Resources and prompts are not implemented — the capability surface
is deliberately tools-only for now.