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

Function renderCodeGraphServer

src/installer/targets/hermes.ts:279–293  ·  view source on GitHub ↗

The entry CodeGraph writes into a new install, with its key at `indent` spaces.

(indent: number)

Source from the content-addressed store, hash-verified

277
278/** The entry CodeGraph writes into a new install, with its key at `indent` spaces. */
279function renderCodeGraphServer(indent: number): string[] {
280 const a = ' '.repeat(indent);
281 const b = ' '.repeat(indent * 2);
282 const c = ' '.repeat(indent * 3);
283 return [
284 `${a}codegraph:`,
285 `${b}command: codegraph`,
286 `${b}args:`,
287 `${c}- serve`,
288 `${c}- --mcp`,
289 `${b}timeout: 120`,
290 `${b}connect_timeout: 60`,
291 `${b}enabled: true`,
292 ];
293}
294
295/**
296 * Where `mcp_servers.codegraph` is written, in any form: a block or a

Callers 2

printConfigMethod · 0.85
upsertCodeGraphServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected