Architectos

io.github.cgseyhan由 GitHub 账号 cgseyhan 发布v0.1.30更新于 Oct 24, 2026

ArchitectOS - AI-Native Repository Intelligence & Architecture Operating System.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

ArchitectOS 是一个本地 MCP 服务器,让 AI 助手以只读方式分析代码仓库:健康审查、耦合分析、变更影响、重构计划与符号解析。

可以做什么
审查仓库健康状况并分解问题,可设置分数阈值用于 CI。解释根因耦合,并跨代码库计算下游变更影响。生成分步重构与迁移计划。解析符号并回答自然语言的架构问题,减少模型臆造。检测未使用的导出与死代码,审计 UI 组件的组合与边界。保存持久的架构护栏规则供后续调用。
适用场景
适合助手在已有代码库上工作、需要先理解架构、评估改动风险或制定重构计划时使用。也适合为 Claude Code、Cursor、Codex 等 AI 编程代理设置架构护栏。
运行要求
以本地进程通过 stdio 运行,使用 npx 从 npm 包 architectos 启动(需要 Node.js)。未声明认证、环境变量或请求头。分析本机上的代码仓库。
安装前请注意
README 声明它不会直接修改用户代码,代码改动由代理或开发者执行,因此执行前应审阅生成的计划。它在本地读取仓库源代码,其结论、评分与安全检测结果属于启发式判断,需要人工核实。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Architectos,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ArchitectOS

AI-Native Repository Intelligence & Governance Engine

ArchitectOS analyzes your repository, explains its architecture, calculates change impact, and enforces guardrails for AI Agents (Claude Code / Cursor / Codex).

[License: MIT] [NPM Version] [Dogfooded with ArchitectOS] [Node.js] [MCP Ready]


Strict Product Mandate: ArchitectOS never modifies user code directly; it exclusively analyzes, explains, calculates impact, and generates actionable refactoring plans. Code modifications are executed by AI Agents or human developers.


⚡ Quickstart & Core Commands

bash
# 1. Initialize and review repositorynpx architectos
# 2. High-level repository health, security & UI review (with optional CI threshold)architectos reviewarchitectos review --threshold 80
# 3. Component deep-dive (supports --why, --ui, --dead, --duplication, --taint)architectos analyze toolbar.tsxarchitectos analyze toolbar.tsx --whyarchitectos analyze --uiarchitectos analyze --deadarchitectos analyze --duplicationarchitectos analyze --taint auth.controller.ts
# 4. View historical score timeline and trendarchitectos history
# 5. Cross-graph downstream change impact & risk ratingarchitectos impact auth.ts
# 6. Structured refactoring migration planarchitectos plan toolbar.tsx
# 7. Symbol resolver & natural language architecture queryarchitectos resolve WorkspaceRepositoryarchitectos resolve "Where is tenant isolation enforced?"
# 8. Native MCP server gateway & live watcherarchitectos watcharchitectos mcp

🏛️ The ArchitectOS Pipeline

text
architectos review               # High-level health & problem breakdown (--threshold 80)      ↓architectos analyze <target>     # Deep-dive (--why, --ui, --dead, --duplication, --taint)      ↓architectos impact <target>      # Cross-graph downstream change risk      ↓architectos plan <target>        # Step-by-step refactoring migration plan      ↓architectos resolve <symbol>     # Hallucination shield & symbol resolver      ↓architectos history              # Historical score timeline & trend tracking      ↓AI Agent / Developer executes refactor

🎯 Engine Precision & Accuracy Features

  • 25 CWE-Mapped SAST Engine: High-precision rules covering SQLi, XSS, RCE, ReDoS, Prototype Pollution, NoSQLi, Open Redirect, Unsafe Deserialization, and Weak Cryptography.
  • Context-Aware Noise Filter: Automatically suppresses false positives inside test blocks (describe/it), JSDoc comments, dead conditional branches, and when known sanitizers (DOMPurify, escapeHtml) are detected.
  • Multi-File Taint Tracking Engine: Traces untrusted user inputs (HTTP req.body/searchParams) down to dangerous execution sinks across multi-file import graphs.
  • Code Duplication Scanner: Token-fingerprinted Jaccard similarity engine detecting copy-pasted code blocks across monorepo packages.
  • Framework Entrypoint Whitelist: Eliminates false positives for Next.js (GET, POST, generateMetadata, middleware), Remix, Vitest, and CLI entrypoints.
  • Tarjan SCC Cycle Detection: Mathematically sound circular dependency cycle detection for complex monorepos.
  • Public Scoring Transparency: Fully documented formulas and deduction rules in SCORING.md.

🧪 Real-World Benchmark Verification (v1.2.1 Engine Breakdown)

ArchitectOS is battle-tested and dogfooded across major open-source codebases with transparent sub-metric scoring:

RepositoryFilesOverallArchSecQualAIUIScan SpeedTop Focus Area
excalidraw/excalidraw520+88/1009284909480<18msCanvas Component Decomposition
calcom/cal.com1,400+84/1008088829080<45msBooking Service Layer Isolation
shadcn/ui120+96/1009895969596<8msUI Component Primitive Boundaries
cgseyhan/architectos51100/100100100100100N/A<19msNative Self-Hosted AST Governance

Note: Pure CLI / backend repositories (e.g. architectos) omit UI Architecture scoring.


🤖 Native MCP Server Integration

Add ArchitectOS to your Claude Code, Cursor, or Codex MCP configuration:

json
{  "mcpServers": {    "architectos": {      "command": "npx",      "args": ["-y", "architectos", "mcp"]    }  }}

Registered MCP Tools

  • architectos_review: Repository health & problem breakdown.
  • architectos_why: Root-cause coupling analysis.
  • architectos_impact: Polyglot change impact calculator.
  • architectos_plan: Step-by-step migration refactoring plan.
  • architectos_resolve: Symbol resolver & hallucination shield.
  • architectos_dead: Unused exports & zombie code detector.
  • architectos_ui: Framework-agnostic UI component composition & boundary audit.
  • architectos_remember: Store persistent architectural guardrail rules.

📄 License

MIT License © 2026 ArchitectOS Authors

来源:README.md,提交 34a1ba3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.30最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。