Skip to content

Fix Smithery 502: preserve query params in redirect and accept API ke…#116

Merged
neoneye merged 1 commit intomainfrom
mcp-smithery3
Feb 28, 2026
Merged

Fix Smithery 502: preserve query params in redirect and accept API ke…#116
neoneye merged 1 commit intomainfrom
mcp-smithery3

Conversation

@neoneye
Copy link
Member

@neoneye neoneye commented Feb 28, 2026

…y from query string

Smithery passes the API key as ?X-API-Key=... query parameter and does not follow 307 redirects for authenticated POST requests. Two fixes:

  • Redirect handler now forwards query string from /mcp to /mcp/
  • _extract_api_key() now checks query params as fallback after headers

…y from query string

Smithery passes the API key as ?X-API-Key=... query parameter and does
not follow 307 redirects for authenticated POST requests. Two fixes:
- Redirect handler now forwards query string from /mcp to /mcp/
- _extract_api_key() now checks query params as fallback after headers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@neoneye neoneye merged commit 7da7eb0 into main Feb 28, 2026
3 checks passed
@neoneye neoneye deleted the mcp-smithery3 branch February 28, 2026 22:34
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.

1 participant