{"slug": "i-built-an-open-source-offline-ast-guardrail-mcp-server-aveyx-v3-0-1-to-stop-ai", "title": "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", "summary": "A developer released Aveyx v3.0.1, an MIT-licensed, fully offline Node 20+ tool and native stdio MCP server that uses Babel AST analysis to catch AI coding agents tampering with tests, leaking secrets, and breaking production code. The tool ships 10 MCP tools and 44 prompts, and adds commands for transitive reverse-dependency impact analysis, signature-preserving code compaction, strict anti-tamper review with SARIF 2.1.0 output, secret and injection scanning, atomic checkpoint/rollback, and pre-push git hooks.", "body_md": "If you use Claude Code, Cursor, Windsurf, or Copilot on a multi-file repo, you've probably seen them:\n\n`it.skip` / `|| exit 0` to make tests \"pass\"\nI 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:\n\n`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.\nQuick start:\n\n```\nbash\nnpx aveyx init\nnpx aveyx doctor\n![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/t7z6za4gca4zso68bjj7.png)\n```\n\n", "url": "https://wpnews.pro/news/i-built-an-open-source-offline-ast-guardrail-mcp-server-aveyx-v3-0-1-to-stop-ai", "canonical_source": "https://dev.to/shaikhamanulla/i-built-an-open-source-offline-ast-guardrail-mcp-server-aveyx-v301-to-stop-ai-coding-agents-4270", "published_at": "2026-11-21 05:25:46+00:00", "updated_at": "2026-11-21 05:42:04.842333+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "ai-safety"], "entities": ["Aveyx", "Claude Code", "Cursor", "Windsurf", "GitHub Copilot", "Babel", "OASIS SARIF"], "also_reported_by": [], "takeaway": "Aveyx v3.0.1 wraps Babel AST checks into an offline MCP server with 10 tools, letting coding agents mechanically block test-skipping, secret leaks and protected-config edits instead of relying on prompt rules.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/i-built-an-open-source-offline-ast-guardrail-mcp-server-aveyx-v3-0-1-to-stop-ai", "markdown": "https://wpnews.pro/news/i-built-an-open-source-offline-ast-guardrail-mcp-server-aveyx-v3-0-1-to-stop-ai.md", "text": "https://wpnews.pro/news/i-built-an-open-source-offline-ast-guardrail-mcp-server-aveyx-v3-0-1-to-stop-ai.txt", "jsonld": "https://wpnews.pro/news/i-built-an-open-source-offline-ast-guardrail-mcp-server-aveyx-v3-0-1-to-stop-ai.jsonld"}}