mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 08:13:24 +02:00
Merge pull request #640 from S1M0N38/feat-configurable-timezone
feat: configurable timezone for docker in `time` server
This commit is contained in:
@@ -32,5 +32,8 @@ COPY --from=uv --chown=app:app /app/.venv /app/.venv
|
|||||||
# Place executables in the environment at the front of the path
|
# Place executables in the environment at the front of the path
|
||||||
ENV PATH="/app/.venv/bin:$PATH"
|
ENV PATH="/app/.venv/bin:$PATH"
|
||||||
|
|
||||||
# when running the container, add --db-path and a bind mount to the host's db file
|
# Set the LOCAL_TIMEZONE environment variable
|
||||||
ENTRYPOINT ["mcp-server-time"]
|
ENV LOCAL_TIMEZONE=${LOCAL_TIMEZONE:-"UTC"}
|
||||||
|
|
||||||
|
# when running the container, add --local-timezone and a bind mount to the host's db file
|
||||||
|
ENTRYPOINT ["mcp-server-time", "--local-timezone", "${LOCAL_TIMEZONE}"]
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Add to your Claude settings:
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"time": {
|
"time": {
|
||||||
"command": "docker",
|
"command": "docker",
|
||||||
"args": ["run", "-i", "--rm", "mcp/time"]
|
"args": ["run", "-i", "--rm", "-e", "LOCAL_TIMEZONE", "mcp/time"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user