Skip to content

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.

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.

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 }.

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}.

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.

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.

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.

  • Credentials and keys are write-only; DigitalOcean never returns them.
  • An endpoint’s actor can’t change once set, so a new actorId creates a new endpoint.