Skip to content

The agent that grows with you

fix(desktop): stop offering unsupported GitHub MCP OAuth

Gille2707183fed47
diff --git a/apps/desktop/src/lib/mcp-directory.ts b/apps/desktop/src/lib/mcp-directory.ts
index 902cc183486..a33b768a0ff 100644
--- a/apps/desktop/src/lib/mcp-directory.ts
+++ b/apps/desktop/src/lib/mcp-directory.ts
@@ -75,15 +75,10 @@ export const MCP_DIRECTORY: McpDirectoryEntry[] = [
name: 'datadog',
url: 'https://mcp.datadoghq.com/api/unstable/mcp-server/mcp'
},
- {
- description: 'Repos, issues, and pull requests via GitHub’s hosted MCP.',
- docs: 'https://docs.github.com/en/copilot/customizing-copilot/using-model-context-protocol/using-the-github-mcp-server',
- // No hosts on purpose: github.com links are everywhere in a coding chat
- // (commits, PRs under review, pasted diffs) and would fire constantly.
- keywords: ['github'],
- name: 'github',
- url: 'https://api.githubcopilot.com/mcp/'
- },
+ // GitHub's hosted MCP is intentionally absent. Directory entries are wired
+ // through generic Dynamic Client Registration, but GitHub requires each MCP
+ // host to provide its own OAuth app (or use a PAT). Advertising it here makes
+ // both the composer pill and setup_mcp fail at /register with HTTP 404.
{
description: 'Pages and databases from your Notion workspace.',
docs: 'https://developers.notion.com/docs/mcp',
diff --git a/apps/desktop/src/store/suggestion-providers/mcp.test.ts b/apps/desktop/src/store/suggestion-providers/mcp.test.ts
index 4fd644c95d6..f83a5b2c4b1 100644
--- a/apps/desktop/src/store/suggestion-providers/mcp.test.ts
+++ b/apps/desktop/src/store/suggestion-providers/mcp.test.ts
@@ -1,5 +1,7 @@
import { describe, expect, it } from 'vitest'
+import { MCP_DIRECTORY } from '@/lib/mcp-directory'
+
import { matchSuggestions } from './mcp'
const INDEX = [
@@ -92,4 +94,10 @@ describe('matchSuggestions', () => {
{ keyword: 'linear.app', server: 'linear' }
])
})
+
+ it('does not offer GitHub through the generic OAuth registration path', () => {
+ const index = MCP_DIRECTORY.map(entry => ({ hosts: entry.hosts, keywords: entry.keywords, server: entry.name }))
+
+ expect(matchSuggestions('connect github', index)).toEqual([])
+ })
})