feat(mcp-server): add multi-transport support (stdio / SSE / HTTP)

This commit is contained in:
mileslai
2026-05-26 14:48:41 +08:00
committed by lyingbug
parent 00af694c52
commit e9a242c25f
6 changed files with 531 additions and 80 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN pip install --no-cache-dir -e .
ENV MCP_HOST=0.0.0.0
ENV MCP_PORT=8000
ENV WEKNORA_BASE_URL=http://app:8080/api/v1
EXPOSE 8000
CMD ["weknora-mcp-server", "--transport", "http", "--host", "0.0.0.0", "--port", "8000"]