Skip to content

added auth#308

Merged
shreymodi1 merged 1 commit intomainfrom
shrey/mcpauth
Nov 3, 2025
Merged

added auth#308
shreymodi1 merged 1 commit intomainfrom
shrey/mcpauth

Conversation

@shreymodi1
Copy link
Contributor

@shreymodi1 shreymodi1 commented Nov 2, 2025

added support for auth in mcp.

people can now use

{
{
"mcpServers": {
"": {
"url": "",
"authorization": "any token or authorization key with support for replacement of env variables ($API_KEY)"
}
}
}
}


Note

Adds authorization to MCPConfigurationServerUrl and sends it as an Authorization header (supporting $VAR/${VAR} env substitution) when connecting to HTTP MCP servers.

  • MCP HTTP client:
    • Use authorization from MCPConfigurationServerUrl to build Authorization header; pass to streamablehttp_client(url, headers=...).
    • Add _process_headers to substitute environment variables ($VAR/${VAR}) and validate presence, raising if missing.
  • Config Models:
    • Add optional authorization to MCPConfigurationServerUrl.

Written by Cursor Bugbot for commit 1a88bfb. This will update automatically on new commits. Configure here.

@shreymodi1 shreymodi1 merged commit bb86fef into main Nov 3, 2025
9 checks passed
@shreymodi1 shreymodi1 deleted the shrey/mcpauth branch November 3, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants