Skip to main content
ContextForge (mcp-context-forge) is IBM’s open-source MCP gateway and registry. Register Consensus from the Admin UI’s Gateways/MCP Servers tab or with the REST API.

Shared API key

MCPGATEWAY_BEARER_TOKEN is your ContextForge admin JWT, not the Consensus key.

Per-user OAuth

ContextForge implements Dynamic Client Registration and enables PKCE automatically for authorization-code flows:
Supply client_id and client_secret only if you’ve obtained a confidential client from Consensus; otherwise let the gateway register itself.

Notes

  • Callers can pass their own Consensus token in X-Upstream-Authorization; forwarding the plain Authorization header requires ENABLE_SENSITIVE_HEADER_PASSTHROUGH.
  • The transport value is case-insensitive in recent builds; check your instance’s /docs OpenAPI if STREAMABLEHTTP is rejected.
IBM docs: ContextForge on GitHub · OAuth guide