跳到正文
DEV Community· AmanullaShaikh·· 18 小時前AI 評分50

Aveyx v3.0.1:開源離線 AST 防護工具與 MCP 伺服器,防止 AI 編碼智能體偽造測試、洩漏密鑰及破壞正式環境

I built an open-source, offline AST guardrail & MCP server (Aveyx v3.0.1) to stop AI coding agents from faking tests, leaking secrets, and breaking prod

AI 導讀

Aveyx v3.0.1 是開源、完全離線的 AST 防護工具及 MCP 伺服器,用於檢查 AI 編碼智能體偽造測試、洩漏密鑰及破壞正式環境等問題。它提供依賴影響分析、程式碼精簡、嚴格審查、漏洞與密鑰掃描,以及檢查點和回滾功能。軟件採用 MIT 授權,要求 Node 20+,MCP 伺服器包含 10 個工具及 44 個提示詞。

正文

Cover image for I built an open-source, offline AST guardrail & MCP server (Aveyx v3.0.1) to stop AI coding agents from faking tests, leaking secrets, and breaking prod

AmanullaShaikh

If you use Claude Code, Cursor, Windsurf, or Copilot on a multi-file repo, you've probably seen them:

  • Swallow failing assertions or slip in it.skip / || exit 0 to make tests "pass"
  • Edit a shared helper without checking what breaks downstream
  • Hardcode an API key or leave raw SQL/command concatenation behind
  • Burn context window dumping full implementation files

I just shipped Aveyx v3.0.1 (MIT, Node 20+ ESM, 100% offline, only 3 @babel/* runtime deps) to catch these mechanically instead of relying on prompt rules alone:

  • aveyx impact <file> — Computes transitive reverse dependencies (ESM, CJS, re-exports, dynamic import()) and lists every affected test file.
  • aveyx compact — Strips function bodies via AST while preserving signatures, types, and PageRank callers.
  • aveyx review --strict — Babel AST anti-tamper + secret scanner + protected-config guard (outputs OASIS SARIF 2.1.0).
  • aveyx audit-bugs & aveyx scan-secrets — AST SQLi / command injection / React hook leak + credential scanner.
  • aveyx checkpoint / rollback — Atomic snapshots (including .env and git hooks) before risky refactors.
  • aveyx install-hooks --pre-push — Blocks bad commits/pushes locally.
  • aveyx-mcp — Native stdio MCP server with 10 tools and 44 prompts.

Quick start:


bash
npx aveyx init
npx aveyx doctor
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/t7z6za4gca4zso68bjj7.png)

來源:DEV Community · dev.to