Skip to content

Cursor/Grok Bot MCP OAuth: vercel.com/authorize returns 404 for mcp.vercel.com client #141

Open

Description

@andydoucet

Summary

Connecting the Vercel Cursor plugin’s MCP connector (https://mcp.vercel.com) from Grok Bot / Cursor fails: the OAuth consent URL loads a 404 Not Found page on vercel.com/authorize while the user is already signed in.

Environment

  • Client: Cursor Grok Bot (MCP connector install of the Vercel plugin)
  • Plugin: Vercel (Cursor marketplace plugin bundling this repo + MCP)
  • Account: signed into Vercel as [email protected]
  • Date: 2026-08-12

Steps to reproduce

  1. Install the Vercel Cursor plugin / MCP connector.
  2. Start connector authentication (connect card → OAuth).
  3. Browser opens (or is redirected to) a https://vercel.com/authorize?... URL for MCP resource https://mcp.vercel.com/.
  4. Page shows Vercel chrome with 404 / Not Found, “You are logged in as …”, and “Sign in as a different user”.
  5. Retrying with force_reauth and a fresh connect card still lands on authorize 404.

Example authorize URL shape

(redacted challenge/state values; structure preserved)

https://vercel.com/authorize
  ?response_type=code
  &client_id=cl_eD921KDq5R4BhfW5pRKJ6KHgY7d0JycM
  &code_challenge=…
  &code_challenge_method=S256
  &redirect_uri=http://localhost:8787/callback
  &scope=openid
  &resource=https://mcp.vercel.com/
  &state=…

Expected

Consent screen for Vercel MCP, then redirect to the client callback so the connector becomes connected.

Actual

vercel.com/authorize itself 404s before consent. Connector remains needsAuth. Localhost callback never runs because authorization never completes.

Notes

  • Other connectors (Notion, Google Calendar/Drive, GitHub) connected successfully in the same client.
  • Switching Vercel accounts / teams was attempted; authorize page still 404’d.
  • Workaround: abandoning MCP OAuth and using Vercel CLI + API token instead.
  • Happy to provide screenshots or additional client logs if useful.

Ask

Is this a broken/allowlisted OAuth client for Cursor, a Vercel MCP authorize routing bug, or a known account/team gating issue? Guidance on the supported auth path for this plugin’s MCP connector would help.

Activity

  1. kemeny commented on Sep 22, 2026

    @kemeny

    Additional report — same failure from Grok Bot / Cursor (2026-09-21)

    Client: Cursor Grok Bot (Vercel marketplace plugin MCP connector)
    Plugin: Vercel (installed; MCP server status needsAuth)
    Date: 2026-09-21 (America/Mexico_City)

    What we want

    Connect our Vercel team to the bot so agents can list projects, inspect deployments, and manage env from chat.

    What happens

    1. Bot starts connector auth (AuthenticateMcpServer → in-chat connect card).
    2. Browser opens the MCP OAuth authorize URL.
    3. Page is 404 / Not Found on Vercel while already signed in. No consent screen. No redirect to the Cursor callback.
    4. Connector stays needsAuth (tools=0).

    Exact authorize URL shape (challenge/state redacted)

    https://vercel.com/oauth/authorize
      ?response_type=code
      &client_id=cl_WbdtcToDrMR4ZHvXLGAmbfoYCsQjMeS8
      &code_challenge=…
      &code_challenge_method=S256
      &redirect_uri=https://www.cursor.com/agents/mcp/oauth/callback
      &scope=openid+offline_access
      &prompt=consent
      &resource=https://mcp.vercel.com/
      &state=…
    

    Notes vs the original report:

    • Path is /oauth/authorize (not /authorize), but same outcome: authorize 404 before consent.
    • redirect_uri is Cursor’s hosted callback (https://www.cursor.com/agents/mcp/oauth/callback), not localhost.
    • scope includes openid offline_access; resource=https://mcp.vercel.com/.

    Expected

    Consent for Vercel MCP → redirect to Cursor callback → connector connected with team access.

    Actual

    vercel.com/oauth/authorize 404s. Callback never runs. Team never binds to the bot.

    Workarounds that do work for us

    • Git-linked auto-deploys (prod already updated after merge)
    • Cursor Cloud Agents with their own Vercel access
    • Dashboard / CLI + token

    Looks like a broken/allowlisted OAuth client or MCP authorize routing bug on Vercel’s side.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions