Resolve the default MCP auth token. Priority (the first non-empty value wins; every returned value has any legacy Bearer prefix stripped because the MCP gateway expects a raw API key):
MCP_AUTH_TOKEN env var (Bearer prefix stripped)
MCP_GATEWAY_API_KEY env var (raw API key)
gateway.apiKey from MCP config file (Bearer prefix stripped)
mcpServers['riksdag-regering'].headers.Authorization from MCP config file (Bearer prefix stripped โ the Authorization header is the legacy storage location for a raw API key in pre-v0.69 mcp-config.json)
Resolve the default MCP auth token. Priority (the first non-empty value wins; every returned value has any legacy
Bearerprefix stripped because the MCP gateway expects a raw API key):Authorizationheader is the legacy storage location for a raw API key in pre-v0.69 mcp-config.json)