MCPcopy Create free account
hub / github.com/cortexkit/magic-context / rpcPortDir

Function rpcPortDir

packages/plugin/src/shared/rpc-utils.ts:29–31  ·  view source on GitHub ↗
(storageDir: string, directory: string)

Source from the content-addressed store, hash-verified

27
28/** Directory containing per-process RPC discovery files for a project. */
29export function rpcPortDir(storageDir: string, directory: string): string {
30 return join(storageDir, "rpc", projectHash(directory));
31}
32
33/** Per-process RPC port file path. */
34export function rpcPortFilePath(storageDir: string, directory: string, pid = process.pid): string {

Callers 4

constructorMethod · 0.90
constructorMethod · 0.90
rpcPortFilePathFunction · 0.85
legacyRpcPortFilePathFunction · 0.85

Calls 1

projectHashFunction · 0.85

Tested by

no test coverage detected