Diogenes Agent Guardrails & Sandbox MCP

v1.1.0
io.github.stand-out-of-my-sun/diogenes-agent-guardrails-mcp Checked 4 days ago Published 12 days ago

Autonomous agent guardrails, bash sandboxing, MCP rugpull diffing & prompt firewalls.

Instead of loading all 122 gateway endpoints into your LLM's context window, installing this package exposes only the 12 specialized agent-guardrails tools needed for Security: 12 pre-execution and post-execution AI agent security tools: command injection gate, AST SQL validator, Python sandbox, MCP manifest & rug-pull auditors, sampling firewall, output scrubber, PII redactor, loop breaker, A2A card verifier, egress SSRF guard, and factuality auditor. No API keys, user accounts, or local dependencies required. Zero setup — install via 1-line script or paste directly into your client config:

Summary extracted from the README.

Diogenes Agent Guardrails & Command Sandbox MCP (diogenes-agent-guardrails-mcp)

Indexed on TensorBlock MCP Index Glama MCP Server M8ven Score Master Gateway License: MIT

Diogenes Agent Guardrails & Command Sandbox MCP is a focused, zero-bloat Model Context Protocol (streamable-http) package powered by the Diogenes Microservice Gateway.

Instead of loading all 122 gateway endpoints into your LLM's context window, installing this package exposes only the 12 specialized agent-guardrails tools needed for Security:

12 pre-execution and post-execution AI agent security tools: command injection gate, AST SQL validator, Python sandbox, MCP manifest & rug-pull auditors, sampling firewall, output scrubber, PII redactor, loop breaker, A2A card verifier, egress SSRF guard, and factuality auditor.


⚡ 1-Click Install for Cursor, Claude Desktop, Zed & Windsurf

No API keys, user accounts, or local dependencies required. Zero setup — install via 1-line script or paste directly into your client config:

🚀 1-Line Terminal Auto-Installer

# Auto-configures Cursor, Claude Desktop, Zed, and Windsurf
curl -sSL "https://diogenesgateway.com/install.sh" | bash

# Or with your authenticated prepaid session key:
curl -sSL "https://diogenesgateway.com/install.sh?key=dg_sec_..." | bash

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

Add to .cursor/mcp.json in your project root or global Cursor settings:

{
  "mcpServers": {
    "diogenes-agent-guardrails": {
      "transport": "streamable-http",
      "url": "https://diogenesgateway.com/mcp/agent-guardrails"
    }
  }
}

🧠 Claude Desktop (claude_desktop_config.json)

Add to 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://diogenesgateway.com/mcp/agent-guardrails"
    }
  }
}

Prefer local stdio? Run via npx:

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

💳 Instant Stripe Card Checkout & Prepaid Keys (<0.1ms Fast Path)

Need high-throughput execution without per-call on-chain latency or wallet confirmations?

  • Instant Fiat Checkout: Top up via Card, Apple Pay, or Google Pay ($5 Starter, $20 Builder, $100 Fleet with 10%–25% bonus credits) at https://diogenesgateway.com/#prepay-checkout-widget.
  • Session Keys (dg_sec_...): Pass Authorization: Bearer dg_sec_... for <0.1ms Cloudflare KV resolution, rate-limit exemption, and automatic sub-cent deduction.
  • Multi-Currency Isolated Balances: Strict single-asset accounting across USD and 6 crypto rails. Zero cross-currency conversions.
  • 15% Referral Credit Bonus: Earn a 15% Referral Credit Bonus on referred users and agent swarms via dg_ref_....

Included Tools in agent-guardrails (12 Tools)

