mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 00:03:23 +02:00
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.
40 lines
974 B
TOML
40 lines
974 B
TOML
[project]
|
|
name = "mcp-server-time"
|
|
version = "0.6.2"
|
|
description = "A Model Context Protocol server providing tools for time queries and timezone conversions for LLMs"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
authors = [
|
|
{ name = "Mariusz 'maledorak' Korzekwa", email = "mariusz@korzekwa.dev" },
|
|
]
|
|
keywords = ["time", "timezone", "mcp", "llm"]
|
|
license = { text = "MIT" }
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
]
|
|
dependencies = [
|
|
"mcp>=1.23.0",
|
|
"pydantic>=2.0.0",
|
|
"tzdata>=2024.2",
|
|
"tzlocal>=5.3.1",
|
|
]
|
|
|
|
[project.scripts]
|
|
mcp-server-time = "mcp_server_time:main"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.uv]
|
|
dev-dependencies = [
|
|
"freezegun>=1.5.1",
|
|
"pyright>=1.1.389",
|
|
"pytest>=8.3.3",
|
|
"ruff>=0.8.1",
|
|
]
|