
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 分