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

Function isolateDb

packages/plugin/src/plugin/tool-registry.test.ts:28–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26});
27
28function isolateDb(): void {
29 const dir = mkdtempSync(join(tmpdir(), "tool-registry-"));
30 tempDirs.push(dir);
31 process.env.XDG_DATA_HOME = dir;
32}
33
34// createToolRegistry only reads ctx.directory; the rest of PluginContext is
35// unused, so a minimal stub is sufficient.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected