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 分