Fix MCP_ALLOWED_* envs to JSON list format

This commit is contained in:
2026-01-15 03:29:27 -05:00
parent b163333c9f
commit b8a30dcf7f
2 changed files with 4 additions and 4 deletions

View File

@@ -28,8 +28,8 @@ export MCP_HOST=127.0.0.1
export MCP_PORT=8150
export LIGHTRAG_BASE_URL=http://127.0.0.1:9621
export MCP_DISABLE_DNS_REBINDING=true
export MCP_ALLOWED_HOSTS="192.168.50.185:*,192.168.50.151:*"
export MCP_ALLOWED_ORIGINS="http://192.168.50.185:*,http://192.168.50.151:*"
export MCP_ALLOWED_HOSTS='["192.168.50.185:*","192.168.50.151:*"]'
export MCP_ALLOWED_ORIGINS='["http://192.168.50.185:*","http://192.168.50.151:*"]'
lightrag-mcp
# Smoke test (health + optional retrieval)

View File

@@ -8,8 +8,8 @@ services:
MCP_HOST: 0.0.0.0
MCP_PORT: 8150
MCP_DISABLE_DNS_REBINDING: "true"
MCP_ALLOWED_HOSTS: "192.168.50.185:*,192.168.50.151:*"
MCP_ALLOWED_ORIGINS: "http://192.168.50.185:*,http://192.168.50.151:*"
MCP_ALLOWED_HOSTS: '["192.168.50.185:*","192.168.50.151:*"]'
MCP_ALLOWED_ORIGINS: '["http://192.168.50.185:*","http://192.168.50.151:*"]'
LIGHTRAG_BASE_URL: http://host.docker.internal:9621
ports:
- "8150:8150"