[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cargo-mcp"
version = "0.1.0"
description = "Model Context Protocol server for Cargo operations"
authors = [
{name = "Your Name", email = "your.email@example.com"},
]
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"mcp>=1.0.0",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-asyncio",
"black",
"ruff",
]
[project.scripts]
cargo-mcp = "cargo_mcp.server:cli_main"
[tool.hatch.build.targets.wheel]
packages = ["src/cargo_mcp"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/README.md",
]
[tool.black]
line-length = 88
target-version = ['py38']
[tool.ruff]
line-length = 88
target-version = "py38"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"N", # pep8-naming
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]