(loc: Location)
| 62 | } |
| 63 | |
| 64 | detect(loc: Location): DetectionResult { |
| 65 | const file = mcpJsonPath(loc); |
| 66 | const config = readJsonFile(file); |
| 67 | const alreadyConfigured = !!config.mcpServers?.codegraph; |
| 68 | const installed = loc === 'global' |
| 69 | ? fs.existsSync(configDir('global')) || fs.existsSync(file) |
| 70 | : fs.existsSync(file) || fs.existsSync(configDir('local')); |
| 71 | return { installed, alreadyConfigured, configPath: file }; |
| 72 | } |
| 73 | |
| 74 | install(loc: Location, _opts: InstallOptions): WriteResult { |
| 75 | const files: WriteResult['files'] = []; |
nothing calls this directly
no test coverage detected