Default to SSE and allow non-local hosts
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user