Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(mcp-host): copy the dev GFS store fixture entry by entry

Mef1f0678048e
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index 5f37585e1..fdd0c8f29 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.593",
+ "version": "0.1.594",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.593",
+ "version": "0.1.594",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
diff --git a/mcp-host/package.json b/mcp-host/package.json
index 0884cccb3..7a4f1ff0c 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.593",
+ "version": "0.1.594",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/__tests__/fixtures/devGfsStoreFixture.ts b/mcp-host/src/__tests__/fixtures/devGfsStoreFixture.ts
index 29e115c2e..71e8815c5 100644
--- a/mcp-host/src/__tests__/fixtures/devGfsStoreFixture.ts
+++ b/mcp-host/src/__tests__/fixtures/devGfsStoreFixture.ts
@@ -102,7 +102,17 @@ export function loadDevStore(root: string, snapshot: DevSnapshot): DevStore {
const generation = readGeneration()
const source = path.join(FIXTURE, snapshot)
fs.mkdirSync(root, { recursive: true, mode: 0o700 })
- fs.cpSync(source, root, { recursive: true, errorOnExist: true, force: false })
+ // Node 24.15 (nodejs/node#61950) throws ERR_FS_CP_EEXIST when cp() copies a
+ // directory onto an existing one with errorOnExist and force disabled, and
+ // the Host root always exists. Copy the snapshot's entries one by one: the
+ // caller's root stays the root, and a root that already holds one of them
+ // still fails loudly instead of merging into it.
+ for (const entry of fs.readdirSync(source))
+ fs.cpSync(path.join(source, entry), path.join(root, entry), {
+ recursive: true,
+ errorOnExist: true,
+ force: false,
+ })
// Git keeps no modes: restore the ones the dev store wrote, deepest first so
// a 0700 directory never blocks its children.