Agentguard

io.github.MukundaKatta由 GitHub 帳號 MukundaKatta 發布v0.1.0更新於 Oct 24, 2026

Network-egress firewall for agent tools: check URLs against a declarative policy.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

讓助理在發出請求前,依宣告式網路出口政策檢查 URL 是否被允許。

可以做什麼
提供三個由 agentguard 決策引擎支援的工具:check_url 依政策評估單一 URL,回傳 allowed、reason 與 detail,且不會實際發出請求;check_urls_batch 批次評估多個 URL,回傳逐筆判定與彙總計數;validate_policy 指出政策中的常見錯誤,例如空的允許清單、過寬的星號萬用字元,以及格式錯誤的主機模式。
適用情境
適合在檢視或草擬代理工具出口允許清單時使用,也適合讓助理判斷一批 URL 中哪些會被政策阻擋。它是檢查輔助工具,不是強制執行層。
執行需求
透過 stdio 在本機執行,通常以 npx 啟動 npm 套件 @mukundakatta/agentguard-mcp,因此需要 Node.js 以及下載該套件的網路存取。未宣告任何帳號、API 金鑰、環境變數或標頭。僅支援桌面 MCP 用戶端。
安裝前請注意
此伺服器只檢查 URL,不會包裝 fetch 或阻擋真實請求,因此不提供執行時強制。傳給工具的政策與 URL 清單由本機行程處理。若需真正強制執行,README 建議在 Node 行程中直接使用底層函式庫。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agentguard,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

agentguard-mcp

MCP server for @mukundakatta/agentguard. Lets Claude Desktop, Cursor, Cline, Windsurf, Zed, or any other MCP client check whether a URL is allowed under a network-egress policy before any fetch.

bash
npx -y @mukundakatta/agentguard-mcp

Three tools:

  • check_url — single URL check: returns { allowed, reason } without making any actual request.
  • check_urls_batch — batch check with per-URL decisions plus a summary.
  • validate_policy — sanity-check a policy spec for empty allowlists, overly broad * wildcards, and malformed host patterns.

Add to your client

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "agentguard": {      "command": "npx",      "args": ["-y", "@mukundakatta/agentguard-mcp"]    }  }}

Same shape for Cursor (~/.cursor/mcp.json), Cline, Windsurf, Zed.

Tool examples

check_url:

json
{  "url": "https://api.openai.com/v1/chat",  "policy": { "allow": ["api.openai.com", "*.anthropic.com"] }}

Returns:

json
{ "allowed": true, "reason": "matched_allowlist", "detail": null }

check_urls_batch:

json
{  "urls": [    "https://api.openai.com/v1/chat",    "https://evil.example.com/leak"  ],  "policy": { "allow": ["api.openai.com"] }}

Returns:

json
{  "results": [    { "url": "https://api.openai.com/v1/chat", "allowed": true, ... },    { "url": "https://evil.example.com/leak", "allowed": false, "reason": "not_in_allowlist", ... }  ],  "summary": { "total": 2, "allowed_count": 1, "denied_count": 1 }}

validate_policy:

json
{ "policy": { "allow": ["*", "https://api.example.com", "api.example.com/v1"] } }

Returns issues for the * wildcard, the scheme prefix, and the path suffix — common mistakes when first writing a policy.

Why a separate MCP server

@mukundakatta/agentguard is a zero-dependency JavaScript library. This MCP server makes its decision engine accessible from any MCP-aware AI assistant: ask Claude "does my agent's tool list pass this firewall?" or "which of these 50 URLs would my policy block?" and the assistant calls these tools directly.

Note: this MCP server only checks URLs — it does not actually wrap fetch or block real requests. For runtime enforcement, use @mukundakatta/agentguard directly inside your Node process.

Sibling MCP servers

Part of the agent-stack series:

License

MIT

來源:README.md,提交 c9f7741

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分