Audit AI/LLM features for governance guardrails: confidence, fallback, validation, human-in-loop.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Lint your AI features for governance guardrails β where can the model do something you can't undo?
Live site: nugehs.github.io/aiglare-web

Point it at any JS/TS repo and it finds every place an LLM/AI output reaches a user or triggers a side-effect (payment, booking, email, database write) β then flags which of those have no confidence handling, no fallback, no output validation, and no human-in-the-loop.
Most AI incidents aren't model failures. They're governance failures: the model output flowed straight to a user or an irreversible action with nothing in between. This tool makes those paths visible, and lets you block them in CI.
Each AI surface is classified by sink β where the output goes:
user-facing β returned from a route/controller, or rendered in a componentside-effectful β feeds a payment, booking, email, db/file write, or shellinternal β logged or cached onlyβ¦and scored on five guardrail dimensions: confidence handling, fallback/uncertain path, output validation, human-in-the-loop (for side-effects), and error isolation.
| Severity | Meaning |
|---|---|
| π΄ red | model output hits a user or a side-effect with no guardrails β review now |
| π‘ amber | partial coverage |
| π’ green | guardrails present |
The CI gate (--ci) fails only on red + side-effectful surfaces β the "AI auto-triggers an irreversible action with no confirmation" case β so it's safe to adopt without drowning a team in warnings.
Pass --compliance to map every finding to specific regulatory controls, then pick your output format:
Supported frameworks:
| Framework | Controls mapped |
|---|---|
soc2 | SOC 2 Trust Services Criteria β CC7.2, CC7.4, CC9.1, A1.2, PI1.2, PI1.3 |
eu-ai-act | EU AI Act β Art. 9, 13, 14, 17 |
nist | NIST AI RMF β GOVERN-1.2, MAP-2.3, MEASURE-2.5/2.6, MANAGE-1.3/2.2 |
owasp | OWASP LLM Top 10 β LLM02, LLM04, LLM08, LLM09 |
Use all to include every framework. Each surface in --json output gains a violations[] array with the framework, control ID, description, and error/warning level.
Multi-repo: pass multiple paths for a single combined report:
Detection is driven by a provider registry covering OpenAI, Anthropic, Google, Cohere, Mistral, Replicate, the Vercel AI SDK, LangChain/LangGraph, Ollama, AWS Bedrock, Cloudflare Workers AI, and Hugging Face β plus raw fetch/axios calls to known inference hosts. Adding a provider is a one-line PR.
If a repoctx index (.dev-context/index.json) is present, the tool uses it automatically to prioritize likely AI files and sharpen sink classification via repoctx's kind/domain data (e.g. a file repoctx marks as a controller route is correctly treated as user-facing even when the native scanner can't see the call graph). Without it, a built-in TypeScript-compiler scanner does the same job at lower fidelity. Same tool, two fidelity levels β standalone for everyone, richer for repoctx users.
aiglare ships a built-in Model Context Protocol server so agents can run audits directly:
It exposes three tools:
| Tool | What it does |
|---|---|
ai_surface_audit | Full audit of a repo (path, optional sinks, severity) β the same structured report as --json |
ai_surface_gate | CI-gate verdict for a repo: passed + count of blocking red side-effectful surfaces |
list_providers | The provider registry the scanner detects |
Register it with an MCP host (Claude Desktop, Cursor, VS Code, β¦):
| Approach | What it does | Where aiglare differs |
|---|---|---|
| guardrails-ai / NeMo Guardrails / runtime validators | Validate or correct each model output at runtime, per call | aiglare is static analysis: it finds the AI surfaces that have no guardrail at all, before anything runs β then you add a runtime validator there |
| semgrep / custom lint rules | General-purpose static rules you write and maintain yourself | aiglare ships the AI-specific knowledge out of the box: a provider registry, sink classification, and five guardrail dimensions β zero rule-writing |
| Manual AI-feature review | Catches nuance a scanner cannot | aiglare gives reviewers the complete inventory of AI surfaces and a severity triage, so review time goes where the risk is |
These are complementary: aiglare tells you where a guardrail is missing; runtime validators are how you add one.
Want to evaluate aiglare on a real codebase before adopting the CI gate? PILOT.md is a step-by-step one-week runbook: install, first audit on a backend and a frontend repo, reading the report, tuning --severity/--sinks, and deciding whether to turn on --ci.
This is static, advisory analysis β a linter, not a verifier. It produces false positives (a guardrail two call-hops away can be missed) and false negatives (a confidence variable that doesn't actually gate anything reads as present). Treat output as surfaces to review, not violations. The single-file native scanner cannot follow the call graph; the repoctx adapter exists precisely to close that gap.
The MCP tool ai_surface_audit accepts an optional compliance array β each surface in the response includes a violations[] array when set.
MIT
aiglare is one of four tools that form a deterministic trust layer for AI-assisted development. Each answers a question people keep handing to an LLM β with static analysis instead.
More at segunolumbe.com. static analysis, never the model.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/aiglare)<a href="https://allmcps.com/mcp/aiglare"><img src="https://allmcps.com/api/badge/aiglare?style=directory" alt="Aiglare on AllMCPs" /></a>