Commit graph servers/src/time/pyproject.toml
Author SHA1 Message Date
olaservo
53dbe83b7a fix(python): require mcp>=1.29.0,<2 in fetch, git, and time
mcp 2.0.0 renamed McpError to MCPError and replaced the low-level Server
decorators with constructor handlers. The three servers had no upper bound,
so a fresh uvx install has resolved 2.0.0 since 2026-07-28 and failed to
start: fetch and time raise ImportError on the McpError import, git raises
AttributeError on server.list_tools().

The floor moves to 1.29.0, the last 1.x release. The previous floors (1.0.0
for git, 1.1.3 for fetch, 1.23.0 for time) resolved versions affected by
GHSA-vj7q-gjh5-988w, GHSA-jpw9-pfvf-9f58, and GHSA-hvrp-rf83-w775.

Porting to the v2 SDK is tracked separately.

Closes #4560
Closes #4570
Closes #4580

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-18 08:26:30 -07:00
Bao
a72e93e503 docs: link Python packages to source 2026-07-02 06:39:31 +07:00
Koichi ITO
9c9813d9dc fix(time): Fix McpError constructor usage in time server
Fixes CI failures in PR #3220.

PR #3220 updated `mcp` library from 1.0.0 to 1.23.0, which caused test
failures due to a breaking change in `McpError` constructor API.

The `McpError` constructor now expects an `ErrorData` object instead of
a plain string message. This commit fixes the usage in `get_zoneinfo()`
function to use `ErrorData(code=INVALID_PARAMS, message=...)`.

```console
Error before fix:
  AttributeError: 'str' object has no attribute 'message'
```

Also updates `mcp` dependency to >=1.23.0 in pyproject.toml to ensure
compatibility with the new API.
2026-01-17 23:12:04 +09:00
Frederick Ros
cd88954e18 fix: resolve ZoneInfo error by using IANA-compliant local timezone
Replaced local timezone detection using tzinfo string (e.g. "CEST")
with tzlocal.get_localzone_name() to ensure a valid IANA time zone
(e.g. "Europe/Paris") is passed to ZoneInfo. This avoids runtime
errors on macOS and other systems that return non-IANA tz abbreviations.
2025-05-13 18:53:03 +02:00
David Soria Parra
e7e1c85058
python servers 0.6.2 2024-12-04 15:57:31 +00:00
David Soria Parra
2578d6f668
python servers 0.6.1 2024-11-29 18:00:23 +00:00
David Soria Parra
f86486984c
python servers 0.6.0 2024-11-29 17:54:40 +00:00
David Soria Parra
bccd33f7a1
fix time server 2024-11-29 11:29:23 +00:00
Mariusz Korzekwa
d37ce3cc51 Fix uv lock for time-server, update Readme 2024-11-28 22:18:40 +01:00
Mariusz Korzekwa
740b744ea8 Clean time server implementation 2024-11-28 22:12:09 +01:00
Mariusz Korzekwa
122ca1aaa5 Update pyproject of time server, remove time server temporary files 2024-11-28 22:12:09 +01:00
Mariusz Korzekwa
b7ca691573 Add initial time server 2024-11-28 22:12:09 +01:00