Cursor configuration MCP Server error

Cursor configuration MCP Server error:

I need to configure a Streamable HTTP Protocol MCP Server using cursor, which requires Authorization authentication.
(If the server cancels Authorization authentication, then the configuration of this MCP Server is available.)

My env:

  • Windows11
  • Cursor - 0.50.5

The content of the mcp.json file is as follows

{
  "mcpServers": {
    "mcp-hub": {
      "name": "mcp-hub",
      "type": "streamable-http",
      "streamable": true,
      "url": "http://192.168.40.140:13030/mcp/c306f4a7-aad6-4c09-969c-8699030c1d9d",
      "headers": {
        "Authorization": "Bearer token..."
      }
    }
  }
}

The content of Output ->MCP Logs is as follows:

2025-05-23 15:36:44.068 [info] -hub: Handling ReloadClient action
2025-05-23 15:36:44.068 [info] -hub: Creating streamableHttp transport
2025-05-23 15:36:44.086 [error] -hub: Client error for command Error POSTing to endpoint (HTTP 401): Bearer authentication required or invalid token
2025-05-23 15:36:44.087 [info] -hub: Client closed for command
2025-05-23 15:36:44.087 [error] -hub: Error connecting to streamableHttp server, falling back to SSE: Error POSTing to endpoint (HTTP 401): Bearer authentication required or invalid token
2025-05-23 15:36:44.101 [error] -hub: Client error for command SSE error: Non-200 status code (401)
2025-05-23 15:36:44.101 [error] -hub: Error connecting to SSE server after fallback: SSE error: Non-200 status code (401)
2025-05-23 15:36:44.101 [info] -hub: Client closed for command
2025-05-23 15:36:44.101 [error] -hub: Failed to reload client: SSE error: Non-200 status code (401)

Its been an issue for awhile. Looks like it was solved in vscode but cursor has yet to apply the patch or fix. ( I’m not sure what the exact resolution was in vscode ) Cursor MCP requests do not honour API-key provision to sse (only stdio works)