(content: string)
| 297 | } |
| 298 | |
| 299 | function removeCodeGraphMcpServer(content: string): string { |
| 300 | const lines = splitLines(content); |
| 301 | const parent = topLevelRange(lines, 'mcp_servers'); |
| 302 | const child = parent ? childRange(lines, parent, 'codegraph') : null; |
| 303 | if (!child) return content; |
| 304 | lines.splice(child.start, child.end - child.start); |
| 305 | return joinLines(lines); |
| 306 | } |
| 307 | |
| 308 | function upsertCodeGraphToolset(content: string): string { |
| 309 | const lines = splitLines(content); |
no test coverage detected