Align with mcp-time-tools: FastAPI Streamable HTTP MCP endpoint
This commit is contained in:
+3
-3
@@ -9,7 +9,7 @@
|
||||
# - Auth: Bearer (if DOCX_MCP_API_KEY is set)
|
||||
#
|
||||
# Environment:
|
||||
# DOCX_MCP_API_KEY - API key (Bearer or X-API-Key). Optional but recommended.
|
||||
# DOCX_MCP_API_KEY - API key (Bearer). Optional but recommended.
|
||||
# DOCX_MCP_HTTP_HOST - Bind host (default: 0.0.0.0)
|
||||
# DOCX_MCP_HTTP_PORT - Bind port (default: 3000)
|
||||
# DOCX_MCP_TEMPLATES_DIR - Templates directory (default: /templates)
|
||||
@@ -65,9 +65,9 @@ ENV DOCX_MCP_HTTP_HOST=0.0.0.0 \
|
||||
# Expose HTTP port (Streamable HTTP for OpenWebUI)
|
||||
EXPOSE 3000
|
||||
|
||||
# Health check (ensure module is importable)
|
||||
# Health check (ensure server module is importable)
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
||||
CMD python -c "from server import main; print('ok')" || exit 1
|
||||
CMD python -c "from server import make_app; print('ok')" || exit 1
|
||||
|
||||
# Default: Streamable HTTP for OpenWebUI MCP
|
||||
ENTRYPOINT ["python", "-m", "server"]
|
||||
|
||||
Reference in New Issue
Block a user