Open History to see the last commit
1/**
2 * Providers the MCP demo can route a chat through. MCP tool discovery and
3 * execution are provider-agnostic — the same `mcp: { clients }` config works no
4 * matter which text adapter runs the agent loop. Switching providers here is how
5 * you confirm that (e.g. that Anthropic tool-calling drives the MCP servers just
6 * like OpenAI does).
7 *
8 * Each provider needs its own API key in the environment; the LLM key is
9 * separate from the (keyless) MCP servers.
10 *
11 * CLIENT-SAFE metadata only — the pages that render the provider picker import
12 * this module, so it must not pull in any provider SDK. Adapter resolution
13 * (server-only) lives in `mcp-provider-adapters.ts`.
14 */
15export const MCP_PROVIDERS = [
16 {
17 value: 'openrouter',
18 label: 'OpenRouter',
19 model: 'openai/gpt-5.5',
20 envKey: 'OPENROUTER_API_KEY',
21 },
22 {
23 value: 'openai',
24 label: 'OpenAI',
25 model: 'gpt-5.5',
26 envKey: 'OPENAI_API_KEY',
27 },
28 {
29 value: 'anthropic',
30 label: 'Anthropic',
31 model: 'claude-sonnet-4-6',
32 envKey: 'ANTHROPIC_API_KEY',
33 },
34 {
35 value: 'gemini',
36 label: 'Gemini',
37 model: 'gemini-3.5-flash',
38 envKey: 'GOOGLE_API_KEY',
39 },
40 {
41 value: 'groq',
42 label: 'Groq',
43 model: 'openai/gpt-oss-120b',
44 envKey: 'GROQ_API_KEY',
45 },
46] as const
47
48export type McpProvider = (typeof MCP_PROVIDERS)[number]['value']