mcp-name-cheap/pyproject.toml
Claude Code f5e63c888d Initial commit: MCP Name Cheap server implementation
- Production-ready MCP server for Name Cheap API integration
- Domain management (registration, renewal, availability checking)
- DNS management (records, nameserver configuration)
- SSL certificate management and monitoring
- Account information and balance checking
- Smart identifier resolution for improved UX
- Comprehensive error handling with specific exception types
- 80%+ test coverage with unit, integration, and MCP tests
- CLI and MCP server interfaces
- FastMCP 2.10.5+ implementation with full MCP spec compliance

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-20 03:43:11 -06:00

192 lines
4.2 KiB
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mcp-namecheap"
version = "1.0.0"
description = "Production-ready MCP server for Name Cheap API integration"
authors = [
{name = "MCP Name Cheap Team", email = "dev@example.com"}
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.9"
keywords = ["mcp", "namecheap", "domains", "dns", "ssl", "fastmcp"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: Name Service (DNS)",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"fastmcp>=2.10.5",
"httpx>=0.25.0",
"pydantic>=2.5.0",
"xmltodict>=0.13.0",
"python-dotenv>=1.0.0",
"typing-extensions>=4.8.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"pre-commit>=3.4.0",
"build>=1.0.0",
"twine>=4.0.0",
]
test = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
]
[project.scripts]
mcp-namecheap = "mcp_namecheap.__main__:main"
[project.urls]
Homepage = "https://github.com/your-org/mcp-namecheap"
Documentation = "https://github.com/your-org/mcp-namecheap#readme"
Repository = "https://github.com/your-org/mcp-namecheap"
Issues = "https://github.com/your-org/mcp-namecheap/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_namecheap"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/README.md",
"/CLAUDE.md",
]
# Black configuration
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
# isort configuration
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["mcp_namecheap"]
# mypy configuration
[tool.mypy]
python_version = "3.9"
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.mypy.overrides]]
module = [
"xmltodict",
"pytest_mock",
]
ignore_missing_imports = true
# pytest configuration
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = ["tests"]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"mcp: MCP functionality tests",
"slow: Slow running tests",
]
asyncio_mode = "auto"
# Ruff configuration
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"ICN", # flake8-import-conventions
"PL", # pylint
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by black)
"PLR0913", # too many arguments
"PLR0912", # too many branches
"PLR2004", # magic value used in comparison
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # imported but unused
"tests/*" = ["ARG", "S101", "PLR2004"] # test-specific ignores
[tool.ruff.lint.isort]
known-first-party = ["mcp_namecheap"]
# coverage configuration
[tool.coverage.run]
source = ["src/mcp_namecheap"]
omit = [
"tests/*",
"*/test_*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]