docker tools flag
This commit is contained in:
@@ -30,4 +30,9 @@ EXPOSE ${PORT:-8000}
|
|||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
||||||
CMD sh -c 'curl -f http://localhost:${PORT:-8000}/health || exit 1'
|
CMD sh -c 'curl -f http://localhost:${PORT:-8000}/health || exit 1'
|
||||||
|
|
||||||
CMD ["uv", "run", "main.py", "--transport", "streamable-http"]
|
# Set environment variables for Python startup args
|
||||||
|
ENV TOOL_TIER=""
|
||||||
|
ENV TOOLS=""
|
||||||
|
|
||||||
|
# Use shell form to expand environment variables
|
||||||
|
CMD uv run main.py --transport streamable-http ${TOOL_TIER:+--tool-tier "$TOOL_TIER"} ${TOOLS:+--tools $TOOLS}
|
||||||
|
|||||||
@@ -532,6 +532,10 @@ uv run main.py --tool-tier complete # ○ All available tools
|
|||||||
docker build -t workspace-mcp .
|
docker build -t workspace-mcp .
|
||||||
docker run -p 8000:8000 -v $(pwd):/app \
|
docker run -p 8000:8000 -v $(pwd):/app \
|
||||||
workspace-mcp --transport streamable-http
|
workspace-mcp --transport streamable-http
|
||||||
|
|
||||||
|
# With tool selection via environment variables
|
||||||
|
docker run -e TOOL_TIER=core workspace-mcp
|
||||||
|
docker run -e TOOLS="gmail drive calendar" workspace-mcp
|
||||||
```
|
```
|
||||||
|
|
||||||
**Available Services**: `gmail` • `drive` • `calendar` • `docs` • `sheets` • `forms` • `tasks` • `chat` • `search`
|
**Available Services**: `gmail` • `drive` • `calendar` • `docs` • `sheets` • `forms` • `tasks` • `chat` • `search`
|
||||||
|
|||||||
Reference in New Issue
Block a user