MCP Tool Name Underlying REST Route Settlement Capability
verify_agent_command_safety POST /api/v1/agent/guardrail-verify Free Developer Tier (0 sats) Evaluates untrusted agent prompts, bash commands, and tool arguments to block prompt injection, destructive shell commands, and private-key exfiltration. Use when screening a general shell command or user prompt before agent execution; for statically validating SQL database queries at the AST level, use validate_sql_query_ast instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'payload' ('action_type' defaults to 'bash_command'), supports '?demo=true' or L402 (100 sats), and returns HTTP 400 if invalid.
validate_sql_query_ast POST /api/v1/agent/sql-guard Free Developer Tier (0 sats) Performs static AST syntax tree parsing on SQL statements to verify strictly read-only SELECT clauses and reject mutations, stacked queries, or comment bypasses. Use when verifying that an agent-authored SQL statement is strictly read-only before running it on a database; for screening non-SQL bash commands or general agent prompts, use verify_agent_command_safety instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'sql_statement' ('dialect' defaults to 'postgres'), supports '?demo=true' or L402 (75 sats), and returns HTTP 400 if invalid.
execute_python_sandbox POST /api/v1/mpp/code-sandbox 1500 sats (MPP) Audits Python source code for forbidden syscalls (os, subprocess, socket, open, eval) inside an AST-governed WebAssembly sandbox with no host filesystem access. Use when executing LLM-generated Python snippets safely; for checking shell commands without executing code, use verify_agent_command_safety instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'python_script' ('timeout_profile' defaults to 'fast_1s'), supports '?demo=true' or MPP (1500 sats), and returns HTTP 400 if invalid.
audit_mcp_server_manifest POST /api/v1/agent/mcp-manifest-auditor 150 sats (L402) Scans an external MCP server's initial tools/list manifest to detect tool-name shadowing (read_file, bash) and hidden prompt-injection directives in descriptions. Use when vetting a newly discovered third-party MCP server before mounting it into an agent session; for comparing a previously pinned MCP baseline against a live mid-session tools/list response, use detect_mcp_schema_rugpull instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'manifest_json' ('audit_profile' defaults to 'strict'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid.
detect_mcp_schema_rugpull POST /api/v1/agent/mcp-rugpull-diff 85 sats (L402) Computes structural diffs between a pinned baseline MCP tools/list snapshot and a live server response to catch mid-session description or schema tampering. Use when verifying that a connected MCP server has not mutated its tool definitions mid-session; for performing a first-time static security audit on a single MCP manifest, use audit_mcp_server_manifest instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'baseline_tools_json' ('current_tools_json' defaults to 'standard'), supports '?demo=true' or L402 (85 sats), and returns HTTP 400 if invalid.
validate_mcp_sampling_request POST /api/v1/agent/mcp-sampling-guard 100 sats (L402) Audits inbound MCP sampling/createMessage callbacks from connected servers to block cross-server context snooping (includeContext='allServers') and token quota hijacking. Use when filtering a connected MCP server's request to sample the host LLM; for scrubbing text returned from a standard synchronous tools/call response, use sanitize_tool_output_stream instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'sampling_request_json' ('max_tokens_ceiling' defaults to '512'), supports '?demo=true' or L402 (100 sats), and returns HTTP 400 if invalid.
sanitize_tool_output_stream POST /api/v1/agent/tool-output-firewall 75 sats (L402) Sanitizes untrusted external tool or web-scrape outputs by stripping invisible Unicode Tag characters (U+E0000), neutralizing Markdown tracking image beacons, and defusing indirect prompt overrides. Use when cleaning raw third-party tool outputs or scraped web text before inserting it into the LLM context window; for redacting personal identifiable information (emails, SSNs, keys) from outbound text, use redact_sensitive_pii instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_tool_output' (with enum defaults), uses '?demo=true' or L402 (75 sats); HTTP 400 if invalid.
redact_sensitive_pii POST /api/v1/scrub-pii Free Developer Tier (0 sats) Redacts emails, phone numbers, SSNs, credit cards, API keys, and crypto private keys from text before logging or external transmission. Use when stripping personal data or secret credentials from prompts, logs, or outbound messages; for neutralizing indirect prompt injections and invisible Unicode in inbound tool responses, use sanitize_tool_output_stream instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('redaction_style' defaults to 'typed_token'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid.
detect_agent_action_loop POST /api/v1/agent/loop-circuit-breaker 70 sats (L402) Analyzes an agent's recent tool-call trace to detect identical retry spins, A/B state oscillation, and runaway token burn. Use when monitoring multi-step agent execution loops to decide whether to continue or halt and escalate; for inspecting a single command payload for security threats before execution, use verify_agent_command_safety instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'action_trace_json' ('sensitivity' defaults to 'strict_2_repeats'), supports '?demo=true' or L402 (70 sats), and returns HTTP 400 if invalid.
verify_a2a_agent_card POST /api/v1/agent/a2a-card-verifier 90 sats (L402) Verifies a remote agent's A2A /.well-known/agent.json discovery card, checking JWS/DID signature binding, endpoint HTTPS enforcement, and capability spoofing. Use when authenticating a peer autonomous agent before delegating subtasks or exchanging payments over A2A; for auditing an MCP tool server's tools/list manifest rather than a peer agent's A2A card, use audit_mcp_server_manifest instead. Read-only edge call (32 KB, 60 RPM): accepts 'agent_card_json' ('trust_policy' defaults to 'require_https_and_did'), supports '?demo=true' or L402 (90 sats), and returns HTTP 400 if invalid.
audit_outbound_egress_url POST /api/v1/agent/audit-egress-url 65 sats (L402) Static validation firewall for outbound network destination URIs against cloud metadata IP addresses (169.254.169.254), RFC 1918 private IP blocks, and query-string secret exfiltration before agent dispatch. Use when validating a user-supplied or tool-supplied URI destination before network dispatch; for auditing local shell commands or general prompts, use verify_agent_command_safety instead. Read-only edge call (32 KB, 60 RPM): accepts 'destination_uri' ('egress_policy' defaults to 'block_private_and_metadata'), supports '?demo=true' or L402 (65 sats), and returns HTTP 400 if invalid.
audit_response_factuality POST /api/v1/agent/hallucination-auditor 150 sats (L402) Cross-references factual claims, numbers, and citations in a draft agent response against retrieved source passages to flag unsupported hallucinations before delivery. Use when verifying that a generated answer is 100% grounded in source evidence before returning it to the user; for scrubbing inbound tool outputs for prompt-injection and invisible Unicode, use sanitize_tool_output_stream instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'claim' ('context' defaults to 'standard'), supports '?demo=true' or L402 (150 sats), and returns HTTP 400 if invalid.

Free Account-Less Demo Mode: Append ?demo=true to any REST endpoint above for an instant HTTP 200 schema preview at zero cost.


🚀 Upgrade to Frontier AI Models & Autonomous Agent Pipelines

Looking for multi-model reasoning or live web retrieval? Pair agent-guardrails with our paid Gemini Suite & Frontier Reasoning packages (51 models including Gemini 4 Argon, Gemini 3.1 Pro, DeepSeek R1, Qwen 2.5 Coder, Antigravity Agent, Deep Research Pro, and Web Scraping) starting at only 10 sats / 1 GRLC / $0.01 with account-less pay-per-call micropayments: 👉 Explore Full Gateway & Frontier AI Suite


Other Modular Diogenes MCP Packages

Install only the domain packages relevant to your workflow:

Package Scoped MCP Endpoint Spoke Repository
1. EVE: Frontier Sui Move Suite (14 Tools) https://diogenesgateway.com/mcp/eve-frontier stand-out-of-my-sun/diogenes-eve-frontier-mcp
2. Agent Guardrails & Sandbox (12 Tools) https://diogenesgateway.com/mcp/agent-guardrails stand-out-of-my-sun/diogenes-agent-guardrails-mcp
3. Web3, DeFi & 402 Security (15 Tools) https://diogenesgateway.com/mcp/web3-security stand-out-of-my-sun/diogenes-web3-security-mcp
4. Gemini Suite & AI Agents (15 Tools) https://diogenesgateway.com/mcp/gemini-suite stand-out-of-my-sun/diogenes-gemini-suite-mcp
5. Context, Code & Solvers (15 Tools) https://diogenesgateway.com/mcp/context-code-solver stand-out-of-my-sun/diogenes-context-code-solver-mcp
6. Dev, Data & Workflow Utilities (14 Tools) https://diogenesgateway.com/mcp/dev-utilities stand-out-of-my-sun/diogenes-dev-utilities-mcp
7. Web Extraction, Readability & Markdown Engine (12 Tools) https://diogenesgateway.com/mcp/web-scraping-engine stand-out-of-my-sun/diogenes-web-scraping-engine-mcp
8. Neural Search, Grounded Research & Deep Intelligence (12 Tools) https://diogenesgateway.com/mcp/neural-search-engine stand-out-of-my-sun/diogenes-neural-search-engine-mcp
9. Database Intelligence, SQL Engine & Schema Guard (12 Tools) https://diogenesgateway.com/mcp/database-intelligence stand-out-of-my-sun/diogenes-database-intelligence-mcp
10. Full Master Gateway (All 122 Services) https://diogenesgateway.com/mcp stand-out-of-my-sun/diogenes-micro-gateway

TensorBlock & MCP Index Profile Metadata

Field Value
Category Security
Transport streamable-http
Endpoint https://diogenesgateway.com/mcp/agent-guardrails
Manifest https://diogenesgateway.com/.well-known/mcp/agent-guardrails.json
Health Check https://diogenesgateway.com/api/v1/health
Auth none (100% account-less free tier, MCP discovery & ?demo=true previews; optional Stripe Card checkout or 6 crypto payment rails for production calls: dg_sec_... prepaid keys, L402, x402, Base MPP, Garlicoin 0-Conf, BSC WGRLC, XRPL XRP)
Install Confidence high (Zero-install remote Streamable HTTP endpoint + root package.json, smithery.yaml, server.json, glama.json, and mcp.json)
License MIT
Verification verified (@stand-out-of-my-sun verified via https://diogenesgateway.com/.well-known/tensorblock.json & https://diogenesgateway.com/.well-known/mcp/agent-guardrails.json)
Maintainer @stand-out-of-my-sun
Docs https://diogenesgateway.com/llms.txt
Support https://github.com/stand-out-of-my-sun/diogenes-agent-guardrails-mcp/issues