github-mcp-server icon indicating copy to clipboard operation
github-mcp-server copied to clipboard

Unable to connect to GitHub MCP Server from within OpenCode

Open ThomasCode92 opened this issue 1 month ago • 0 comments

I'm trying to connect OpenCode to the GitHub MCP Server, but it appears the AI has no access to any GitHub-related tools.

🧱 Current Configuration

{
  "$schema": "https://opencode.ai/config.json",
  "instructions": [],
  "mcp": {
    "context7": {
      "type": "remote",
      "enabled": true,
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}"
      }
    },
    "github": {
      "type": "remote",
      "enabled": true,
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer ${env:GITHUB_MCP_PATH}"
      }
    }
  }
}

✅ What Works

  • The Context7 MCP connection works correctly.
    • Confirmed that environment variable injection ({env:CONTEXT7_API_KEY}) is functioning.

❌ What Doesn’t Work

  • The GitHub MCP connection doesn’t seem to initialize.
  • The AI has no access to any GitHub-related tools.
Image

ThomasCode92 avatar Nov 12 '25 21:11 ThomasCode92