Authentication and Authorization for MCP Servers in TrueFoundry AI Gateway
No Auth
Header Based Auth
Oauth2 Based Auth
Create an OAuth2 app in your provider's developer portal (e.g., GitHub, Google, etc.)
<tfy-control-plane-base-url>
with your TrueFoundry control plane URL.Register your MCP Server in the AI Gateway
Endpoint URL:
The URL of your deployed MCP ServerAuthentication Type:
Select OAuth2OAuth2 App ID:
The client ID from your OAuth2 appOAuth2 App Secret:
The client secret from your OAuth2 appOAuth2 App Scopes:
The required scopes for accessing provider resources
Using OAuth2 Authentication
Authorize your MCP Server in AI Gateway
Revoke your OAuth2 authorization
MCP Server listed after authentication
MCP Gateway Authentication and Authorization Flow