Architecture Check MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Architecture Check MCP
English · Русский
Turn architecture review findings into checks your coding agent can run. Project instructions and skills give the agent context. Builds, linters, static analyzers, and tests verify what they already cover. They can all pass while a change breaks a convention specific to your project. For example, a domain package can acquire a dependency on infrastructure.
Your team records the convention as an executable rule alongside the code in
.architecture/. Codex, Claude, or any stdio MCP client can call
architecture_check against the current working tree, including uncommitted
changes, and get a report with the file, line, and reason for each violation.
How a review finding becomes a check
During development or review, identify the architectural mistake and state the project rule it violates.
Add an executable check to
.architecture/. Runarchitecture_checkon the original change and confirm that the new rule returnsfailfor the violation you found.The agent reads the report, fixes the code, and runs the tool again. A
passconfirms the declared rules passed within their reported coverage. If the result isincomplete, inspect the diagnostics for unfinished checks.Keep the rule in the repository so the agent can catch the same mistake before the next review.
Related MCP server: ml-skills-mcp
Available tool
architecture_check runs all declared checks for the project you select.
Pass project_path, an absolute directory path on the host running the MCP
server. The same server can check a different project on the next call.
The report includes:
status:passwhen the declared checks pass,failwhen they report error-level violations, orincompletewhen the checks could not be completed or verified.checks: the individual checks and the files they covered.findings: rule ID, file, line, severity, explanation, and evidence for each finding.diagnostics: reasons why a check could not be completed.
Adding the forbidden dependency to the example project produces this excerpt from the report:
{
"status": "fail",
"findings": [
{
"rule_id": "layers/domain-independence",
"file": "packages/domain/package.json",
"line": 4,
"severity": "error",
"message": "The domain package must not depend on infrastructure",
"evidence": "dependencies.@example/infrastructure"
}
]
}Use the optional report_filter to see findings for selected files or lines
during review. The checker still runs all declared checks, and the project
status still reflects the full result.
{
"project_path": "/absolute/path/to/project",
"report_filter": [
{ "path": "packages/domain/package.json", "lines": [[1, 10]] }
]
}Quick start
You'll need Node.js 22 or newer and an MCP client that supports stdio.
git clone https://github.com/hram/architecture-check-mcp.git
cd architecture-check-mcp
npm ci
npm testConfigure your MCP client to launch the server. Use an absolute path to the entry point:
[mcp_servers.architecture-check]
command = "node"
args = ["/path/to/architecture-check-mcp/src/mcp-server.js"]For clients that accept an mcpServers JSON object:
{
"mcpServers": {
"architecture-check": {
"command": "node",
"args": [
"/path/to/architecture-check-mcp/src/mcp-server.js"
]
}
}
}Restart the MCP client and call architecture_check:
{"project_path":"/path/to/architecture-check-mcp/examples/layered-project"}The example should return pass. To reproduce the finding above, add
"dependencies": { "@example/infrastructure": "*" } to
examples/layered-project/packages/domain/package.json and call the tool again.
Use it with your project
Copy the example .architecture directory
into your project, adapt its manifest and rules, and pass your checkout as
project_path. Or implement the same JSON protocol with your own
checker. Only run the server against projects whose checker code you trust: it
executes .architecture/cli.cjs with your local permissions.
The example checks the domain package's declared dependencies. Checking imports or transitive dependencies requires an analyzer that covers them. Your project checker can reuse the analysis tools you already have.
For example, add this to your agent's project instructions:
Before finishing a change, run
architecture_checkon the current project. After fixing any findings, run it again. Report the final status and any remaining violations or checks that could not be completed.
Optional access scope
--allow-root /absolute/pathrestricts checks to that directory and its descendants. Repeat it for several directories.--project-manifest /path/to/projects.jsonrestricts checks to the exact directories in{"projects":[{"path":"/absolute/path/to/project"}]}.--project-path-env VARIABLErestricts checks to the exact directory in that variable when it is set. All configured restrictions apply together.
For meta-agent, add one custom stdio entry per space and pass --project-manifest with that space's space.json path and --project-path-env PROJECT_PATH. The same project_path tool argument applies to every client.
Direct invocation
The project checker itself can also run directly. From the example project root:
printf '%s\n' '{"protocol_version":1,"request_id":"manual-1","scope":"project"}' |
node .architecture/cli.cjsIt prints one JSON report. Exit codes are 0 for pass, 1 for violations,
and 2 for an incomplete check.
License
ISC.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Automated architecture sanity check: 19 rule-cited checks, verdict report. Paid runs US$99.
Statically audits MCP tool surfaces for token cost, schema quality, and design issues.
Scan iOS and Android project files for common App Store and Play review issues over MCP.
Check AI work against requirements and return structured verdicts, findings, and repair steps.
Related MCP Servers
- FlicenseAqualityBmaintenanceEnables local auditing of trading strategies through MCP checkers for point-in-time data provenance, pre-trade order validation, and regime-fragility testing, while deferring promotion verdicts to a hosted service.1892 PyPI-
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to enforce architecture standards by checking repositories against overridable rules and adapter results over MCP.12 npmMIT
- AlicenseAqualityCmaintenanceEnables agents and CI pipelines to audit MCP servers and agent tool-chains by statically scanning repositories, local checkouts, tools/list exports, or live endpoints for risks such as destructive actions without confirmation, mismatched safety annotations, injection surfaces, credential or PII exposure, and unguarded command, path, or URL sinks. All checks are read-only and never execute the scanned code or call tools/call.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to run deterministic, read-only local repository audits for risky GitHub workflows, undocumented environment variables, possible credentials, and conflicting dependency configuration, returning structured findings without sending source code to a service.46 npmMIT