feat: configurable timezone for docker in time server

Fixes #639

Add support for configurable timezone in Docker for `time` server.

* Update `src/time/Dockerfile` to include `LOCAL_TIMEZONE` environment variable.
* Set default timezone to "UTC" in `src/time/Dockerfile`.
* Modify `ENTRYPOINT` in `src/time/Dockerfile` to include `--local-timezone` argument.
* Update `src/time/README.md` to include instructions on setting the timezone using `LOCAL_TIMEZONE` environment variable.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/modelcontextprotocol/servers/issues/639?shareId=XXXX-XXXX-XXXX-XXXX).
This commit is contained in:
S1M0N38
2025-02-20 00:51:50 +01:00
parent e055e18f8c
commit f3e14698c9
3 changed files with 6 additions and 22 deletions

View File

@@ -61,7 +61,7 @@ Add to your Claude settings:
"mcpServers": {
"time": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/time"]
"args": ["run", "-i", "--rm", "-e", "LOCAL_TIMEZONE", "mcp/time"]
}
}
```