mcpField
D
Diogenes Agent Guardrails & Sandbox MCP

Diogenes Agent Guardrails & Sandbox MCP

远程服务
diogenes-micro-gateway.corinth.workers.dev安全12 天前更新

关于 Diogenes Agent Guardrails & Sandbox MCP

Diogenes Agent Guardrails & Sandbox MCP 提供一组专用工具,用于检查 Agent 操作并处理不可信输入。它面向希望在 Agent 工作流中加入安全检查的开发者,涵盖命令、SQL、Python、MCP、隐私和输出防护。

主要功能

  1. 01命令和提示词安全检查
  2. 02只读 SQL AST 校验
  3. 03Python 代码沙箱
  4. 04MCP 清单与架构审计
  5. 05PII 脱敏和输出清理
  6. 06循环、出口流量和事实性检查

适用场景

  1. 01Agent 执行前筛查命令
  2. 02审查第三方 MCP 服务
  3. 03供 LLM 使用前清理工具输出
  4. 04依据来源文本核查 Agent 回复

MCP 相关

MCP 服务通过 streamable HTTP 暴露 12 种专用 Agent 安全工具,也可通过 npx 以本地 stdio 方式运行。客户端可调用命令安全、代码、MCP 架构、工具输出及其他 Agent 风险检查。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://diogenes-micro-gateway.corinth.workers.dev/mcp/agent-guardrails
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

详细介绍

Diogenes Agent 防护措施与命令沙箱 MCP(diogenes-agent-guardrails-mcp)

Indexed on TensorBlock MCP Index Glama MCP Server M8ven Score Master Gateway

Diogenes Agent 防护措施与命令沙箱 MCP 是一个专注、零冗余的模型上下文协议(streamable-http)软件包,由 Diogenes Microservice Gateway 驱动。

无需将网关的所有 121 个端点都加载到大模型的上下文窗口中,安装此软件包即可仅启用安全所需的 12 个专用 agent-guardrails 工具:

12 个执行前和执行后的 AI Agent 安全工具:命令注入关卡、AST SQL 验证器、Python 沙箱、MCP 清单与 Rug Pull 审计器、采样防火墙、输出清理器、PII 脱敏器、循环中断器、A2A 卡片验证器、出口 SSRF 防护、事实准确性审计器。


⚡ 一键安装 Cursor 和 Claude Desktop

无需 API 密钥、用户账户或本地依赖项。零配置——直接粘贴到客户端配置中:

🖱️ Cursor IDE(.cursor/mcp.json)

将以下内容添加到项目根目录中的 .cursor/mcp.json,或添加到 Cursor 全局设置中:

{
  "mcpServers": {
    "diogenes-agent-guardrails": {
      "transport": "streamable-http",
      "url": "https://diogenes-micro-gateway.corinth.workers.dev/mcp/agent-guardrails"
    }
  }
}
🧠 Claude Desktop(claude_desktop_config.json)

将以下内容添加到 claude_desktop_config.json(Mac:~/Library/Application Support/Claude/claude_desktop_config.json | Windows:%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "diogenes-agent-guardrails": {
      "transport": "streamable-http",
      "url": "https://diogenes-micro-gateway.corinth.workers.dev/mcp/agent-guardrails"
    }
  }
}

更喜欢本地 stdio? 使用 npx 运行:

npx -y @stand-out-of-my-sun/diogenes-agent-guardrails-mcp

agent-guardrails 中包含的工具(12 个工具)

