Default to SSE and allow non-local hosts

This commit is contained in:
2026-01-15 03:12:23 -05:00
parent ed8efca603
commit 08d9ce69e3
2 changed files with 9 additions and 4 deletions

View File

@@ -22,11 +22,13 @@ python -m venv .venv
. .venv/bin/activate
pip install -e .
# Run the MCP server (streamable HTTP)
export MCP_TRANSPORT=streamable-http
# Run the MCP server (SSE, recommended for Claude Code)
export MCP_TRANSPORT=sse
export MCP_HOST=127.0.0.1
export MCP_PORT=8000
export MCP_PORT=8150
export LIGHTRAG_BASE_URL=http://127.0.0.1:9621
export FASTMCP_TRANSPORT_SECURITY__ALLOWED_HOSTS='["*:*"]'
export FASTMCP_TRANSPORT_SECURITY__ALLOWED_ORIGINS='["http://*","https://*"]'
lightrag-mcp
# Smoke test (health + optional retrieval)

View File

@@ -3,12 +3,15 @@ services:
build:
context: .
image: git.baked.rocks/vasceannie/lightrag-mcp:latest
network_mode: host
environment:
MCP_TRANSPORT: sse
MCP_HOST: 0.0.0.0
MCP_PORT: 8150
LIGHTRAG_BASE_URL: http://host.docker.internal:9621
FASTMCP_TRANSPORT_SECURITY__ALLOWED_HOSTS: '["*:*"]'
FASTMCP_TRANSPORT_SECURITY__ALLOWED_ORIGINS: '["http://*","https://*"]'
ports:
- "8150:8150"
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped