Skip to content

Is github mcp serve with oauth supposed to be working? #5716

Closed as not planned

Description

@sheldonhull

Question

I have tried to get it to work but no luck with it showing up as a oauth based mcp server.

Tried this:

    "github": {
      "type": "remote",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "X-MCP-Toolsets": "repos,issues",
        "X-MCP-Readonly": "true"
      },
      "timeout": 15000
    }

Am I doing something wrong here?

$ opencode mcp list

●  ✗ github failed
│      Dynamic client registration failed: HTTP 422
│      https://api.githubcopilot.com/mcp/

$ opencode mcp auth github
▲  No OAuth-enabled MCP servers configured

Activity

  1. github-actions commented on Dec 18, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    • MCP with oauth doesn't work #5444: MCP with oauth doesn't work - User experiencing similar issue where OAuth-enabled MCP servers are not being recognized, with the same "No OAuth-enabled MCP servers configured" error message when trying to authenticate.

    Feel free to ignore if none of these address your specific case.

  2. christso commented on Dec 28, 2025

    @christso
    Contributor

    You're just missing the Authorization header. Add a Personal Access Token (fine-grained or classic):

    "github": {
      "type": "remote",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer ghp_your_token_here",
        "X-MCP-Toolsets": "repos,issues",
        "X-MCP-Readonly": "true"
      }
    }

    The HTTP 422 error is because GitHub doesn't support Dynamic Client Registration. Once PR #5940 is merged, you'll be able to use OAuth by configuring your own clientId/clientSecret - which is the recommended approach.

  3. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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