MCPcopy
hub / github.com/colbymchenry/codegraph / tmpdirSocketPath

Function tmpdirSocketPath

src/mcp/daemon-paths.ts:51–53  ·  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

49 * path without talking to each other.
50 */
51function tmpdirSocketPath(projectRoot: string): string {
52 return path.join(os.tmpdir(), `codegraph-${projectHash(projectRoot)}.sock`);
53}
54
55/**
56 * Ordered socket / named-pipe path candidates the daemon should try to bind (and

Callers 1

Calls 2

projectHashFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected