c4-architect-mcp

v0.2.0-alpha.1
c4-architect-mcp Checked 16 hours ago Published 25 days ago

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

ParameterTypeDescription
c4Level *string
targetDir *stringDirectory to scan
configPathstringExplicit JSON boundary configuration path
outputPathstringSave canonical versioned graph JSON
responseModestring
tsconfigPathstringTypeScript resolution configuration; read as data

get_architecture_summary

Read counts and analysis status from a saved, validated architecture graph.

ParameterTypeDescription
graphPath *string

query_architecture_graph

Read a bounded neighborhood or search result from a saved graph. Returns truncation flags; source evidence is opt-in.

ParameterTypeDescription
graphPath *string
directionstring
includeEvidenceboolean
maxBytesinteger
maxDepthinteger
maxEdgesinteger
maxNodesinteger
nodeIdstring
searchstring

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.

ParameterTypeDescription
afterPath *string
beforePath *string
limitinteger
maxBytesinteger

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.

ParameterTypeDescription
graphPath *string
outputPathstring
titlestring

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.

ParameterTypeDescription
c4Level *string
nodes *array
relationships *array
title *string
outputPathstringMarkdown destination ending in .md