
Agent Guardrail MCP Server
io.github.JarvisOnM4由 GitHub 账号 JarvisOnM4 发布v0.1.2更新于 Oct 24, 2026
Action-level governance for AI agents -- control what they DO, not what they SAY
概览
一个本地 Python 护栏,让助手按策略规则评估智能体动作,返回允许、拒绝或需审批的决定并记录日志。
- 可以做什么
- 按允许列表、拒绝列表、通配符模式、消费上限和风险阈值评估智能体拟执行的动作,返回允许、拒绝或需审批的决定,并写入 SQLite 飞行记录器。注册智能体并套用严格、适中或宽松的策略模板。管理紧急停止开关,并将高风险动作转交人工审批。查看已记录动作、待审批项和统计信息,并回放会话。可选运行本地代理 API,使用按智能体分配的密钥和预付评估额度。
- 适用场景
- 当你运行具备 shell、文件、网络或消费权限的自主智能体,并希望在每次工具调用前做动作级检查,而不只是过滤模型输出时适用。适合 LangChain、CrewAI 或自建智能体,需要消费上限、紧急停止和审计记录的场景。
- 运行要求
- 以 pip 安装的 Python 包形式在本地运行;README 称仅依赖 Python 标准库和 SQLite。可选的代理模式需要 proxy 附加组件和管理密钥。可选计费需要 Blockonomics API 密钥和 webhook 密钥环境变量。清单未声明任何凭据。
安装
在 SourceWeft 中
- 打开 控制台中的 Agent Guardrail MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Agent Guardrail
Action-level governance for AI agents — control what they DO, not what they SAY.
[PyPI] [License: MIT] [Python 3.10+]
The Problem
AI agents are getting tool access. They can run shell commands, make API calls, read files, spend money. But most "guardrails" only filter what agents say — not what they do.
Real incidents:
- AutoGPT autonomously spent $10K+ on API calls in a single session
- ChaosGPT attempted to access military systems and recruit other AI agents
- Air Canada chatbot invented a refund policy that cost the airline $800+
You need action-level control. Not output filtering.
What Agent Guardrail Does
- Policy Engine — allowlists, denylists, glob patterns for tools and targets
- Spend Caps — daily and total USD limits per agent
- Kill Switch — instantly deny all actions for a runaway agent
- Flight Recorder — every action logged with full replay capability
- Approval Gates — route risky actions to human review
- Risk Scoring — automatic risk assessment per action type
- 3 Templates — restrictive, moderate, permissive (apply in one command)
- Pay-per-eval Billing — free tier + BTC credit packs via Blockonomics
Zero dependencies. Python stdlib only. SQLite for storage.
30-Second Quickstart
Python API
Framework Integrations
LangChain Callback
CrewAI Task Guardrail
Universal Decorator
Hosted API (For Agents)
The library is for humans. The API is for agents.
An orchestrator running 5 sub-agents doesn't pip install — it calls an endpoint.
Full API docs at http://localhost:8300/docs (Swagger UI).
Billing & Pricing
Free tier included. Pay with Bitcoin when you need more.
Credits are prepaid and never expire. Admin-authenticated requests bypass billing entirely.
How it works:
When free tier is exhausted and no credits remain, /v1/evaluate returns 402 Payment Required with a link to available packs.
Self-hosted billing: Set BLOCKONOMICS_API_KEY and BLOCKONOMICS_WEBHOOK_SECRET environment variables. Without these, billing is disabled and all evaluations proceed without metering (backward compatible).
Policy Rules Reference
Patterns support glob matching (*, ?, [abc]).
Decision Flow
Architecture
Comparison
CLI Reference
Configuration
License
MIT
来源:README.md,提交 9f74ba7
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分