From 08d9ce69e39cf5e18c4e8f624b90f580a8adae64 Mon Sep 17 00:00:00 2001 From: Travis Vasceannie Date: Thu, 15 Jan 2026 03:12:23 -0500 Subject: [PATCH] Default to SSE and allow non-local hosts --- README.md | 8 +++++--- docker-compose.yml | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4056b41..1c0e405 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/docker-compose.yml b/docker-compose.yml index 0c4938a..c1b0109 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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