Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(mcp-host): bind the workflowRouter test server to 127.0.0.1
Alfredo Lopezaedd5feaf334
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.jsonindex dbe52f49f..acd624289 100644--- a/mcp-host/package-lock.json+++ b/mcp-host/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-mcp-host",- "version": "0.1.219",+ "version": "0.1.220","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-mcp-host",- "version": "0.1.219",+ "version": "0.1.220","license": "SEE LICENSE IN LICENSE","dependencies": {"@anthropic-ai/sdk": "^0.32.0",diff --git a/mcp-host/package.json b/mcp-host/package.jsonindex ee3cf627d..576ac3fa7 100644--- a/mcp-host/package.json+++ b/mcp-host/package.json@@ -1,6 +1,6 @@{"name": "clerum-mcp-host",- "version": "0.1.219",+ "version": "0.1.220","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__/workflow/workflowRouter.test.ts b/mcp-host/src/__tests__/workflow/workflowRouter.test.tsindex 99dd7ca44..8c978bc6e 100644--- a/mcp-host/src/__tests__/workflow/workflowRouter.test.ts+++ b/mcp-host/src/__tests__/workflow/workflowRouter.test.ts@@ -92,7 +92,13 @@ async function createTestApp(app.use('/api/v1/workflow', createWorkflowRouter(service as never))return new Promise(resolve => {- const server = app.listen(0, () => {+ // Bind to 127.0.0.1 explicitly, not the wildcard listen(0). macOS's+ // ephemeral allocator can hand a wildcard bind a port a daemon (Docker,+ // VS Code) already holds on 127.0.0.1, and the kernel routes loopback to+ // the more-specific bind — so this test's fetch would reach that foreign+ // process and see its response instead of ours. A specific bind cannot be+ // handed an occupied port, which removes the flake at its source.+ const server = app.listen(0, '127.0.0.1', () => {const addr = server.address() as AddressInforesolve({ baseUrl: `http://127.0.0.1:${addr.port}`, server })})