Machine-readable Wire docs
The fastest path for agents is not a tutorial. It is compact JSON shape, schema, examples, recipes, and a short agent guide that all point at the canonical Wire model.
Entrypoints
These routes return raw JSON or Markdown with stable content types. They are designed for Codex, Claude Code, Cursor, hosted Wire chat, and retrieval pipelines.
| Route | Media type | Purpose |
|---|---|---|
| /llm/wire-docs.shape.json | application/json | Root machine-readable docs manifest. |
| /llm/agent-guide.md | text/markdown | Prompt-ready operating guide for coding agents. |
| /llm/mcp.shape.json | application/json | MCP tools, resources, and operating sequences. |
| /llm/react.shape.json | application/json | React library build surface and component contracts. |
| /llm/cloud.shape.json | application/json | Wire Cloud auth, API key, share URL, and sync contracts. |
| /llm/schema/wire-diagram.json | application/schema+json | Canonical WireDiagram JSON Schema. |
| /llm/validation.shape.json | application/json | Validation issue codes and repair hints. |
MCP retrieval
The MCP server exposes the same content as resources and a task-aware retrieval tool. Agents should call this before guessing from human prose.
json
{
"tool": "v1_get_docs_shape",
"arguments": {
"task": "Build a React workspace and sync it to Wire Cloud"
}
}Agent rules
- Use
WireDiagramJSON as the source of truth. - Use
@aigentive/wire-reactfor React UI. - Use
apply_actionsfor coherent MCP edits. - Run
validatebefore rendering or sharing. - Use Mermaid, SVG, and PNG as exports, not primary state.