archpilot-mcp

v0.2.0
archpilot-mcp Checked 15 hours ago Published 20 days ago

Plan 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.

ParameterTypeDescription
source *stringMermaid diagram source

render_diagram Render diagram

Validates and renders Mermaid source to svg or png inside the project. Returns the written file path.

ParameterTypeDescription
source *stringMermaid diagram source
formatstring
outputPathstringProject-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.

ParameterTypeDescription
components *arrayEvery component must also appear as a node in the diagram
decisions *array
risks *arrayPre-mortem: how this design fails, with a mitigation each
summary *stringWhat the system does, for whom, and the core job-to-be-done
title *stringProject name
dataFlowarray
diagramPathstringProject-relative path of the rendered diagram
mermaidSourcestringMermaid source of the diagram
openQuestionsarray
outputPathstringProject-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.

ParameterTypeDescription
limitinteger
querystringFree-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.

ParameterTypeDescription
id *stringPattern id from list_patterns