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 分