Skip to content

Unable to authenticate with Remote Github MCP server #525

Closed as duplicate of#517
@PrasanthV454

Description

@PrasanthV454

I added the below config to my mcpServers in my Cursor MCP config

"github-remote": {
      "url": "https://api.githubcopilot.com/mcp/",
      "authorization_token": "Bearer ghp_xxxxxxxxxxxxxxx"
}

But unable to connect to the server. I have attached the MCP logs.

Logs

2025-06-16 17:26:01.414 [info] mote: Handling ReloadClient action
2025-06-16 17:26:01.414 [info] mote: Creating streamableHttp transport
2025-06-16 17:26:02.229 [error] mote: Client error for command Error POSTing to endpoint (HTTP 401): bad request: missing required Authorization header

2025-06-16 17:26:02.230 [info] mote: Client closed for command
2025-06-16 17:26:02.231 [error] mote: Error connecting to streamableHttp server, falling back to SSE: Error POSTing to endpoint (HTTP 401): bad request: missing required Authorization header

2025-06-16 17:26:03.052 [error] mote: Client error for command SSE error: Non-200 status code (401)
2025-06-16 17:26:03.052 [error] mote: Error connecting to SSE server after fallback: SSE error: Non-200 status code (401)
2025-06-16 17:26:03.053 [info] mote: Client closed for command
2025-06-16 17:26:03.053 [error] mote: Failed to reload client: SSE error: Non-200 status code (401)
2025-06-16 17:26:03.061 [info] ewie: Handling ListOfferings action
2025-06-16 17:26:03.061 [error] ewie: No server info found
2025-06-16 17:26:03.062 [info] mote: Handling ListOfferings action
2025-06-16 17:26:03.062 [error] mote: No server info found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions