From 00b6924ceabd63384c7642442ec56ac9bace2719 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Sat, 18 Apr 2026 11:18:01 +0530 Subject: [PATCH] fix(server): bind server to all interfaces for Docker compatibility --- src/mcp-server-http.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mcp-server-http.ts b/src/mcp-server-http.ts index 1f99083..f14799b 100644 --- a/src/mcp-server-http.ts +++ b/src/mcp-server-http.ts @@ -277,14 +277,15 @@ export async function main() { }); // Start the server - console.log(`Ask262 MCP HTTP Server running on http://localhost:${PORT}`); - console.log(`MCP endpoint: POST http://localhost:${PORT}/mcp`); - console.log(`Health check: GET http://localhost:${PORT}/health`); + console.log(`Ask262 MCP HTTP Server running on http://0.0.0.0:${PORT}`); + console.log(`MCP endpoint: POST http://0.0.0.0:${PORT}/mcp`); + console.log(`Health check: GET http://0.0.0.0:${PORT}/health`); console.log(`Mode: Stateless JSON (non-streaming)`); serve({ fetch: app.fetch, port: PORT, + hostname: "0.0.0.0", // Bind to all interfaces for container/Docker compatibility }); }