30 tools cover the full diagram CRUD surface plus rendering, validation, capabilities, and machine-readable docs. They’re grouped here for orientation; agents discover them through the standard MCP tool list.
Diagram lifecycle
create_diagram
Create a new diagram, optionally seeded from a template (agent-workflow, approval-flow, rag-pipeline).
load_diagram
Load a stored diagram by id.
save_diagram
Overwrite a diagram with full JSON; validates before write.
patch_diagram
Patch top-level diagram fields (`null` clears a field).
list_diagrams
List stored diagrams (recency-sorted).
get_diagram_json
Return raw canonical JSON.
Nodes
add_node
Append a node (any kind), optionally wired via `from` / `branch`.
update_node
Patch fields on a node (`null` to clear).
remove_node
Remove a node and prune incoming refs.
move_node
Persist node position.
resize_node
Persist node size.
Edges
connect
Connect two nodes; supports edge ids, branches, labels, handles, style, label style, routing, and data.
disconnect
Remove a connection (branch-aware sweep when `branch` omitted).
update_edge
Patch an explicit edge by id (handles, style, labelStyle, routing, etc.).
remove_edge
Remove an explicit edge by id.
Structure
add_note
Add an annotation; `attachedTo` for visual association.
add_group
Add a group node and optionally parent existing children.
ungroup
Clear children/parent links for a group.
set_layout
Change layout direction; `elk` is reserved and currently falls back to dagre with a warning.
PNG via @resvg/resvg-js (falls back to SVG when not installed).
render_preview
Return browser and raw asset URLs; cloud share URLs when cloud sync is configured.
summarize_diagram
Plain-text summary (counts by kind, triggers, ends, branches).
export_mermaid
Convert to Mermaid `flowchart` syntax.
Agent guidance
v1_get_agent_guide
Return the concise MCP agent operating guide for live instructions.
v1_get_docs_shape
Return machine-readable docs chunks by topic or natural-language task.
v1_get_capabilities
Return server, docs, schema, reducer action, and reserved capability metadata.
Edge handles and explicit edges
Use from on the target node for ordinary agent-friendly connections. Use an explicit connect call (returning an edge id) when you need stable identity for labels, branches, handles, style, label style, routing, markers, or future edits via update_edge.
Stored diagrams are exposed as MCP resources, addressable by URI. Agents can read them directly without calling a tool.
URI
Purpose
wire://diagrams/{id}.json
Canonical JSON for a stored diagram.
wire://diagrams/{id}.svg
Server-rendered SVG.
wire://diagrams/{id}.png
PNG rasterization (or SVG fallback).
wire://diagrams/{id}.mermaid
Mermaid `flowchart` syntax.
wire://diagrams/{id}/preview
Browser preview URL.
wire://templates/
List available templates.
wire://templates/{name}
Fetch a single template.
wire://schemas/wire-diagram
JSON schema info.
wire://docs/
Machine-readable docs manifest.
wire://docs/agent-guide.md
Prompt-ready agent guide.
wire://docs/{topic}.shape.json
Topic docs for agent, mcp, cli, react, cloud, schema, validation, examples, recipes, or skill.
wire://docs/schema/wire-diagram.json
WireDiagram JSON schema as a docs resource.
wire://docs/examples/{name}.wire.json
Validated example diagrams.
wire://docs/recipes/{id}.json
Task recipes for agents.
Prompts
The server bundles five prompts that frame common diagram-authoring tasks. Clients with prompt support can surface them as reusable templates.
Name
Purpose
diagram_from_codebase
Generate an architecture diagram from a repo.
diagram_from_logs
Reconstruct a workflow from log lines.
diagram_from_workflow_description
Convert prose into a diagram.
review_diagram_for_clarity
Critique an existing diagram.
simplify_diagram
Refactor for clarity.
Stdio host config
Most local MCP hosts accept a JSON server entry with a command, args, and environment. Point the command at the built server and restart the host so the Wire tools appear in the tool list.