fix: bind HTTP server to 0.0.0.0 instead of 127.0.0.1 for external access
Build and Push Docker Image / build (push) Successful in 21s
Build and Push Docker Image / build (push) Successful in 21s
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
678c84ebd3
commit
01aebf9e02
1 file changed
+2
-2
+2
-2
@@ -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 <string>',
|
||||
'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 <origins...>',
|
||||
|
||||
Reference in new issue
Block a user