MCPcopy Create free account
hub / github.com/tiann/hapi / buildMcpServerConfig

Function buildMcpServerConfig

cli/src/codex/utils/appServerConfig.ts:58–70  ·  view source on GitHub ↗
(mcpServers: McpServersConfig)

Source from the content-addressed store, hash-verified

56}
57
58function 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
72function resolveInstructions(args: {
73 baseInstructions?: string;

Callers 1

buildThreadStartParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected