Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
[build-system]
requires = ["setuptools>=65.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mcp-kicad"
version = "2.1.0"
description = "MCP server for KiCad PCB design automation with fabrication support"
authors = [{name = "Pablo Monte", email = "pablobustos@gmail.com"}]
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = ["mcp", "kicad", "pcb", "eda", "automation", "fabrication", "ai"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Manufacturing",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"mcp>=1.0.0,<2.0.0",
"anthropic>=0.40.0,<1.0.0",
"python-dotenv>=1.0.0,<2.0.0",
"pydantic>=2.0.0,<3.0.0",
"pydantic-settings>=2.0.0,<3.0.0",
"structlog>=24.0.0,<25.0.0",
]
[project.optional-dependencies]
dev = [
"black>=24.8.0",
"ruff>=0.1.0",
"mypy>=1.11.0",
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"pytest-asyncio>=0.23.0",
"pytest-mock>=3.12.0",
"pytest-timeout>=2.2.0",
"pre-commit>=3.8.0",
"safety>=3.0.0",
"bandit>=1.7.0",
]
imaging = [
"pillow>=10.0.0,<11.0.0",
]
all = [
"mcp-kicad[dev,imaging]",
]
[project.urls]
Homepage = "https://github.com/Pablomonte/MCP-KiCad"
Documentation = "https://github.com/Pablomonte/MCP-KiCad#readme"
Repository = "https://github.com/Pablomonte/MCP-KiCad"
Issues = "https://github.com/Pablomonte/MCP-KiCad/issues"
[project.scripts]
mcp-kicad = "mcp_kicad.server.extended:main"
mcp-kicad-basic = "mcp_kicad.server.basic:main"
mcp-kicad-client = "mcp_kicad.client.claude:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["mcp_kicad*"]
[tool.setuptools.package-data]
mcp_kicad = ["py.typed"]
# Black configuration
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
# Ruff configuration (alternative to flake8)
[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
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by black)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] # unused imports
"tests/*" = ["F401", "F811"] # allow test redefinitions
# MyPy configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_any_generics = false
check_untyped_defs = true
no_implicit_reexport = true
strict_equality = true
show_error_codes = true
show_error_context = true
[[tool.mypy.overrides]]
module = "pcbnew.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "anthropic.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mcp.*"
ignore_missing_imports = true
# Pytest configuration
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = [
"--strict-markers",
"--strict-config",
"--cov=mcp_kicad",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
"--cov-fail-under=40",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
# Coverage configuration
[tool.coverage.run]
source = ["mcp_kicad"]
omit = [
"tests/*",
"venv/*",
"*/__init__.py",
"*/conftest.py",
]
branch = true
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.coverage.html]
directory = "htmlcov"
# Bandit security configuration
[tool.bandit]
exclude_dirs = ["tests", "venv"]
skips = ["B101"] # Skip assert_used in tests
723dc76daThis file is pinned to the selected release. Download the original to open it in your design tool.