[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "mcp-sd15" version = "0.1.0" description = "MCP server for local Stable Diffusion 1.x image generation" readme = "README.md" requires-python = ">=3.11,<3.12" dependencies = [ "accelerate>=1.1", "controlnet-aux>=0.0.10", "diffusers>=0.35", "mcp>=2,<3", "numpy>=1.26,<3", "opencv-python-headless>=4.10", "peft>=0.13", "pillow>=10.4", "safetensors>=0.4", "torch>=2.4", "transformers>=4.45", ] [project.scripts] mcp-sd15 = "mcp_sd15.cli:main" [dependency-groups] dev = [ "pyright>=1.1.390", "pytest>=8.3", "pytest-asyncio>=0.24", "ruff>=0.8", ] [tool.hatch.build.targets.wheel] packages = ["src/mcp_sd15"] [tool.pytest.ini_options] addopts = "-ra" testpaths = ["tests"] asyncio_mode = "auto" [tool.ruff] line-length = 100 target-version = "py311" [tool.ruff.lint] select = ["E", "F", "I", "UP", "B", "SIM", "RUF"] [tool.pyright] pythonVersion = "3.11" typeCheckingMode = "standard" include = ["src", "tests"] venvPath = "." venv = ".venv"