Network requirements
The Keycard Cloud hosts, paths, and MCP traffic a network must allow so that people, agents, and servers can use Keycard.
Every connection to Keycard Cloud is an outbound HTTPS request on TCP port 443, from a browser, an MCP client, an agent, a server, or the CLI. This page lists the hosts each one reaches, what a proxy must let through for MCP traffic, and the connections Keycard Cloud makes to systems you run. It describes Keycard Cloud. Enterprise Cloud reaches a dedicated cell over AWS PrivateLink, so its endpoints differ; see Deployment.
| Host | Connects from | Used for |
|---|---|---|
<zone-id>.keycard.cloud |
Browsers, MCP clients, agents, servers, and the CLI | A Zone’s sign-in, consent, token issuance, and signing keys. See Zone endpoints. |
unified-<gateway-slug>-<zone-id>.mcp.gateway.context.cloud |
MCP clients and agents | Tool calls through a Unified Access Gateway. See Unified Access Gateway. |
console.keycard.ai |
Browsers | Keycard Console |
id.keycard.ai |
Browsers and the CLI | Signing in to your Keycard account, for Console and the CLI |
api.keycard.ai |
Keycard Console in the browser, the CLI, the Terraform provider, and scripts that use a service account | The management API |
assets.keycard.ai |
Browsers | Images on the sign-in, consent, and Console pages |
| Your identity provider’s sign-in hosts | Browsers | Signing in to a Zone through its Identity Provider, or to Console through single sign-on |
Your cloud platform’s token service: login.microsoftonline.com for Microsoft Entra ID, or sts.<region>.amazonaws.com for AWS STS |
Agents that sign in with a token they request from that service | Getting the token an agent presents to the Zone as its Workload Identity. AWS STS serves GetWebIdentityToken on regional endpoints only, not on the global sts.amazonaws.com. |
Each host accepts HTTP/1.1 and HTTP/2 over TLS 1.2 and TLS 1.3, and refuses earlier TLS versions. Allow the hosts by name rather than by IP address: they resolve to edge addresses that every Keycard Cloud customer shares, so an IP allowlist cannot single out your Zones.
Each Zone has its own host, your organization Zone included. A Zone’s host is in its Issuer URL, under Settings → Connection in the Zone. A Zone on a custom domain uses that domain in place of <zone-id>.keycard.cloud, so copy the Issuer URL rather than typing it.
If your proxy needs a pattern rather than a list of hosts, *.keycard.cloud covers every Zone on the default domain and *.mcp.gateway.context.cloud covers every Gateway endpoint. Keycard owns both domains and serves every name under them, including other customers’ Zones and Gateways.
Defaults in Keycard’s tools
Section titled “Defaults in Keycard’s tools”- The SDKs connect to the Zone URL you configure. Given only a Zone ID, the Python, TypeScript, and Go SDKs build
https://<zone-id>.keycard.cloud. - The CLI signs in to your Keycard account at
id.keycard.ai, callsapi.keycard.ai, and reaches each Zone athttps://<zone-id>.keycard.cloud, unless its configuration names other URLs. - The Terraform provider calls
https://api.keycard.aiunless you set its endpoint.
Zone endpoints
Section titled “Zone endpoints”A Zone’s host carries two kinds of traffic. A person’s browser opens the sign-in and consent pages, and the MCP client, agent, or server then calls the token endpoint itself. Allow the host for both.
Called by clients, agents, and servers
Section titled “Called by clients, agents, and servers”| Path | Called by | Purpose |
|---|---|---|
/.well-known/oauth-authorization-server, /.well-known/openid-configuration |
MCP clients, agents, SDKs, and servers | Discovery documents that list the Zone’s other endpoints |
/openidconnect/jwks |
Servers and SDKs that verify Keycard tokens | The Zone’s signing keys |
/oauth/2/token |
MCP clients, agents, and servers | Issuing, refreshing, and exchanging tokens |
/oauth/2/revoke |
MCP clients, agents, and servers | Revoking a token |
/oauth/2/registration |
MCP clients | Dynamic client registration, when the Zone allows it |
/oauth/2/device_authorization |
The CLI with --device |
Starting a sign-in on a machine without a browser |
/openid/connect/userinfo |
Clients | Reading the signed-in User’s profile |
/events |
The CLI | Session events from keycard run |
/scim/v2 |
Your identity provider’s provisioning service | Directory sync |
Opened in a browser
Section titled “Opened in a browser”| Path | Purpose |
|---|---|
/oauth/2/authorize |
Starts sign-in and authorization |
/login and paths under it |
The sign-in and consent pages |
/static/ |
Scripts for those pages |
/oauth/2/redirect |
Where your identity provider, or a Credential Provider, returns the browser |
/verify |
Entering a device sign-in code |
/openid/connect/logout and paths under it |
Signing out |
/openid/connect/redirect/logout |
Where your identity provider returns the browser after signing out |
During sign-in the browser also goes to the Zone’s Identity Provider. The first time a person authorizes a Resource whose credentials come from a Credential Provider, the browser goes to that provider’s authorization page as well. Both send the browser back to /oauth/2/redirect on the Zone host.
The CLI receives a browser sign-in at http://localhost:<port>/callback. An MCP client that registers a loopback redirect URI, on localhost, 127.0.0.1, or [::1], receives its sign-in the same way. Either way, the browser must reach that address on the same machine without going through a proxy. Where it cannot, keycard auth signin --device signs the CLI in without a callback, as Sign in from a headless or remote machine describes.
Unified Access Gateway
Section titled “Unified Access Gateway”A Gateway’s endpoint is its MCP Access URL, on the Gateway’s Application settings page in Console. It has the form https://unified-<gateway-slug>-<zone-id>.mcp.gateway.context.cloud/mcp. Keycard derives <gateway-slug> from the Gateway’s name, so copy the URL from Console. Each Gateway endpoint is one host directly under mcp.gateway.context.cloud.
| Path | Methods | Purpose |
|---|---|---|
/mcp |
POST, DELETE |
MCP requests, over the Streamable HTTP transport. A Unified Access Gateway answers GET with 405, because it doesn’t offer a standalone listening stream. |
/.well-known/oauth-protected-resource/mcp |
GET |
Discovery: names the Zone that signs callers in |
A request to /mcp without a token gets 401 with a WWW-Authenticate header that points to the discovery document, and the document sends the client to https://<zone-id>.keycard.cloud/ to sign in. A network that allows the Gateway host but not the Zone host fails at that step, after the first 401.
MCP traffic through a proxy
Section titled “MCP traffic through a proxy”These apply to traffic to a Gateway and to any MCP server of yours that accepts Keycard tokens.
- Pass
text/event-streamresponses through as they arrive. An MCP server can answer a request with an event stream that stays open after the result. A proxy that buffers the response until it ends holds the result back until the connection closes or times out. - Forward these headers unchanged:
Authorizationon requests,WWW-Authenticateon401responses, andMcp-Session-IdandMcp-Protocol-Versionin both directions. The Gateway issuesMcp-Session-Idwhen a session starts and rejects a later request that does not carry it. - If the proxy inspects TLS, it must negotiate TLS 1.2 or TLS 1.3 with Keycard’s hosts. MCP clients, agents, SDKs, and the CLI each check certificates through their own runtime, so each must trust the proxy’s certificate authority.
Connections from Keycard Cloud
Section titled “Connections from Keycard Cloud”Keycard Cloud opens HTTPS connections to some systems you run, so each of these must be reachable from the internet.
| Keycard Cloud connects to | When |
|---|---|
| Your identity provider’s discovery, token, and signing-key endpoints | Each sign-in through a Zone’s Identity Provider |
| Each Credential Provider’s authorization server | When Keycard obtains or renews a credential from that provider |
| The OpenID Connect issuer of each Provider you register for Workload Identity, for its discovery document and signing keys | When a workload exchanges its platform token |
The jwks_uri or client metadata URL that an Application publishes |
When that Application authenticates with a key |
| Each MCP server attached to a Unified Access Gateway | Each request the Gateway forwards |
The Gateway refuses an MCP server whose address is in a loopback, private, or link-local range, so attach each server at a public address. An identity provider that runs on your network, such as PingFederate, has the same requirement; see Connect Ping Identity.
These connections don’t come from the edge addresses that Keycard’s hosts resolve to, so an inbound rule built from those addresses won’t admit them. If your firewall accepts these connections only from known source addresses, contact Keycard for the addresses to allow.
Microsoft Entra tenant restrictions
Section titled “Microsoft Entra tenant restrictions”Tenant restrictions v2 in Microsoft Entra lets an organization limit the external accounts that people can use on its networks and managed devices. Microsoft documents that Entra ID enforces the policy during sign-in when the request carries a tenant restrictions signal. A corporate proxy, Global Secure Access, or Windows device management adds that signal, and Entra ID then blocks any external account the policy doesn’t allow.
The policy covers external accounts only, so a Zone whose Identity Provider is your own Entra tenant needs no change. A Zone whose Identity Provider is another organization’s tenant, such as a partner’s, signs people in with accounts that tenant issued.
To let people sign in to that Zone where your policy is enforced, add the tenant under Organizational settings in your cross-tenant access settings and allow access in its tenant restrictions, as Microsoft describes. Otherwise Entra ID blocks the sign-in, and the person can’t finish signing in to the Zone.