cli icon indicating copy to clipboard operation
cli copied to clipboard

MCP authentication broken in v2.75.x

Open Lynxhide777 opened this issue 9 months ago • 5 comments

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

  1. Install Supabase CLI v2.75.x
  2. 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" } } }"
  3. 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

Lynxhide777 avatar Feb 05 '26 10:02 Lynxhide777

Still experiencing the same issue. Any updates?

VadimNotJustDev avatar Mar 23 '26 15:03 VadimNotJustDev

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.

JotaDeRodriguez avatar Mar 27 '26 10:03 JotaDeRodriguez

nvm. It keeps happening.

JotaDeRodriguez avatar Mar 31 '26 12:03 JotaDeRodriguez

Getting the same error. Any solutions yet?

Henri-Salomon avatar Apr 15 '26 19:04 Henri-Salomon

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.

github-actions[bot] avatar Jun 17 '26 18:06 github-actions[bot]