archpilot-mcp
v0.2.0Plan before you code: an MCP server + Claude Code skill that interviews you, runs a pre-mortem, and writes a validated architecture diagram and ARCHITECTURE.md…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate_diagram Validate diagram
Checks Mermaid source. Returns ok, or a structured error {code, message, line, hint} to repair and retry.
| Parameter | Type | Description |
|---|---|---|
source * | string | Mermaid diagram source |
render_diagram Render diagram
Validates and renders Mermaid source to svg or png inside the project. Returns the written file path.
| Parameter | Type | Description |
|---|---|---|
source * | string | Mermaid diagram source |
format | string | |
outputPath | string | Project-relative path. Defaults to docs/architecture/diagram.<format> |
export_architecture_md Export ARCHITECTURE.md
Writes the architecture contract (summary, components, data flow, decisions, pre-mortem, diagram, open questions, rules for the coding agent) as markdown inside the project.
| Parameter | Type | Description |
|---|---|---|
components * | array | Every component must also appear as a node in the diagram |
decisions * | array | |
risks * | array | Pre-mortem: how this design fails, with a mitigation each |
summary * | string | What the system does, for whom, and the core job-to-be-done |
title * | string | Project name |
dataFlow | array | |
diagramPath | string | Project-relative path of the rendered diagram |
mermaidSource | string | Mermaid source of the diagram |
openQuestions | array | |
outputPath | string | Project-relative .md path |
list_patterns List reference architectures
Lists reference architecture patterns. Pass a project description as `query` to get the closest matches ranked first.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
query | string | Free-text description of the project |
get_pattern Get reference architecture
Returns one pattern: components, trade-offs, failure modes, cost drivers, what not to use it for, and a Mermaid diagram.
| Parameter | Type | Description |
|---|---|---|
id * | string | Pattern id from list_patterns |