-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcp-servers.ts
More file actions
68 lines (65 loc) · 1.56 KB
/
mcp-servers.ts
File metadata and controls
68 lines (65 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* MCP Server Definitions
*
* Single source of truth for all MCP server configurations.
* Used by docker/entrypoint.sh to configure agents at runtime.
*
* @remarks
* Each server defines connection details and authentication requirements.
* Add new servers here to extend the evaluation system.
*
* @public
*/
/**
* MCP Server configuration
*
* @public
*/
export type McpServer = {
/** Server name used in MCP protocol */
name: string;
/** Server type (currently only http supported) */
type: "http";
/** Server URL endpoint */
url: string;
/** Optional authentication configuration */
auth?: {
/** Authentication type */
type: "bearer";
/** Environment variable containing the API key */
envVar: string;
};
expectedTools: readonly string[];
};
/**
* Available MCP servers registry
*
* @remarks
* To add a new server:
* 1. Add entry to this object
* 2. Add corresponding API key to .env
* 3. Update docker-compose.yml to pass environment variable
*
* @public
*/
export const MCP_SERVERS = {
you: {
name: "ydc-server",
type: "http" as const,
url: "https://api.you.com/mcp",
auth: {
type: "bearer" as const,
envVar: "YDC_API_KEY",
},
expectedTools: ["you-search", "you-contents"],
},
// Future: Add more servers here
// exa: { name: "exa-server", type: "http", url: "...", auth: {...} },
// perplexity: { name: "perplexity-server", type: "http", url: "...", auth: {...} },
} as const;
/**
* Valid MCP server keys
*
* @public
*/
export type McpServerKey = keyof typeof MCP_SERVERS;