Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(mcp-host): cover the synchronous revoke fence when authoritative is absent
Alfredo Lopezbd6cbe023a8e
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex 65762d649..7032fcdc4 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.216",+ "version": "0.1.217","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.216",+ "version": "0.1.217","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex 496b24415..ffc6d6388 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.216",+ "version": "0.1.217","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__/main.mcpInitialization.test.ts b/mcp-host/src/__tests__/main.mcpInitialization.test.tsindex a4e13588b..c90bad869 100644--- a/mcp-host/src/__tests__/main.mcpInitialization.test.ts+++ b/mcp-host/src/__tests__/main.mcpInitialization.test.ts@@ -1613,6 +1613,15 @@ describe('reconcileAuthoritativeMcpSnapshot', () => {status: { deployed: true, ready: false, authoritative: true },}),],+ // Absent `authoritative` must keep the legacy fail-closed contract on the+ // synchronous revoke path too. Without this row the condition can be+ // narrowed to `authoritative === true` and every other test still passes.+ [+ 'not-ready without an authoritative field',+ readyServer({+ status: { deployed: false, ready: false, message: 'Deployment not ready' },+ }),+ ],])('synchronously detaches a connected %s server before asynchronous reconciliation',async (_reason, next) => {