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)
|
# - Auth: Bearer (if DOCX_MCP_API_KEY is set)
|
||||||
#
|
#
|
||||||
# Environment:
|
# 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_HOST - Bind host (default: 0.0.0.0)
|
||||||
# DOCX_MCP_HTTP_PORT - Bind port (default: 3000)
|
# DOCX_MCP_HTTP_PORT - Bind port (default: 3000)
|
||||||
# DOCX_MCP_TEMPLATES_DIR - Templates directory (default: /templates)
|
# 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 HTTP port (Streamable HTTP for OpenWebUI)
|
||||||
EXPOSE 3000
|
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 \
|
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
|
# Default: Streamable HTTP for OpenWebUI MCP
|
||||||
ENTRYPOINT ["python", "-m", "server"]
|
ENTRYPOINT ["python", "-m", "server"]
|
||||||
|
|||||||
+2
-2
@@ -8,14 +8,14 @@ version = "0.1.0"
|
|||||||
description = "Python MCP server for DOCX document manipulation"
|
description = "Python MCP server for DOCX document manipulation"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"mcp>=1.0.0",
|
"fastapi>=0.115.0",
|
||||||
|
"uvicorn[standard]>=0.24.0",
|
||||||
"python-docx>=1.1.0",
|
"python-docx>=1.1.0",
|
||||||
"Pillow>=10.0.0",
|
"Pillow>=10.0.0",
|
||||||
"markdown>=3.5",
|
"markdown>=3.5",
|
||||||
"html5lib>=1.1",
|
"html5lib>=1.1",
|
||||||
"regex>=2024.0.0",
|
"regex>=2024.0.0",
|
||||||
"aiofiles>=24.0.0",
|
"aiofiles>=24.0.0",
|
||||||
"uvicorn>=0.24.0",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|||||||
+779
-461
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user