From 01aebf9e027629ad75eb31f3a08c3b9d41d504bb Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Mon, 19 Oct 2026 18:54:08 +0100 Subject: [PATCH] fix: bind HTTP server to 0.0.0.0 instead of 127.0.0.1 for external access The MCP server was only listening on localhost (127.0.0.1), making it unreachable from the Kubernetes service. Changed default host binding to 0.0.0.0 to accept traffic from all interfaces, allowing ingress routing. Co-Authored-By: Claude Haiku 4.5 --- src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 9bc681c..73e142a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -32,7 +32,7 @@ type Configuration = { const state: Configuration & { ready: boolean } = { transport: 'stdio', port: 8080, - host: '127.0.0.1', + host: '0.0.0.0', braveApiKey: process.env.BRAVE_API_KEY ?? '', loggingLevel: 'info', ready: false, @@ -81,7 +81,7 @@ export function getOptions(): Configuration | false { .option( '--host ', 'desired host for HTTP transport', - process.env.BRAVE_MCP_HOST ?? '127.0.0.1' + process.env.BRAVE_MCP_HOST ?? '0.0.0.0' ) .option( '--allowed-origins ',