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.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

本地 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 端口运行。
安装前请注意
它只提供建议,实际安装或合并仍由助手执行,因此需另行添加规则,让其在 SUSPICIOUS、REVIEW 或 DANGER 结论时停止。结论基于启发式判断,可能漏掉真实风险或误报正常包。锁文件、清单和工作流内容会被发送给该工具分析。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agent Guard Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

agent-guard-mcp

[npm] [License: MIT]

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.

When you…Call
npm install foo / agent suggests a new depcheck_package
Review an LLM-generated lockfileverify_lockfile
Install a Cursor skill or MCP pluginscore_manifest
Merge a PR touching .github/workflows/*check_workflow

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):

ToolUse before…Returns
check_packageadding a single npm/PyPI dependencyOK / SUSPICIOUS / DANGER + typosquat/slop flags
verify_lockfilerunning npm/pip/yarn installscans every direct + transitive dep in a lockfile
score_manifestinstalling a Cursor/Claude skill or MCP/Smithery pluginpoison-signature + scope-overreach + drift score 0–100
check_workflowmerging a PR that touches CIflags mutable action pins, compromised actions, curl|bash, pwn-requests, secret exposure

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)

json
{  "mcpServers": {    "agent-guard": { "command": "npx", "args": ["-y", "@liminallablibs/[email protected]"] }  }}

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

bash
npx -y @liminallablibs/[email protected]   # MCP clients spawn this via npx# HTTP mirror:npm run http && curl "http://localhost:8402/check?name=reactt&ecosystem=npm"# → DANGER — typosquat of "react"

Or run directly:

bash
npm installnode src/mcp-server.mjs        # stdio MCP servernpm run http                   # optional HTTP mirror on :8402

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.txt
  • POST /score-manifest {manifest_type, manifest_content}
  • POST /check-workflow {workflow_content}

License

MIT.

来源:README.md,提交 67300e0

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分