Skip to content

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

TypeScript

fix(mcp-host): log a temporary meta.json the store cannot remove

Alfredo Lopezada0819e1070
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index ae3e7054f..994f2ae00 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.524",
+ "version": "0.1.525",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.524",
+ "version": "0.1.525",
"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 31949ce8f..ee3e5cf46 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.524",
+ "version": "0.1.525",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/internalTools/gfsDownloadStore.ts b/mcp-host/src/internalTools/gfsDownloadStore.ts
index 0b7d09efb..70ba1da93 100644
--- a/mcp-host/src/internalTools/gfsDownloadStore.ts
+++ b/mcp-host/src/internalTools/gfsDownloadStore.ts
@@ -603,7 +603,16 @@ export class GfsDownloadStore {
await fs.rename(temporary, metaPath)
temporaryExists = false
} finally {
- if (temporaryExists) await fs.rm(temporary, { force: true }).catch(() => undefined)
+ // Runs only while a publication error is propagating; that error is the
+ // one the caller sees. A leftover temporary file goes with the directory
+ // when the caller's fail() or the sweep removes it.
+ if (temporaryExists)
+ await fs.rm(temporary, { force: true }).catch((error: unknown) => {
+ logger.warn(
+ { component: GFS_DOWNLOAD_STORE_LOG_COMPONENT, code: errorCode(error) },
+ 'GFS download store could not remove a temporary meta.json after a failed publish; the directory removal clears it'
+ )
+ })
}
// The last cancellation point: once source exists the download is complete.
this.assertPublicationOpen(publication)