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"]
+2 -2
View File
@@ -8,14 +8,14 @@ version = "0.1.0"
description = "Python MCP server for DOCX document manipulation"
requires-python = ">=3.10"
dependencies = [
"mcp>=1.0.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.24.0",
"python-docx>=1.1.0",
"Pillow>=10.0.0",
"markdown>=3.5",
"html5lib>=1.1",
"regex>=2024.0.0",
"aiofiles>=24.0.0",
"uvicorn>=0.24.0",
]
[project.scripts]
+781 -463
View File
File diff suppressed because it is too large Load Diff