Dev.to
5/12/2026

How we built an MCP Guardrail to enforce Tech Policy in real-time
Short summary
As organizations adopt AI coding assistants like Cursor and Claude Desktop, developers generate code with higher secret-leak and vulnerability rates than manual coding. Architect's Guardrail, an open-source MCP server, delivers real-time company policy (tech radars, approved libraries, security rules, ADRs) to LLMs before code generation. This shifts governance from reactive post-commit detection to proactive, contextual AI control.
- •AI-assisted code has 2x higher credential leak rates (3.2% vs 1.5%) and 45% contain OWASP Top 10 vulnerabilities
- •MCP-based guardrail delivers organizational context in real-time to LLMs during code generation, not after
- •Transforms tech governance from reactive security scanning to proactive policy enforcement at the moment decisions are made
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