MCP 工具名称底层 REST 路由结算功能
verify_agent_command_safetyPOST /api/v1/agent/guardrail-verify100 sats (L402)评估不可信的 Agent 提示词、bash 命令和工具参数,以阻止提示词注入、破坏性 Shell 命令和私钥泄露。在 Agent 执行前筛查通用 Shell 命令或用户提示词时使用;若要在 AST 层面对 SQL 数据库查询进行静态验证,请改用 validate_sql_query_ast。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'payload'('action_type' 默认为 'bash_command'),支持 '?demo=true' 或 L402 (100 sats),无效时返回 HTTP 400。
validate_sql_query_astPOST /api/v1/agent/sql-guard75 sats (L402)对 SQL 语句执行静态 AST 语法树解析,以验证语句严格限定为只读 SELECT 子句,并拒绝修改操作、多语句查询或注释绕过。在数据库上执行 Agent 编写的 SQL 语句前,验证其严格只读时使用;若要筛查非 SQL 的 bash 命令或通用 Agent 提示词,请改用 verify_agent_command_safety。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'sql_statement'('dialect' 默认为 'postgres'),支持 '?demo=true' 或 L402 (75 sats),无效时返回 HTTP 400。
execute_python_sandboxPOST /api/v1/mpp/code-sandbox1500 sats (MPP)在受 AST 管控的 WebAssembly 沙箱中审核 Python 源代码,检查是否包含被禁止的系统调用(os、subprocess、socket、open、eval);该沙箱无法访问主机文件系统。安全执行大模型生成的 Python 代码片段时使用;若要在不执行代码的情况下检查 Shell 命令,请改用 verify_agent_command_safety。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'python_script'('timeout_profile' 默认为 'fast_1s'),支持 '?demo=true' 或 MPP (1500 sats),无效时返回 HTTP 400。
audit_mcp_server_manifestPOST /api/v1/agent/mcp-manifest-auditor150 sats (L402)扫描外部 MCP 服务的初始 tools/list 清单,以检测工具名称影射(read_file、bash)和描述中的隐藏提示词注入指令。在将新发现的第三方 MCP 服务挂载到 Agent 会话前进行审查时使用;若要比较先前固定的 MCP 基线与会话中实时收到的 tools/list 响应,请改用 detect_mcp_schema_rugpull。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'manifest_json'('audit_profile' 默认为 'strict'),支持 '?demo=true' 或 L402 (150 sats),无效时返回 HTTP 400。
detect_mcp_schema_rugpullPOST /api/v1/agent/mcp-rugpull-diff85 sats (L402)计算固定的 MCP tools/list 基线快照与服务实时响应之间的结构差异,以捕获会话期间的描述或架构篡改。验证已连接的 MCP 服务在会话期间未篡改其工具定义时使用;若要对单个 MCP 清单执行首次静态安全审计,请改用 audit_mcp_server_manifest。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'baseline_tools_json'('current_tools_json' 默认为 'standard'),支持 '?demo=true' 或 L402 (85 sats),无效时返回 HTTP 400。
validate_mcp_sampling_requestPOST /api/v1/agent/mcp-sampling-guard100 sats (L402)审核来自已连接服务的入站 MCP sampling/createMessage 回调,以阻止跨服务上下文窥探(includeContext='allServers')和令牌配额劫持。筛选已连接 MCP 服务向宿主大模型发出的采样请求时使用;若要清理标准同步 tools/call 响应返回的文本,请改用 sanitize_tool_output_stream。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'sampling_request_json'('max_tokens_ceiling' 默认为 '512'),支持 '?demo=true' 或 L402 (100 sats),无效时返回 HTTP 400。
sanitize_tool_output_streamPOST /api/v1/agent/tool-output-firewall75 sats (L402)清理不可信的外部工具或网页抓取输出,方法包括移除不可见的 Unicode Tag 字符(U+E0000)、中和 Markdown 跟踪图像信标,以及化解间接提示词覆盖。在将原始第三方工具输出或抓取的网页文本插入大模型上下文窗口前进行清理时使用;若要从待发送文本中删除个人身份信息(电子邮件、SSN、密钥),请改用 redact_sensitive_pii。只读边缘调用(32 KB,60 RPM):接受 'raw_tool_output'(使用枚举默认值),使用 '?demo=true' 或 L402 (75 sats);无效时返回 HTTP 400。
redact_sensitive_piiPOST /api/v1/scrub-pii150 sats (L402)在记录日志或对外传输前,从文本中删除电子邮件、电话号码、SSN、信用卡号、API 密钥和加密货币私钥。从提示词、日志或外发消息中移除个人数据或机密凭据时使用;若要中和入站工具响应中的间接提示词注入和不可见 Unicode,请改用 sanitize_tool_output_stream。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'text'('redaction_style' 默认为 'typed_token'),支持 '?demo=true' 或 L402 (150 sats),无效时返回 HTTP 400。
detect_agent_action_loopPOST /api/v1/agent/loop-circuit-breaker70 sats (L402)分析 Agent 最近的工具调用轨迹,以检测相同请求的重复重试、A/B 状态振荡和令牌消耗失控。监控多步骤 Agent 执行循环,以决定继续、停止还是升级处理时使用;若要在执行前检查单个命令载荷是否存在安全威胁,请改用 verify_agent_command_safety。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'action_trace_json'('sensitivity' 默认为 'strict_2_repeats'),支持 '?demo=true' 或 L402 (70 sats),无效时返回 HTTP 400。
verify_a2a_agent_cardPOST /api/v1/agent/a2a-card-verifier90 sats (L402)验证远程 Agent 的 A2A /.well-known/agent.json 发现卡,检查 JWS/DID 签名绑定、端点 HTTPS 强制要求和能力伪造。在通过 A2A 委派子任务或交换付款前对自主 Agent 对等方进行身份验证时使用;若要审核 MCP 工具服务的 tools/list 清单,而非对等 Agent 的 A2A 卡,请改用 audit_mcp_server_manifest。只读边缘调用(32 KB,60 RPM):接受 'agent_card_json'('trust_policy' 默认为 'require_https_and_did'),支持 '?demo=true' 或 L402 (90 sats),无效时返回 HTTP 400。
audit_outbound_egress_urlPOST /api/v1/agent/audit-egress-url65 sats (L402)静态验证防火墙,用于在 Agent 发起网络请求前,检查出站网络目标 URI 是否指向云元数据 IP 地址(169.254.169.254)或 RFC 1918 私有 IP 网段,或在查询字符串中泄露机密。在网络请求前验证用户或工具提供的 URI 目标时使用;若要审核本地 Shell 命令或通用提示词,请改用 verify_agent_command_safety。只读边缘调用(32 KB,60 RPM):接受 'destination_uri'('egress_policy' 默认为 'block_private_and_metadata'),支持 '?demo=true' 或 L402 (65 sats),无效时返回 HTTP 400。
audit_response_factualityPOST /api/v1/agent/hallucination-auditor150 sats (L402)将 Agent 草稿回复中的事实主张、数字和引文与检索到的源文段交叉比对,以便在发送前标记缺乏依据的幻觉。在将生成的答案返回给用户前,验证其是否 100% 有源证据支持时使用;若要清理入站工具输出中的提示词注入和不可见 Unicode,请改用 sanitize_tool_output_stream。无状态只读边缘调用(最大 32 KB,60 RPM):接受 'claim'('context' 默认为 'standard'),支持 '?demo=true' 或 L402 (150 sats),无效时返回 HTTP 400。

