LiteLLM’s MCP Gateway exposes upstream MCP servers on its /mcp endpoint and scopes them by key and team. Register Consensus in the UI under MCP Servers › Add New MCP Server, or in config.yaml.
LiteLLM’s transport defaults to "sse". Set it to "http" or the connection will fail; Consensus has no SSE endpoint.
Shared API key
bearer_token sends the value as Authorization: Bearer <auth_value>. If you’d rather set the header explicitly:
Per-user OAuth
Consensus supports Dynamic Client Registration, so point LiteLLM at the registration endpoint and it registers itself:
LiteLLM’s callback is https://<PROXY_BASE_URL>/ui/mcp/oauth/callback; set PROXY_BASE_URL when running behind an ingress. oauth2_flow is required on every oauth2 entry.
If your clients already hold a Consensus-issued token, auth_type: true_passthrough forwards it unchanged.
Notes
- Changing
server_id after keys and teams have been granted access breaks those permissions.
- On aggregate endpoints, per-server credentials go in
x-mcp-consensus-authorization.
LiteLLM docs: MCP · MCP OAuth