Skip to content

Supabase OAuth status probe fails with missing Mcp-Session-Id (HTTP 400) while normal App tool calls succeed #5542

Duplicate

Description

@XTafanous

Summary

The separate OAuth/authorization status check for an existing Supabase MCP connection fails with HTTP 400, while a normal GitHub Copilot App session can successfully invoke get_project_url through that connection.

The server's actual response body identifies a missing MCP session header:

{"message":"Mcp-Session-Id header is required for non-initialization requests"}

Related: #5014 describes the same session-initialization failure pattern for another provider; #5039 describes a different possible cause of a similar HTTP-400 probe error. This report adds a Supabase-specific reproduction and the actual response body; I am not claiming that protocol-version rejection is the cause here.

Environment

  • macOS
  • GitHub Copilot App 1.4.3 (in-app updater reported up to date)
  • Copilot Business
  • Existing project-scoped HTTP MCP server: Supabase hosted MCP
  • Passive diagnostic used the SDK bundled with the App and the installed CLI runtime with --no-auto-update; no model prompt was sent during that diagnostic.

Configuration (sanitized example)

{
  "mcpServers": {
    "supabase": {
      "type": "http",
      "url": "https://mcp.supabase.com/mcp?project_ref=REDACTED&features=docs%2Caccount%2Cdatabase%2Cdebugging%2Cdevelopment%2Cfunctions%2Cbranching",
      "tools": ["*"]
    }
  }
}

REDACTED is a placeholder, not a real project reference. There are no static Authorization headers.

Steps to reproduce

  1. Configure one existing project-scoped Supabase MCP server and complete its normal OAuth connection.
  2. Verify that a new local Copilot App session can call get_project_url successfully. This was observed in the actual App transcript.
  3. Open Customize > Installed and the existing Supabase server's configuration/actions UI.
  4. Observe the separate authorization check report:
Could not check authorization
WsCommandError: invalid argument: MCP server probe returned HTTP 400 Bad Request

The server row can still report Connected. Enabled. afterward.

Passive diagnostic evidence (sanitized)

{
  "probe_status": "failed",
  "http_status": 400,
  "server_response": {
    "message": "Mcp-Session-Id header is required for non-initialization requests"
  },
  "anonymous_checks": {
    "ping_2026-07-28": 401,
    "initialize_2026-07-28": 401,
    "ping_2025-03-26": 401,
    "initialize_2025-03-26": 401
  },
  "normal_app_tool": "get_project_url succeeded in a separate actual Copilot App session",
  "new_login_during_diagnostic": false
}

The passive session.mcp.oauth.probe result exposed HTTP 400 and the response body above. No stored token was read, exported, or manually inserted into a request. No reauthentication was started for this diagnostic.

The anonymous checks only establish that those unauthenticated requests receive an expected 401. They do not prove which protocol versions are accepted after authentication.

Limitation: a separate attempt to compare tools/list in the explicitly created SDK diagnostic session required authentication in that isolated context, so I did not reauthenticate it. The successful normal tool call is independently evidenced by the actual Copilot App session, not by that SDK session. The successful project URL and all private identifiers are intentionally omitted here.

Expected behavior

The authorization probe should establish an MCP session correctly before issuing non-initialization requests, or otherwise use a protocol-compliant status check. It should not present a missing-session protocol error as a reason to reauthenticate a working OAuth connection.

Please preserve the response detail in the UI and distinguish a protocol/session failure from rejected credentials. A blanket rule treating every HTTP 400 as authenticated would not be appropriate.

Current safe workaround

Keep the existing OAuth connection and use normal Copilot App sessions. Avoid unnecessary login resets triggered only by this configuration-dialog probe error. This preserves the functioning connection but does not fix the faulty probe itself.

Privacy

No credentials, account/organization names, real project reference or URL, local paths, database contents, or raw logs are included. Configuration and connection were preserved during diagnosis.

Activity

  1. added
    area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registry
    and removed on Nov 21, 2026
  2. hstaudacher commented on Nov 23, 2026

    @hstaudacher
    Collaborator

    Thanks for the Supabase repro and the response body. This is the same problem as #5014: the authentication status probe sends a non-initialization request without an MCP session, so stateful servers reject it with HTTP 400 (Mcp-Session-Id header is required). We're closing this as a duplicate and tracking it there. Please add a short note to #5014 so the Supabase case is covered by the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registry

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions