
Agent Guard Mcp
io.github.liminalpepe由 GitHub 账号 liminalpepe 发布v0.2.1更新于 Oct 24, 2026
Verify-before-act safety checks for AI agents: packages, lockfiles, manifests, CI workflows.
概览
本地 MCP 服务器,让 AI 助手在安装前对 npm/PyPI 包、锁文件、技能清单和 CI 工作流做安全检查。
- 可以做什么
- 在添加单个 npm 或 PyPI 依赖前检查该包,返回 OK、SUSPICIOUS 或 DANGER,并标记仿冒包和低质包。在运行安装前扫描锁文件(npm、yarn、pnpm、poetry、requirements)中的直接和传递依赖。对 Cursor/Claude 技能或 MCP 插件清单按投毒特征、权限越界和漂移给出 0–100 评分。审查 GitHub Actions 工作流中的可变 action 版本、被入侵的 action、curl|bash、pwn-request 和密钥泄露。
- 适用场景
- 适用于助手即将安装依赖、依据 LLM 生成的锁文件执行安装、添加第三方技能或插件,或合并涉及 CI 工作流的 PR 时,使其能在可疑结论下先停下并展示发现。
- 运行要求
- 作为本地 stdio 进程在用户机器上运行,通过 npx 从 npm 包启动,需要 Node.js。未声明 API 密钥、配置、环境变量或请求头。可选的 HTTP 镜像在本地 8402 端口运行。
安装
在 SourceWeft 中
- 打开 控制台中的 Agent Guard Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
agent-guard-mcp
One line: Verify-before-act safety for AI agents — check packages, lockfiles, skill manifests, and CI workflows before install or merge. Zero API keys. Zero config.
Scores Cursor/Claude skill manifests + GitHub Actions workflows — not just npm dependencies.
Call these before installing a dependency, merging a CI change, or installing a third-party skill/plugin — so an agent refuses hallucinated packages, typosquats, poisoned manifests, and compromised CI actions.
Exposes four MCP tools (also available as a plain HTTP service):
Why
AI agents routinely hallucinate package names (slopsquatting), trust LLM-generated lockfiles, install unvetted skill packs, and pin CI actions to mutable tags. Each is a live supply-chain vector. This server gives an agent a cheap "is this safe?" call before it acts.
Install (MCP client)
Agent rule (paste into Cursor Rules / CLAUDE.md)
Before installing any npm/PyPI package, running install from a lockfile, installing a third-party skill/MCP plugin, or merging CI workflow changes, call the agent-guard MCP tools (
check_package,verify_lockfile,score_manifest,check_workflow). If verdict is SUSPICIOUS, REVIEW, or BLOCK/DANGER, stop and show findings to the user — do not proceed.
Quick demo
Or run directly:
HTTP endpoints (mirror of the MCP tools)
GET /check?name=<pkg>&ecosystem=<npm|pypi>POST /check-lockfile {lockfile_content, format}— format ∈ package-lock.json | yarn.lock | pnpm-lock.yaml | poetry.lock | requirements.txtPOST /score-manifest {manifest_type, manifest_content}POST /check-workflow {workflow_content}
License
MIT.
来源:README.md,提交 67300e0
工具
0版本历史
1- v0.2.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分