MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / removeCodeGraphMcpServer

Function removeCodeGraphMcpServer

src/installer/targets/hermes.ts:299–306  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

297}
298
299function 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
308function upsertCodeGraphToolset(content: string): string {
309 const lines = splitLines(content);

Callers 1

uninstallMethod · 0.85

Calls 4

splitLinesFunction · 0.85
topLevelRangeFunction · 0.85
childRangeFunction · 0.85
joinLinesFunction · 0.85

Tested by

no test coverage detected