https://gateway.devctrl.ai/mcp
What it does
On every request, the gateway handles:- Authentication — verifies the agent’s bearer token against identity credentials
- Rate limiting — enforces request limits at session, project, and global levels
- Policy enforcement — evaluates your CEL rules to allow or deny the tool call
- Proxying — forwards allowed requests to the correct upstream MCP server
- Audit logging — records every decision with full context
Endpoints
| Method | Path | Description |
|---|---|---|
* | /mcp | MCP StreamableHTTP endpoint — handles tools/list and tools/call |
POST | /v1/tasks/sessions | Create a new task session |
GET | /v1/tasks/sessions/current | Get the current task session |
DELETE | /v1/tasks/sessions/current | Delete the current task session |
Rate limiting
Requests are rate-limited at three levels to protect your project and the platform:| Level | Scope |
|---|---|
| Session | Per agent session |
| Project | All agents in a project |
| Global | Across the platform |
429 Too Many Requests response.
Upstream authentication
The gateway supports two methods for authenticating with your upstream MCP servers:| Method | Description |
|---|---|
| Header-based | Static headers (API keys, tokens) injected into every upstream request |
| OAuth | Full OAuth lifecycle — automatic token refresh, retry on expiry |
Next steps
Connect an agent
Point your AI agent at the gateway.
Task sessions
Create scoped, time-limited task tokens.