[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ckan-mcp"
version = "0.1.0"
description = "CKAN Open Data MCP Server - A Model Context Protocol server for querying CKAN's CKAN open data portal"
authors = [
{name = "CKAN MCP Team", email = "oss@mapleinsights.ca"}
]
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.11"
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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"mcp>=1.0.0",
"pydantic>=2.5.0",
"aiohttp>=3.9.0",
"async-timeout>=4.0.0",
"starlette>=0.37.0",
"uvicorn>=0.30.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.7.0",
"asgi-lifespan>=2.1.0",
]
examples = [
"python-dotenv>=1.0.0",
]
[project.scripts]
ckan-mcp = "ckan_mcp.main:cli"
[tool.hatch.build]
include = [
"src/ckan_mcp/data/ckan_config_selection.json",
]
[tool.hatch.build.targets.wheel]
packages = ["src/ckan_mcp"]
[tool.black]
line-length = 100
target-version = ['py311']
[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 black
"B008", # do not perform function calls in argument defaults
]
[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
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"smoke: lightweight smoke checks covering end-to-end behaviors",
"integration: tests that hit live CKAN portals or HTTP transport surfaces",
]