Gateway
Register your self-hosted P0 AI Gateway with P0 so it can enforce policy on agent tool calls and receive its MCP server definitions.
Last updated
Register your self-hosted P0 AI Gateway with P0 so it can enforce policy on agent tool calls and receive its MCP server definitions.
The Gateway component registers a deployed P0 AI Gateway with P0. Once registered, P0 recognizes the gateway's identity, pushes it the definitions of the MCP servers it should host, and enforces policy at runtime. The gateway ships access logs directly to the system of your choice. You register one Gateway component per gateway deployment.
An existing P0 account at p0.app.
A deployed P0 AI Gateway. See Deploying the P0 AI Gateway. You need the gateway's public URL and its OAuth server endpoint from that deployment.
Navigate to Integrations on p0.app and select Agentic gateway, then choose the Gateway component.

Click Add gateway.

Enter the gateway details, then click Next:

Gateway identifier: a name for this gateway within P0.
Agentic gateway URL: the public URL where your gateway runs. The gateway exposes your MCP servers under this URL. This is the gateway host you configured during deployment.
Enter the OAuth server endpoint then click Finish:

OAuth server endpoint: the public URL of your gateway's OAuth server, typically the same as the Agentic gateway URL. It must be publicly accessible and serve .well-known/jwks.json. P0 uses this endpoint as the gateway's token issuer to verify the requests it receives, so it must exactly match the issuer your deployed OAuth server presents.
The gateway now appears with the state Installed.

After registration, the gateway periodically calls P0 to sync its configuration. P0 returns the set of MCP servers configured for this gateway, and the gateway reconciles them, adding newly configured servers and removing ones that are no longer configured. No servers are exposed until you configure them.
Configure the MCP servers this gateway should front.
Last updated