(mcpServers: McpServersConfig)
| 56 | } |
| 57 | |
| 58 | function buildMcpServerConfig(mcpServers: McpServersConfig): Record<string, unknown> { |
| 59 | const config: Record<string, unknown> = {}; |
| 60 | |
| 61 | for (const [name, server] of Object.entries(mcpServers)) { |
| 62 | config[`mcp_servers.${name}`] = { |
| 63 | command: server.command, |
| 64 | args: server.args, |
| 65 | ...(server.tools ? { tools: server.tools } : {}) |
| 66 | }; |
| 67 | } |
| 68 | |
| 69 | return config; |
| 70 | } |
| 71 | |
| 72 | function resolveInstructions(args: { |
| 73 | baseInstructions?: string; |
no outgoing calls
no test coverage detected