[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "halo-mcp-server"
dynamic = ["version"]
description = "MCP for Halo blog system - AI-powered content management"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Halo MCP Contributors"}
]
keywords = ["mcp", "halo", "blog", "ai", "claude", "content-management"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System",
]
dependencies = [
"mcp>=0.9.0",
"httpx>=0.25.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"python-dotenv>=1.0.0",
"loguru>=0.7.0",
"aiofiles>=23.0.0",
"Pillow>=10.0.0",
"python-slugify>=8.0.0",
"markdown>=3.5.0",
"markdown-it-py>=4.0.0",
"mdit-py-plugins>=0.4.0",
"linkify-it-py>=2.0.0",
"mdit-py-toc>=0.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"black>=23.7.0",
"isort>=5.12.0",
"mypy>=1.5.0",
"ruff>=0.1.2",
"pre-commit>=3.3.0",
]
[project.urls]
Homepage = "https://github.com/Huangwh826/halo-mcp-server"
Documentation = "https://github.com/Huangwh826/halo-mcp-server"
Repository = "https://github.com/Huangwh826/halo-mcp-server"
Issues = "https://github.com/Huangwh826/halo-mcp-server/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = {file = "version.txt"}
[tool.black]
line-length = 100
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.mypy]
python_version = "3.10"
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
[[tool.mypy.overrides]]
module = "mcp.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = "-v --cov=halo-mcp-server --cov-report=term-missing --cov-report=html"
[tool.ruff]
line-length = 100
target-version = "py310"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
]
[tool.coverage.run]
source = ["src"]
omit = ["tests/*", "*/site-packages/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]