Cloud Gateway & MCPOverview

Cloud Gateway & MCP

The Cloud Gateway is Regent Control delivered as a hosted service: your agent gets a URL and a key — no container to deploy. Every tool call the agent makes (a Stripe charge, a Slack message, an email) is authorized by the gate, and the real provider credential is injected from Regent’s vault — so the agent never holds it and physically can’t bypass the checks.

You configure it by chatting over MCP (or in the dashboard), and your agents act over a second MCP endpoint.

One brain, two MCPs

There are two MCP servers. Don’t mix them up: one is where a human configures, the other is where an agent acts.

Admin MCP (management)Tools MCP (runtime)
URLhttps://api.regentprotocol.org/v1/mcphttps://gw.regentprotocol.org/gw/mcp
Purposecreate agents, mandates, keys, toolsthe agent calls tools + pays
AuthAuthorization: Bearer <API key>Bearer <control key> + X-Agent-Id header
Whenonce, at onboardingat runtime, every call
DocsAdmin MCP →Tools MCP →

The three-sided rule

Every tool follows the same split — and it’s deliberate:

PartWho does itWhere
Configure the tool (routing: base URL, encoding, spend limit)you / your assistantAdmin MCP or dashboard
Vault the provider secret (the Stripe/Slack/AgentMail key)a human onlydashboard /connect/gateway
Call the toolthe agentTools MCP /gw/mcp
⚠️

The provider secret is the only step a human must do. Why can’t the agent vault its own key? Because then the agent would have seen it — and the whole guarantee is that it never does. A secret must never pass through an agent’s context.

Your own Stripe account

A production organization pays through its own Stripe account; Regent never holds a Stripe account on a client’s behalf. Connecting it is one paste at /connect/gateway:

StepWhatWhere it lives
1. Create a restricted keyin your Stripe dashboard, Developers → API keys → Create restricted key (rk_…), with write access to Payment Intents, Charges, Refunds, Transfers and Webhook Endpoints, and (optional) read access to Account information; never the account’s full secret keyyour Stripe account
2. Paste itConnect key → stripe. With that key Regent registers this organization’s settlement webhook on your account (https://control-api.regentprotocol.org/v1/control/webhooks/stripe/<your organization id>, events charge.succeeded, payment_intent.succeeded, refund.created, refund.updated, refund.failed) and, when the organization has no stripe tool yet, creates it in the catalog and keeps the signing secret Stripe returnsthe vault, put there by a person; the endpoint, on your account

An agent already set up for Stripe’s own MCP server keeps its tools: point it at https://gw.regentprotocol.org/gw/mcp/stripe instead of https://mcp.stripe.com (Stripe: the one-line change, roles with limits per customer, and regent-control scan).

That is all: the console answers with the account name, the mode (test or live) and the endpoint id. Check on the key’s row asks Stripe, at any time, whether the key still works and the endpoint is still enabled. Disconnecting the key removes the endpoint Regent registered. A key without the Webhook Endpoints permission is refused by name (KEY_MISSING_PERMISSION); a publishable key or a wrong key, likewise (BAD_PROVIDER_KEY).

Prefer to register the endpoint yourself? Choose I registered the webhook myself in the console, add the endpoint above in Developers → Webhooks, and paste its whsec_… next to the key. Regent then changes nothing in your account.

The webhook is how the receipt learns what really settled: Stripe’s figure for the charge or the refund, not the agent’s report. The URL carries your organization id and the events are verified with your own signing secret, so one tenant’s events can never settle another’s decisions, and an event without a usable secret is refused (WEBHOOK_SECRET_NOT_CONFIGURED in Stripe’s delivery log) rather than trusted. Test and live mode share the same URL; the audit record names which mode signed each event (provider_livemode).

Together with Stripe’s approval rules

Stripe has its own governance for agents: a restricted key tagged for an AI agent is subject to approval rules (a threshold per action, an actor, a rate limit; reviewers in the Stripe dashboard; defaults for refunds, subscription cancellations, payouts, transfers, outbound payments and currency conversions). The two work together, and the division of labour is this:

Stripe approval rulesRegent
Rule onone action, one threshold, for all agent keys at onceeach agent its own mandate: per-transaction cap, daily and monthly budgets, caps per customer or per seller
Coverspayment intents, refunds, subscriptions, credit notes, customer balance, payouts, transfers, conversions, bank accountsthe same, plus coupons (incl. percent_off), payment links, Checkout, quotes, invoice void and mark-uncollectible, dispute close, and every other rail (x402, Agentcard, custody) under one policy
The keystays with the agentnever reaches the agent (vaulted; injected after the decision)
Approvalin the Stripe dashboard, e-mail to named reviewerspasskey or chat approval where the owner is; approval_method in the receipt
RecordStripe’s request loga signed receipt, settled from Stripe’s own webhook, verifiable offline

What to configure. Vault an agent-tagged key if you want Stripe’s rules as a second line (payouts and transfers are a good place for it); vault an ordinary restricted key if you want Regent’s decision to be final. Either way the budgets and the per-customer caps live in Regent, because Stripe has no cumulative ones.

What happens when both apply. Regent decides first; nothing reaches Stripe that Regent refused. If Stripe then pauses the action under a rule, the gateway answers 202 PROVIDER_APPROVAL_PENDING carrying Stripe’s own code and request-log link, and the agent must not retry: Stripe runs the action itself once a reviewer approves, and a retry would ask twice. The decision’s hold stays for the settlement event: when the reviewer approves, Stripe’s refund.updated (or charge.succeeded) names the decision and settles it with a receipt. A rejected, canceled or expired request sends no event at all, so the gateway keeps the request’s id (X-Regent-Provider-Approval-Id) and asks Stripe how it ended — within minutes of the reviewer’s answer the decision is voided and the hold released. Connected before 29 October 2026? Paste the key again so the endpoint Regent registers also receives the refund.* events. A rule that blocks is an ordinary refusal: Stripe’s action_blocked answer is passed through and the hold is released. Stripe’s MCP server stops accepting untagged restricted keys on 30 November 2026; the gateway calls Stripe’s API directly and is not affected.

Card numbers never pass the gateway. A call that carries a card number, CVC or expiry — in a named card field on any tool, or as a card-shaped value anywhere in the body of a money tool — is refused before the decision (CARD_DATA_NOT_ALLOWED). Agents pay with the provider’s own tokens (pm_…, tok_…) or a card the owner vaulted at the provider.

The flow

Agent (Claude, LangChain, any)
   │  MCP / HTTP  +  control key  +  X-Agent-Id
   ▼
gw.regentprotocol.org  (Cloud Gateway, multi-tenant)
   │  1. key → org → your tool catalog
   │  2. intent → gate: identity ∥ mandate ∥ Guardian risk → Cedar policy
   │  3. ALLOW  → inject the vaulted credential → call the provider
   │     DENY   → blocked, provider never touched
   │     ESCALATE → parked for a human
   ▼
Stripe · Slack · AgentMail · custody wallet · any HTTP API

Get started