c4-architect-mcp
v0.2.0-alpha.1Local TypeScript architecture analysis with source evidence, C4 diagrams, and interactive exports over MCP
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
analyze_architectural_boundaries
Locally parses TypeScript/TSX dependencies with source evidence, inferred or declared C4 mappings, and diagnostics. Save a graph and return a summary to keep the response small.
| Parameter | Type | Description |
|---|---|---|
c4Level * | string | |
targetDir * | string | Directory to scan |
configPath | string | Explicit JSON boundary configuration path |
outputPath | string | Save canonical versioned graph JSON |
responseMode | string | |
tsconfigPath | string | TypeScript resolution configuration; read as data |
get_architecture_summary
Read counts and analysis status from a saved, validated architecture graph.
| Parameter | Type | Description |
|---|---|---|
graphPath * | string |
query_architecture_graph
Read a bounded neighborhood or search result from a saved graph. Returns truncation flags; source evidence is opt-in.
| Parameter | Type | Description |
|---|---|---|
graphPath * | string | |
direction | string | |
includeEvidence | boolean | |
maxBytes | integer | |
maxDepth | integer | |
maxEdges | integer | |
maxNodes | integer | |
nodeId | string | |
search | string |
compare_architecture_graphs
Compare two saved graphs at the same abstraction level. Reports full change counts with bounded detail; timestamps and scan-root location do not create changes.
| Parameter | Type | Description |
|---|---|---|
afterPath * | string | |
beforePath * | string | |
limit | integer | |
maxBytes | integer |
render_architecture_graph
Render a saved validated graph directly to a compact C4 image, Mermaid source, and optional Markdown/SVG/PNG/interactive HTML files. Inferred boundaries are labeled.
| Parameter | Type | Description |
|---|---|---|
graphPath * | string | |
outputPath | string | |
title | string |
render_c4_mermaid
Renders a compact C4 PNG using server-side orthogonal layout, plus Mermaid source. With outputPath saves Markdown, SVG, PNG and interactive HTML with connection highlighting and full-diagram PNG/SVG exports.
| Parameter | Type | Description |
|---|---|---|
c4Level * | string | |
nodes * | array | |
relationships * | array | |
title * | string | |
outputPath | string | Markdown destination ending in .md |