Read a settings.json file, returning the full object (not just mcpServers).
(filePath: string)
| 210 | |
| 211 | /** Read a settings.json file, returning the full object (not just mcpServers). */ |
| 212 | function readFullSettings(filePath: string): Record<string, unknown> { |
| 213 | return readJson(filePath) ?? {} |
| 214 | } |
| 215 | |
| 216 | /** Write a settings.json file, preserving existing keys. */ |
| 217 | function writeFullSettings(filePath: string, data: Record<string, unknown>): void { |
no test coverage detected