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

Function serve

__tests__/ui-entrypoints-api.test.ts:82–86  ·  view source on GitHub ↗
(root: string, dir: string, cg: CodeGraph)

Source from the content-addressed store, hash-verified

80}
81
82async function serve(root: string, dir: string, cg: CodeGraph): Promise<Instance> {
83 const api = createGraphApi({ projectRoot: root });
84 const server = await startUiServer({ projectRoot: root, port: 0, api: api.handler });
85 return { dir, root, cg, api, server };
86}
87
88function write(root: string, rel: string, body: string): void {
89 const full = path.join(root, rel);

Callers 1

Calls 2

createGraphApiFunction · 0.90
startUiServerFunction · 0.90

Tested by

no test coverage detected