无需账户的免费演示模式:在上方任意 REST 端点后附加 ?demo=true,即可免费即时预览 HTTP 200 架构。


其他模块化 Diogenes MCP 软件包

仅安装与你的工作流相关的领域软件包:

软件包专属 MCP 端点分支仓库
1. EVE:Frontier Sui Move 套件(14 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/eve-frontierstand-out-of-my-sun/diogenes-eve-frontier-mcp
2. Agent 防护与沙箱(12 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/agent-guardrailsstand-out-of-my-sun/diogenes-agent-guardrails-mcp
3. Web3、DeFi 与 402 安全(15 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/web3-securitystand-out-of-my-sun/diogenes-web3-security-mcp
4. Gemini 套件与 AI Agent(15 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/gemini-suitestand-out-of-my-sun/diogenes-gemini-suite-mcp
5. 上下文、代码与求解器(15 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/context-code-solverstand-out-of-my-sun/diogenes-context-code-solver-mcp
6. 开发、数据与工作流实用工具(14 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/dev-utilitiesstand-out-of-my-sun/diogenes-dev-utilities-mcp
7. 网页提取、可读性与 Markdown 引擎(12 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/web-scraping-enginestand-out-of-my-sun/diogenes-web-scraping-engine-mcp
8. 神经搜索、可靠研究与深度智能(12 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/neural-search-enginestand-out-of-my-sun/diogenes-neural-search-engine-mcp
9. 数据库智能、SQL 引擎与架构防护(12 个工具)https://diogenes-micro-gateway.corinth.workers.dev/mcp/database-intelligencestand-out-of-my-sun/diogenes-database-intelligence-mcp
10. 完整主网关(全部 121 项服务)https://diogenes-micro-gateway.corinth.workers.dev/mcpstand-out-of-my-sun/diogenes-micro-gateway

TensorBlock 和 MCP Index 配置文件元数据

字段值
类别Security
传输方式streamable-http
端点https://diogenes-micro-gateway.corinth.workers.dev/mcp/agent-guardrails
清单https://diogenes-micro-gateway.corinth.workers.dev/.well-known/mcp/agent-guardrails.json
健康检查https://diogenes-micro-gateway.corinth.workers.dev/api/v1/health
身份验证none(100% 无需账户的免费层,支持 MCP 发现和 ?demo=true 预览;生产调用可选用 6 种灵活的加密货币支付渠道:L402、x402、Base MPP、Garlicoin 0-Conf、BSC WGRLC 或预付 GRLC 会话 API 密钥)
安装可信度high(无需安装的远程 Streamable HTTP 端点 + 根目录下的 package.json、smithery.yaml、server.json、glama.json 和 mcp.json)
许可证MIT
验证状态verified(@stand-out-of-my-sun 已通过 https://diogenes-micro-gateway.corinth.workers.dev/.well-known/tensorblock.json 和 https://diogenes-micro-gateway.corinth.workers.dev/.well-known/mcp/agent-guardrails.json 验证)
维护者@stand-out-of-my-sun
文档https://diogenes-micro-gateway.corinth.workers.dev/llms.txt
支持https://github.com/stand-out-of-my-sun/diogenes-agent-guardrails-mcp/issues

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。