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

Function tmpdirSocketPath

src/mcp/daemon-paths.ts:59–61  ·  view source on GitHub ↗

* The deterministic tmpdir socket path for `projectRoot` — the fallback used * when the in-project location can't host a socket (too long, or an FS that * doesn't support AF_UNIX). Hash keeps it project-scoped, and being purely a * function of the root means the daemon and the proxy compute the i

(projectRoot: string)

Source from the content-addressed store, hash-verified

57 * path without talking to each other.
58 */
59function tmpdirSocketPath(projectRoot: string): string {
60 return path.join(os.tmpdir(), `codegraph-${projectHash(projectRoot)}.sock`);
61}
62
63/**
64 * Ordered socket / named-pipe path candidates the daemon should try to bind (and

Callers 1

Calls 2

projectHashFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected