OpenCode's OAuth auto-detection was causing context7 and grep_app MCPs to be disabled despite having enabled: true. Only websearch was working. Root cause: Remote MCP servers trigger OAuth detection by default in OpenCode, which can mark MCPs as 'needs_auth' or 'disabled' status even when they don't require OAuth. Fix: Add oauth: false to all 3 built-in MCP configs to explicitly disable OAuth auto-detection. These MCPs either: - Use no auth (context7, grep_app) - Use API key header auth (websearch with EXA_API_KEY)
11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
export const websearch = {
|
|
type: "remote" as const,
|
|
url: "https://mcp.exa.ai/mcp?tools=web_search_exa",
|
|
enabled: true,
|
|
headers: process.env.EXA_API_KEY
|
|
? { "x-api-key": process.env.EXA_API_KEY }
|
|
: undefined,
|
|
// Disable OAuth auto-detection - Exa uses API key header, not OAuth
|
|
oauth: false as const,
|
|
}
|