Architecture
https://gateway.devctrl.ai/mcp. You manage your projects, tools, identities, tasks, and policies in the Devctrl Console.
Request flow
When an agent makes a tool call, here’s what happens:Authenticate
The gateway verifies the bearer token against the identity’s credential. If a task token is present in the
X-Task-Token header, it loads the task session and its context.Rate limit check
The request is checked against rate limits at the session, project, and global levels. If any limit is exceeded, the request is rejected with a
429 status.Evaluate policies
The policy engine runs your CEL expressions against the request context:Deny rules are checked first. If any deny rule matches, the request is blocked. Then allow rules are checked — all must pass. If no active policy release exists, the project’s default action (allow or deny) applies.
Proxy to upstream
For allowed requests, the gateway forwards the tool call to the upstream MCP server and returns the response to the agent.
Key components
MCP Gateway
The managed service that routes MCP requests between agents and tool servers.
Policy Engine
Evaluates CEL expressions against every tool call to enforce allow/deny decisions.
Console
The web interface where you manage projects, identities, tasks, tools, and policies.
Audit Log
Complete record of every agent action — what was requested, what was decided, and why.