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.
This commit is contained in:
Koichi ITO
2026-01-17 09:08:13 +09:00
parent f1eedf2b7e
commit 9c9813d9dc
3 changed files with 643 additions and 183 deletions

818
src/time/uv.lock generated

File diff suppressed because it is too large Load Diff