Infers architecture rules from your TypeScript repo's real import graph, gates each on statistical evidence, and emits them into the tools you already use (ESLint, dependency-cruiser, ts-arch). Turns the boundaries your code already follows into enforcement, so architecture drift gets caught, not just documented.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add archprint -- npx -y archprint{
"mcpServers": {
"archprint": {
"command": "npx",
"args": ["-y", "archprint"]
}
}
}Resumen de MCP Servers
# Archprint [](https://www.npmjs.com/package/archprint) [](https://github.com/Tommkruix/archprint/actions/workflows/ci.yml) [](https://www.npmjs.com/package/archprint) [](./LICENSE) [](https://tommkruix.github.io/archprint/) [](https://glama.ai/mcp/servers/Tommkruix/archprint) **Mine the architecture rules your repo already enforces, with the evidence attached.** **[Try it in your browser](https://stackblitz.com/github/Tommkruix/archprint-demo)**, nothing to install · [Quick start](#quick-start) · [Use in CI](#use-in-ci) · [Use with AI agents](#use-it-with-ai-coding-agents) · [Docs](https://tommkruix.github.io/archprint/) ## What it does, in plain words Every codebase has unwritten rules. "Pages never talk to the database directly." "Shared code never reaches back into the app." Nobody wrote them down, but the code follows them, until one day someone (or an AI assistant) breaks one without noticing. Archprint reads a TypeScript project, finds the rules its code already follows, and shows you the proof for each one: how many files follow it, which files break it, and how sure it is. The rules you trust become automatic checks in the tools your team already runs, so a break is caught the next time lint runs (in your editor, a pre-commit hook or CI), not weeks later in review. Think of it as a building inspector who surveys the house first and writes down how it was actually built, instead of handing you a rulebook from somewhere else. - **For developers and tech leads:** inferred, evidence-backed lint rules for ESLint and dependency-cruiser, generated with `init`, connected with `wire`, and removed with `eject`. - **For reviewers:** `archprint check` flags only the rule breaks a pull request introduces, inline on GitHub, never the existing backlog. - **For teams using AI coding agents:** Claude Code, Cursor and other agents can ask Archprint for the project's rules, with the evidence, before they write code. - **For anyone evaluating a codebase:** a quick, honest picture of how a project is actually structured. Your `CLAUDE.md` is guidance. Your lint rules are enforcement. Archprint closes the gap by generating the enforcement from patterns your codebase already demonstrates, so you adopt rules you can trust instead of authoring them by hand. ## See it in action The recordings below use [archprint-demo](https://github.com/Tommkruix/archprint-demo), a small Next.js API whose routes reach the database only through a service layer. **1. Find the rules your code already follows.** Each rule comes with its evidence.  **2. See why one rule is trusted.** The confidence check, step by step.  **3. Turn the rules on, watch a break get caught, and remove it all again.** Archprint writes its files, adds one line to your ESLint config, lint flags a route that imports the database directly, and `eject` restores your project exactly.  **Try it yourself, nothing to install:** [open the demo in StackBlitz](https://stackblitz.com/github/Tommkruix/archprint-demo). The scan runs as soon as it opens, and the [demo's README](https://github.com/Tommkruix/archprint-demo#try-it) walks through enforcing a rule in ESLint, breaking it, and asking for the rules over MCP. ## Use it with AI coding agents AI coding agents can ask Archprint for a project's rules through [MCP](https://modelcontextprotocol.io), an open standard that lets agents use outside tools. You ask in plain words; the agent calls Archprint on its own and answers with the evidence. Archprint only reports. Enforcement still runs in your linter. **Claude Code** calls Archprint by itself when you ask about the architecture:  **Cursor works the same way.** In these recordings Cursor was set to Grok 4.7, not Claude. In the desktop app's chat, its agent called Archprint's scan tool on its own; this screenshot shows the tool result and the answer:  In the terminal (`cursor-agent`), it asks once before running the tool, then answers from it:  ### Measured: the same question with and without Archprint We asked Claude Code (Opus 5.5) "What architecture rules does this repo already follow?" on the demo app (70 files), five runs each way. Median [range]: | | Without Archprint | With Archprint | | ----------------- | ------------------------- | ------------------------- | | Tokens read | 81k [58k to 96k] | 52k [52k to 52k] | | Tokens written | 1.1k [1.1k to 1.4k] | 0.6k [0.6k to 0.6k] | | Cost per question | $0.083 [$0.078 to $0.153] | $0.037 [$0.032 to $0.076] | | Time | 17 s [15 to 19] | 10 s [9 to 31] | | Tool calls | 5 [4 to 10] | 2 [2 to 2] | What the answers showed: - Both found the main rule: routes reach the database only through `lib/services/`. - With Archprint, every run gave the evidence for each rule and named the one file that breaks one (`lib/db.ts` reads `process.env` outside the config layer). No run without it noticed that. - Without Archprint, Claude also described naming conventions Archprint does not check. Read these numbers with care: about 50k of the tokens read in both columns are Claude Code's own system prompt, and this is one small repo; larger ones are not measured yet. [Method, harness and every answer](https://github.com/Tommkruix/archprint-demo/tree/main/bench). Setup for Claude Desktop, Claude Code, Cursor and other clients is in [MCP setup](#mcp-setup). ## Quick start Requires Node 20 or newer. Run these in a folder with a `tsconfig.json`. In a monorepo, `scan` and `recommend` also accept the root and cover every app, while `init` and `generate` work on one app at a time (for example `apps/web`); at a root with several apps they stop, list the apps, and ask you to rerun with one. ```bash # 1. See the rules your code already follows, with the evidence. Changes nothing. npx archprint scan . # 2. Ask why one rule is trusted (use a rule label from the scan) npx archprint explain AP-001 . # 3. Set up enforcement for the rules your code already follows cleanly, # and record what to review or adopt next in .archprint/config.json npx archprint init . # 4. Connect the generated rules to your ESLint / dependency-cruiser config (one managed line) npx archprint wire # 5. Run your linter as usual. Your code passes today; a new import that breaks a rule fails. npx eslint . # To undo everything, exactly: npx archprint eject ``` **See it catch something.** After step 4, break a rule on purpose: for example, make a route file import your database client directly, then run your linter. That is the whole loop the [demo](https://stackblitz.com/github/Tommkruix/archprint-demo) walks through in the browser. To keep it in the project instead of using `npx`: `npm install --save-dev archprint`. More commands for a deliberate, step-by-step setup: ```bash # Inspect the evidence behind one rule archprint explain AP-002 apps/web # Write the auto-trusted (mechanical) rules to .archprint/, only for the linters your repo uses. # Structural-inference rules are held for review; add --include-structural to emit them too. archprint generate apps/web # Confirm the generated rules pass on your repo before wiring archprint generate apps/web --check # Generate a single rule by id after reviewing it (including a SUGGEST rule) archprint generate apps/web --rule AP-001 # Recommend a rule set from the evidence and the detected stack (fresh repos too) archprint recommend apps/web # Upgrading from 0.5.x? Move an older archprint-rules/ setup to the .archprint layout archprint migrate ``` Or build from source: ```bash git clone https://github.com/Tommkruix/archprint cd archprint npm ci npm run build node dist/cli.js scan <path-to-your-app> ``` ## How it decides what to trust Archprint is deliberately cautious: one wrong rule hurts more than no rule. Every candidate rule passes two checks before it is turned on for you. **1. Is there enough evidence?** Seeing 5 of 5 files follow a pattern is not proof; 40 of 40 is. Archprint scores each rule with a **Wilson score lower bound**, a standard statistical measure that combines how often the rule holds with how many files it was checked on. Each rule lands in one of three groups: - **AUTO** (enforceable): the 95% lower bound on conformance is at least 90%, with at most 3 exceptions and a confidently classified role. - **SUGGEST** (provisional): the pattern holds in at least 80% of files and the role is at least 50% certain, but one AUTO condition fails: the confidence floor is under 90% (too few files, or too many that break it), more than 3 files break it, or the role is under 80% certain. Surfaced for review, not auto-
Lo que la gente pregunta sobre archprint
¿Qué es Tommkruix/archprint?
+
Tommkruix/archprint es mcp servers para el ecosistema de Claude AI. Infers architecture rules from your TypeScript repo's real import graph, gates each on statistical evidence, and emits them into the tools you already use (ESLint, dependency-cruiser, ts-arch). Turns the boundaries your code already follows into enforcement, so architecture drift gets caught, not just documented. Tiene 7 estrellas en GitHub y su última actualización registrada es del 2026-10-04.
¿Cómo se instala archprint?
+
Puedes instalar archprint clonando el repositorio (https://github.com/Tommkruix/archprint) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar Tommkruix/archprint?
+
Nuestro agente de seguridad ha analizado Tommkruix/archprint y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene Tommkruix/archprint?
+
Tommkruix/archprint es mantenido por Tommkruix. La última actividad registrada en GitHub es del 2026-10-04, con 0 issues abiertos.
¿Hay alternativas a archprint?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega archprint en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/tommkruix-archprint)<a href="https://claudewave.com/repo/tommkruix-archprint"><img src="https://claudewave.com/api/badge/tommkruix-archprint" alt="Featured on ClaudeWave: Tommkruix/archprint" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.