Action Gateway
The Action Gateway is a catalog of tools agents can call: web search, Slack, Jira, GitHub and hundreds more, plus your own MCP servers. You publish a set of them as an endpoint, an MCP URL an agent connects to, with approval rules that allow, deny or ask before each call. Tools that act on someone’s account use a credential you registered, and an actor is the end user a call is made for.
- default
- allow
- exa_web_fetch
- ask
Publish an endpoint
Section titled “Publish an endpoint”const endpoint = yield* DigitalOcean.ActionGateway.Endpoint("Research", { tools: ["exa_web_search", "exa_web_fetch"], policy: { default: "allow", rules: [{ tool: "exa_web_fetch", action: "ask" }] }, instructions: "Cite every source you use.",});endpoint.mcpUrl is the address to give an MCP client. Every change publishes a new immutable version, and mcpUrl always serves the newest; versionMcpUrl stays pinned to the one you deployed.
Trim a tool’s output
Section titled “Trim a tool’s output”An output view keeps only the fields you list, so results take less of an agent’s context:
const titles = yield* DigitalOcean.ActionGateway.OutputView("Titles", { tool: "exa_web_search", fields: ["results"],});Use it on an endpoint with outputViews: { exa_web_search: titles.name }.
Group tools in a toolbelt
Section titled “Group tools in a toolbelt”const belt = yield* DigitalOcean.ActionGateway.Toolbelt("Slack", { tools: ["slack_add_bookmark", "slack_add_reaction"],});A toolbelt is versioned too; reference one in an endpoint’s tools as toolbelt:${belt.reference}.
Add your own MCP server
Section titled “Add your own MCP server”const token = yield* Config.Redacted("INTERNAL_MCP_TOKEN");yield* DigitalOcean.ActionGateway.McpServer("Internal", { endpoint: "https://mcp.internal.example.com/mcp", apiKey: token,});Its tools join the catalog for your team.
Register a provider credential
Section titled “Register a provider credential”const apiKey = yield* Config.Redacted("ABUSEIPDB_API_KEY");yield* DigitalOcean.ActionGateway.ProviderCredential("AbuseIpDb", { provider: "abuseipdb", apiKey });Calls to that provider’s tools use it. oauthClient registers an OAuth client instead, and shared: true lets the whole team use it.
Limit an actor
Section titled “Limit an actor”yield* DigitalOcean.ActionGateway.ActorLimit("User42", { actorId: endpoint.actorId, limits: { webSearch: 10, otherTools: 60 },});Limits are calls per minute, below your team’s. The actor must already exist: an endpoint or session created with actorId.
Limits
Section titled “Limits”- Credentials and keys are write-only; DigitalOcean never returns them.
- An endpoint’s actor can’t change once set, so a new
actorIdcreates a new endpoint.