Continuous Code Guardian
AI-powered continuous code assistant for Cursor, VS Code, Antigravity, and Claude Code via MCP, providing tools for code review, testing, documentation, and quality analysis.
README
Continuous Code Guardian
AI-powered continuous code assistant for Cursor IDE, VS Code, Antigravity, and Claude Code via MCP.
Overview













Focused public surface:
/ca-checkit— evidence-ranked advisor (routing_cues+ urgent|optional recommendations) → confirm subset (default prefers urgent) → run selected children (ca-auraitis never recommended; run it separately)/ca-smellit— quality-depth + architecture/clean-code prompt (rankedsmell_scorecard, severity order) → proceed → apply → post-apply ran/skipped gate (for Sonar/CI gate prep use/ca-sonarit)/ca-testit— gap scorecard → merge/append into related non-empty tests when appropriate → ran/skipped verify (≤1 fix) → conditional coverit handoff for coverage focus or local misses/ca-commentit,/ca-docit,/ca-smellit— lightweight JS/TS export, JSDoc, surface, and smell heuristics (not full AST analysis)/ca-docit— structured companion markdown (canonical outline + API extract + drift scorecard) underdocs/→ reconcile or report in sync (no comment edits)/ca-coverit— coverage readiness → local Cobertura/JSON/LCOV/Clover/Istanbul evidence when present → source-first proceed → source then tests → agent measure→iterate toward goal/ca-sonarit— Sonar/CI gate-prep helper → local SARIF/Sonar/GitLab/ESLint report evidence → source-first prompt → proceed → source then tests → optional report-driven improve→recheck (≤3 rounds; not a gate pass)/ca-aurait— Cognite Flows design-quality helper → scored prompt → confirm → apply design fixes
Polyglot support
All context packs accept UTF-8 text source files through an open suffix matrix. Go, Java, C#, and Dart have named heuristics; C++ and Scala have light heuristics; unknown but source-like files use the other generic profile. Flutter is detected as Dart and receives Flutter test/coverage guidance. These are advisory heuristics, not compiler or language-server analysis; see the Feature 026 quickstart.
Install
For end users installing this MCP into Cursor, VS Code, Antigravity, or Claude Code (Git, PyPI/uvx, local, or binary), see INSTALLATION.md.
Contributor / local editable install:
python -m pip install -e ".[dev]"
cp guardian.config.example.yaml guardian.config.yaml
Requires Python 3.12+. Optional analyzer CLIs (Ruff, ESLint, Semgrep, …) are only used when tools run with analyzer_mode=lint or all.
MCP tools
| Tool (slash) | Purpose |
|---|---|
/ca-checkit |
Advisor: evidence-ranked plan from file cues → ask which to run (default prefers urgent) → invoke selected children; never recommends /ca-aurait |
/ca-smellit |
Quality-depth + architecture/clean-code prompt (smell_scorecard) → proceed → apply → post-apply ran/skipped gate; hand off Sonar/CI gate prep to /ca-sonarit |
/ca-testit |
Gap scorecard → focused-complete unit tests → ran/skipped verify (≤1 fix); coverit handoff for coverage goals |
/ca-commentit |
Ranked comment_scorecard → targeted comment plan (≤10) → proceed when non-empty → in-source comments only (no blanket refresh; not companion docs) |
/ca-docit |
Structured companion markdown (outline_contract + api_surface_extract + doc_drift_scorecard) under local docs/ with CAPITAL basename; in-sync skip rewrite; no comment edits |
/ca-coverit |
Coverage readiness → aspire-high + 80% floor → proceed → source then tests → agent measure→iterate (bounded rounds; MCP does not run coverage) |
/ca-sonarit |
Sonar/CI gate-prep helper (not Sonar / not gate-pass) → source-first prompt → proceed → source then tests → optional report-driven iterate (≤3 rounds; MCP does not run Sonar) |
/ca-aurait |
Flows design-quality helper → scored prompt (Q1–Q10 / 3.8+) → ask proceed → apply listed design fixes |
How to use them in Cursor, VS Code, Antigravity, or Claude Code: HOW_TO_USE_TOOLS.md.
Slash autocomplete (/ca…) is installed automatically into the workspace —
.cursor/commands/ in Cursor, .github/prompts/ in VS Code, .agent/workflows/ in
Antigravity, .claude/commands/ in Claude Code — when the MCP server starts (requires
"cwd": "${workspaceFolder}" in mcp.json, where supported). Obsolete older /ca-*
shortcut files are removed on install, independently per editor.
Configuration
See guardian.config.example.yaml. Local guardian.config.yaml and .code-guardian/
are gitignored.
smellit_max_excerpt_bytes/testit_max_excerpt_bytes/commentit_max_excerpt_bytes/docit_max_excerpt_bytes/coverit_max_excerpt_bytes/sonarit_max_excerpt_bytes/aurait_max_excerpt_bytes(default65536)coverit_max_report_bytes/sonarit_max_report_bytes(default65536);sonarit_max_related_files(default4)smellit_analyzer_mode/testit_analyzer_mode/commentit_analyzer_mode/docit_analyzer_mode/coverit_analyzer_mode/sonarit_analyzer_mode/aurait_analyzer_mode(defaultnone= fast)- Optional
analyzers:toggles for whenanalyzer_modeislintorall - Invalid config returns
CONFIG_INVALIDwithout leaking secrets
Validation
- Commentit scorecard & proceed gate:
specs/021-commentit-scorecard-gate/quickstart.md - Sonarit report-driven iterate:
specs/020-sonarit-report-iterate/quickstart.md - Smellit:
specs/016-smellit-quality-depth/quickstart.md(alsospecs/013-smellit-architecture-refactor/quickstart.md) - Testit:
specs/017-testit-verify-loop/quickstart.md(alsospecs/004-testit-unit-tests/quickstart.md) - Commentit / Docit split:
specs/010-commentit-docit-split/quickstart.md - Coverit iterate coverage:
specs/015-coverit-iterate-coverage/quickstart.md - Coverit max coverage:
specs/014-coverit-max-coverage/quickstart.md - Coverit / Sonarit source prep:
specs/012-coverit-sonarit-source-prep/quickstart.md - Aurait:
specs/008-aurait-design-quality/quickstart.md
pytest -q
Spec Kit docs
- Feature 021:
specs/021-commentit-scorecard-gate/ - Feature 020:
specs/020-sonarit-report-iterate/ - Feature 017:
specs/017-testit-verify-loop/ - Feature 016:
specs/016-smellit-quality-depth/ - Feature 015:
specs/015-coverit-iterate-coverage/ - Feature 014:
specs/014-coverit-max-coverage/ - Feature 013:
specs/013-smellit-architecture-refactor/ - Feature 012:
specs/012-coverit-sonarit-source-prep/ - Feature 008:
specs/008-aurait-design-quality/ - Feature 007:
specs/007-coverit-coverage-prep/ - Feature 004:
specs/004-testit-unit-tests/ - Feature 003:
specs/003-smellit-cleanup-prompt/
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。