Skip to main content
Glama
Diogenes Agent Guardrails & Command Sandbox MCP

Diogenes Agent Guardrails & Command Sandbox MCP

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

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

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 121 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

No API keys, user accounts, or local dependencies required. Zero setup — paste directly into your client config:

🖱️ 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

Related MCP server: aletheia-mcp

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 (45 models including Gemini 2.5 Pro, 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 121 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 6 flexible crypto payment rails for production calls: L402, x402, Base MPP, Garlicoin 0-Conf, BSC WGRLC, or Prepaid GRLC session API keys)

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

Available Tools

8 tools
agent_loop_circuit_breakerCInspect

Analyzes recent tool-call traces to trip a circuit breaker on cyclic retries, A/B deadlocks, and runaway token burn.

Inputs: recent_action_trace (required).

code_sandboxBInspect

Executes untrusted Python snippets inside an ephemeral sandbox with static AST safety auditing.

Inputs: code (required).

guardrail_verifyBInspect

Pre-execution security gate to detect prompt injection, destructive bash commands, wallet drain, and key exfiltration.

Inputs: payload (required), action_type.

mcp_rugpull_diffCInspect

Detects mid-session MCP tools/list rug-pulls, shadow parameter injections, and coercive description mutations.

Inputs: current_tools_list (required), baseline_tools_list (required).

mcp_sampling_guardBInspect

Audits inbound MCP sampling/createMessage requests to block systemPrompt hijacking and recursive quota drain.

Inputs: sampling_request (required).

scrub_pii_firewallAInspect

Redacts emails, SSNs, phone numbers, API keys, and wallet seed phrases before external LLM calls.

Inputs: text (required).

sql_injection_ast_guardAInspect

Statically validates LLM-generated SQL queries via AST inspection to block SQLi tautologies, UNION leaks, and DROP/TRUNCATE.

Inputs: sql_query (required).

tool_output_firewallAInspect

Sanitizes untrusted tool outputs, stripping invisible Unicode tags (U+E0000), markdown exfiltration beacons, and indirect prompt injections.

Inputs: raw_tool_output (required), source_tool_name.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each tool targets a fairly distinct security plane (loop detection, sandbox exec, pre-exec gate, MCP protocol, PII, SQL, output sanitization). However, guardrail_verify (prompt injection/destructive commands) overlaps conceptually with tool_output_firewall (indirect prompt injection) and sql_injection_ast_guard, which could cause misselection when an agent faces a generic 'unsafe input' scenario.

    Naming Consistency3/5

    All names use consistent snake_case, which is readable, but the semantic patterns are mixed: some are noun-first labels (code_sandbox, scrub_pii_firewall, tool_output_firewall), some noun_verb (guardrail_verify), and others compound domain phrases (agent_loop_circuit_breaker). There is no predictable verb_noun template throughout.

    Tool Count4/5

    8 tools is well within a reasonable range for a multi-surface guardrails server, and each tool addresses a different concern. A minor argument exists to merge the input/output firewall variants, but the count is appropriate.

    Completeness4/5

    Coverage spans loop detection, sandboxing, input gating, MCP protocol attacks, PII redaction, SQL validation, and output sanitization, which is broad for the domain. Gaps remain: the sandbox only handles Python (no shell/JS), and there is no policy/config or audit-log management surface.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables deterministic zero-trust security for AI agents, providing prompt injection protection, PII scrubbing, and policy enforcement before agentic actions reach production systems.
      2
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables sub-millisecond pre-execution safety filtering for AI agent tool calls, blocking destructive shell commands, dangerous SQL mutations, credential access, SSRF, and scope-creep or prompt-injection patterns before they execute, with optional fail-closed transparent proxy wrapping for any MCP server.
      6
      63 npm
      12
      Apache 2.0
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables autonomous agents to run shell and subprocess commands through a guardrail that blocks destructive system mutations, path traversals, and reverse shells. It also adds prompt-injection detection, spend circuit breakers, loop detection, and privacy sanitization so agent execution stays within safe, budgeted bounds.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables secure MCP agent operations by enforcing fail-closed policies, blocking dangerous tool calls, scanning outputs for prompt injection, and recording every action in a tamper-evident audit log.
      2
      MIT