
AISentinel by BizDNAi
io.github.KabzhanovPublished by GitHub account Kabzhanovv1.0.6Updated Nov 10, 2026
Pre-tool policy enforcement + JSONL audit for AI agents. Apache 2.0.
Overview
A local MCP server that gates AI agent tool calls against YAML policies and writes a JSONL audit trail of every decision.
- What you can do
- Evaluate each tool call against a YAML policy and return allow, block, require human approval, or log-only decisions
- Record every decision to an append-only JSONL audit log with agent, session, tool, and risk-signal fields
- Lint and validate custom YAML policies, and list the built-in default, strict, and audit-only policies
- Run in shadow mode to observe what a policy would block without enforcing it
- Wrap any other stdio MCP server as a sidecar proxy so its calls pass through the same gate
- Produce a snapshot of audit data for AI Trust Index assessments
- When to use it
- Useful when an agent has shell, browser, file, or API access and you want a local guardrail that blocks secret-like arguments, destructive commands, or network and bulk-read calls, plus an auditable record of what the agent did. Also fits teams that need observability evidence for AI Trust Index scoring.
- Requirements
- Runs locally as a stdio process; the README lists Go 1.22+ for building from source, with pre-built binaries for Linux, macOS, and Windows. No authentication, environment variables, or headers are declared. An optional policy file can be passed with --policy or the AISENTINEL_POLICY variable; without one, a built-in default policy is used. Audit logs are written under the user's home directory.
Installation
In SourceWeft
- Open AISentinel by BizDNAi in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
AISentinel
[MCP Server] [GitHub release] [Apache 2.0] [Built by BizDNAi] [Go 1.22+] [AI Trust Index]
The missing security, control, and observability layer for the agentic era.
Traditional security tools were built for malware. AI agents were given legitimate power through tools and APIs. AISentinel provides the missing security, control, and observability layer.
1. Project Title + Tagline
AISentinel — an open-source MCP server that protects AI agents at runtime. Built by Kabzhanov / BizDNAi, the team behind the AI Trust Index.
2. Why AISentinel Exists
AI agents now have shell, browsers, file systems, and API keys. They are
legitimate processes — antivirus cannot see them. A single indirect
prompt injection in a PDF or email can pivot into mass data exfiltration
through ordinary tools like Bash and Email_send.
AISentinel closes that gap: it runs as an MCP server in front of every tool call, evaluates YAML policies, logs every decision, and ships an audit trail compatible with the AI Trust Index.
See docs/SECURITY_AUDIT.md for the full threat model.
3. Quickstart (3 minutes)
Option A: install the binary
go install gives you a standalone binary — you do not need to clone
this repo or pass --policy to get started. aisentinel serve with no
flags loads a built-in default policy (embedded in the binary at build
time), balanced for general use: blocks obvious secrets-in-args and
destructive commands, requires approval for network calls and bulk reads.
To use your own policy instead, pass --policy /path/to/your.yaml or set
$AISENTINEL_POLICY (see Policy resolution below).
Option B: install the sidecar (drop-in policy proxy for any MCP server)
Option C: clone and build
(--policy policies/default.yaml here is explicit and optional — omitting
it works too, and falls back to the same built-in default described above.)
Option D: pre-built binaries from GitHub Releases
Download from https://github.com/Kabzhanov/AISentinel/releases/latest.
Available for linux/amd64, linux/arm64, darwin/amd64, darwin/arm64,
windows/amd64.
Option E: add to Claude Code / Cursor / Cline
Then restart your MCP client and ask your agent to call any tool —
AISentinel will gate every call and write a JSONL audit trail to
~/.aisentinel/events-YYYY-MM-DD.jsonl.
Policy resolution
Both aisentinel serve and aisentinel-sidecar resolve which policy to
load in this order, stopping at the first one that applies:
--policy /path/to/file.yaml— if given, it must load; a missing or invalid file is a hard error.$AISENTINEL_POLICY— same contract as--policyif set../policies/default.yamlrelative to the current directory, if that file exists (this is what you get inside a clone of this repo).- The built-in default policy, embedded in the binary at compile time.
This is what makes
go install ... && aisentinel servework from any directory, with no repo checkout and no flags. When this path is used, the binary printsusing built-in default policyto stderr so it's never a silent surprise.
4. Key Features
- Pre-tool gate — evaluate every tool call against a YAML policy (allow / block / require_human_approval / log_only).
- Audit log — append-only JSONL with a standardised event schema.
- Validate-policy — lint a YAML policy without loading it.
- Built-in policies —
default,strict,audit-only(seepolicies/). - MCP-native — works in Claude Code, Claude Desktop, Cursor, Cline, Continue.
- Zero telemetry — runs locally; no phone-home.
- Apache 2.0 — permissive open source with patent grant.
5. Connectors
- MCP stdio —
aisentinel serve(Claude Code, Claude Desktop, Cursor, Cline, Continue). - Streamable-HTTP —
https://mcp.aisentinel.bizdnai.com/mcp(SaaS, OAuth via BizDNAi). - CLI —
aisentinelsubcommands (serve,validate-policy,policies,events,version). - Library — Go package
github.com/Kabzhanov/AISentinel/internal/policyfor embedding.
6. Policy Examples
See policies/default.yaml for the full default policy.
Match modes: tool_name, tool_name_regex, tool_args_regex, tool_args_contains. Multiple matchers AND-combine.
7. How it Improves AI Trust Index Score
AISentinel generates the observability data required for AI Trust Index assessments:
- Every tool call → auditable event with agent_id, session_id, decision, signals.
- Every policy decision → versioned, fingerprinted (policy_signature field).
- Every block → reason, risk_signals, ready for an ATI submission.
Run aisentinel_get_ati_snapshot to get a JSON blob ready to paste into
the AI Trust Index cabinet.
8. Licensing
AISentinel is available under two licensing options:
-
Apache License 2.0 (Open Source)
- Free to use, modify, and distribute under the terms of the Apache 2.0 license.
- Includes explicit patent grant from contributors.
-
Commercial License
- For companies that want to embed AISentinel in closed-source products without open-source compliance requirements.
- Contact: [email protected]
By contributing to this repository, you agree to license your contributions under Apache 2.0.
See LICENSE and COMMERCIAL_LICENSE.md.
9. Installation
Requirements: Go 1.22+
Verify:
10. Usage Examples
Run the MCP server
Validate a custom policy
Tail recent audit events
List built-in policies
Try a policy without blocking (shadow mode)
11. Event Schema
See docs/event-schema.md. One JSON object per line
in the JSONL log:
12. Contributing
See CONTRIBUTING.md. By contributing you agree to license your contribution under Apache 2.0.
13. Roadmap
- v1.0 (this release) — MCP stdio, 4 tools, 3 built-in policies, JSONL audit log.
- v1.1 —
aisentinel scan(MCP-config auditor), mobile connectors. - v1.2 — streamable-HTTP transport (SaaS mode), OAuth via BizDNAi.
- v2.0 — ATI-feed integration, IDE plugins (VSCode MCP Inspector).
14. License
Apache License 2.0. See LICENSE.
AISentinel is dual-licensed under Apache 2.0 and a commercial license. For commercial terms, contact [email protected].
By Kabzhanov / BizDNAi — creators of the AI Trust Index.
Source: README.md at commit 1efb019
Tools
0Version history
1- v1.0.6LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.