[project]
name = "chuk-mcp-time"
version = "1.0.3"
description = "High-accuracy time oracle MCP server using NTP consensus and multiple time sources"
readme = "README.md"
requires-python = ">=3.11"
authors = [
{ name = "Christopher Hay", email = "chrishayuk@somejunkmailbox.com" }
]
license = { text = "MIT" }
keywords = ["mcp", "time", "ntp", "oracle", "consensus"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"chuk-mcp-server>=0.1.0",
"httpx>=0.27.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"tzdata>=2024.1",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.3.0",
"mypy>=1.8.0",
"bandit>=1.7.0",
]
[project.scripts]
chuk-mcp-time = "chuk_mcp_time.server:main"
[project.urls]
Homepage = "https://github.com/chuk-ai/chuk-mcp-time"
Repository = "https://github.com/chuk-ai/chuk-mcp-time"
Issues = "https://github.com/chuk-ai/chuk-mcp-time/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--cov=chuk_mcp_time",
"--cov-report=term-missing",
"--cov-report=html",
]
markers = [
"network: marks tests that require network access (deselect with '-m \"not network\"')",
]
[tool.coverage.run]
source = ["chuk_mcp_time"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_equality = true
strict_concatenate = true
[[tool.mypy.overrides]]
module = "chuk_mcp_server.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "chuk_mcp_time.*"
# Pydantic models with defaults cause false positives
disable_error_code = "call-arg"
[tool.bandit]
exclude_dirs = ["tests", "venv", ".venv"]
skips = ["B101"] # assert_used