AgentGuard — security checks for AI agents
io.github.shuaicongxiaomai由 GitHub 账号 shuaicongxiaomai 发布v0.1.2更新于 Oct 24, 2026
Secret, CVE and dependency-vulnerability scanning for AI agents (free, OSV.dev).
概览
让助手扫描文本和代码中的硬编码密钥,并检查软件包或依赖文件是否存在已知 CVE。
- 可以做什么
- AgentGuard 提供三个工具。scan_secrets 在文本、代码或 diff 中标记硬编码密钥,例如 API 密钥、令牌和私钥,完全在本地运行且只返回脱敏预览。check_cve 报告某个具体软件包版本是否存在已知 CVE,并给出严重程度和修复版本。scan_dependencies 读取 go.mod、package.json 或 requirements.txt,列出存在漏洞的固定依赖,每次调用最多 200 个。
- 适用场景
- 适合在助手编写、审查或提交代码时,在内容被记录或发送前做一次快速的密钥检查;也适合在不离开助手的情况下了解某个固定依赖版本是否存在已知漏洞。
- 运行要求
- 以本地 stdio 进程在用户机器上运行,仅支持桌面端。可通过 Docker 镜像、Go 安装或预编译二进制文件安装。未声明需要 API 密钥、账户或环境变量。check_cve 和 scan_dependencies 需要访问公共 OSV.dev API 的网络连接;scan_secrets 完全离线运行。
安装
在 SourceWeft 中
- 打开 控制台中的 AgentGuard — security checks for AI agents,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
AgentGuard — security checks for AI agents (MCP server)
A free, open-source, single-binary MCP server that gives any AI agent (Claude Desktop, Cursor, Claude Code, …) security checks in the loop:
No API key, no account, no telemetry. Everything runs locally except CVE lookups, which hit the free public OSV.dev API.
Install
Pick whichever fits your setup. All three give the same stdio MCP server.
Docker (no Go toolchain needed)
MCP client config (mcpServers block in Claude Desktop / Cursor / Claude Code):
Go install
Prebuilt binary
Download the archive for your OS/arch from the Releases
page, extract it, and point the config command at the absolute path to the binary.
Build from source
Three ways to run it
1. demo — see it work, zero config:
Runs all three tools on sample inputs and prints the results.
2. stdio (default) — local use; the MCP client launches the binary. No port; the client manages its lifecycle. Use any of the configs above, then ask your agent: "scan this for secrets", "is lodash 4.17.20 vulnerable?", "check my package.json for vulnerable deps."
3. serve — Streamable HTTP service on a port (for a hosted/remote server):
Use stdio for local use; use serve when you want a hosted server users connect to by URL
without installing anything.
Notes
scan_secretsruns locally and never returns raw secret values — only masked previews.scan_dependenciescaps at 200 deps per call and queries OSV concurrently.check_cve/scan_dependenciesneed network access to OSV.dev;scan_secretsis fully offline.
License
MIT.
来源:README.md,提交 2fe4239
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分