Align with mcp-time-tools: FastAPI Streamable HTTP MCP endpoint

This commit is contained in:
2026-06-13 17:02:18 +00:00
parent 57a225b749
commit 205174dfb3
3 changed files with 786 additions and 468 deletions
+3 -3
View File
@@ -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"]