feat: bundle build script + default API_BASE_URL to local bridge
scripts/build-bundle.sh cross-builds whatsapp-mcp + whatsapp-bridge (stripped, darwin/arm64) into the Neuron app's bundled connector-servers dir. tools.go: default API_BASE_URL to http://localhost:8080/api (was a hardcoded LAN IP) so the MCP finds the connector-launched loopback bridge. Validated: stripped bundled whatsapp-mcp exposes 14 tools incl send_message. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,9 @@ import (
|
||||
var apiBaseURL = readApiBaseURL()
|
||||
|
||||
func readApiBaseURL() string {
|
||||
if v := ReadEnv("API_BASE_URL", "http://192.168.178.119:30015/api"); v != "" {
|
||||
// Default to the local bridge. The connector launches the bridge on loopback :8080; a dev/LAN
|
||||
// override can still be supplied via API_BASE_URL.
|
||||
if v := ReadEnv("API_BASE_URL", "http://localhost:8080/api"); v != "" {
|
||||
return v
|
||||
}
|
||||
const fallback = "http://localhost:8080/api"
|
||||
|
||||
Reference in New Issue
Block a user