MCP authentication broken in v2.75.x
Bug Report
Description
MCP (Model Context Protocol) authentication fails in versions 2.75.0 through 2.75.3, but works correctly in v2.72.7. The OAuth endpoint appears to be missing or changed.
Environment
- OS: macOS (Apple Silicon), Windows
- Supabase CLI version (broken): 2.75.0, 2.75.1, 2.75.2, 2.75.3
- Supabase CLI version (working): 2.72.7
- MCP client: Claude Code
Steps to Reproduce
- Install Supabase CLI v2.75.x
- Configure MCP server in Claude Code to use local Supabase CLI with the .mcp.json configuration shown on supabase studio: "{ "mcpServers": { "supabase": { "type": "http", "url": "http://127.0.0.1:54321/mcp" } } }"
- Run claude /mcp and try to authenticate
Expected Behavior
MCP tools should authenticate successfully.
Actual Behavior
Authentication fails with the following error:
Error: HTTP 404: Invalid OAuth error response: ZodError: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"error"
],
"message": "Invalid input: expected string, received undefined"
}
]. Raw body: {"message":"no Route matched with those values"}
Analysis
The error "no Route matched with those values" suggests an OAuth endpoint that existed in v2.72.7 has been removed or its path changed in v2.75.x.
Workaround
Downgrade to v2.72.7
Still experiencing the same issue. Any updates?
I fixed this by rerunning the command: claude mcp add --scope project --transport http supabase "http://localhost:54321/mcp"
However Im using a local project.
nvm. It keeps happening.
Getting the same error. Any solutions yet?
Hi! Thanks for opening this issue.
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with /reopen on its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.