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 for Node 24.22

Diego Zacarias9b9aaefe142d
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..da984aa66 100644
--- a/mcp-host/src/__tests__/fixtures/devGfsStoreFixture.ts
+++ b/mcp-host/src/__tests__/fixtures/devGfsStoreFixture.ts
@@ -102,7 +102,14 @@ 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 })
+ // Copy entry by entry: from Node 24.22, cpSync with errorOnExist rejects an
+ // existing destination root with ERR_FS_CP_EEXIST even when it is empty.
+ 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.