MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / readSettingsServers

Function readSettingsServers

src/mcp/config.ts:138–142  ·  view source on GitHub ↗

Read `mcpServers` from a settings.json file (user or local scope).

(filePath: string)

Source from the content-addressed store, hash-verified

136
137/** Read `mcpServers` from a settings.json file (user or local scope). */
138function readSettingsServers(filePath: string): Record<string, McpServerConfig> {
139 const json = readJson(filePath)
140 if (!json) return {}
141 return normalizeServers(json.mcpServers)
142}
143
144/** Read a `.mcp.json` file (project scope). */
145function readMcpJson(filePath: string): Record<string, McpServerConfig> {

Callers 1

loadMcpConfigFunction · 0.85

Calls 2

normalizeServersFunction · 0.85
readJsonFunction · 0.70

Tested by

no test coverage detected