Read `mcpServers` from a settings.json file (user or local scope).
(filePath: string)
| 136 | |
| 137 | /** Read `mcpServers` from a settings.json file (user or local scope). */ |
| 138 | function 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). */ |
| 145 | function readMcpJson(filePath: string): Record<string, McpServerConfig> { |
no test coverage detected