[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "generate-image-sd15-mcp" 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", "sd-embed @ git+https://github.com/xhinker/sd_embed.git@4a47f71150a22942fa606fb741a1c971d95ba56f", "torch==2.14.0+cu132", "torchvision==0.29.0+cu132", "transformers>=4.45,<5", ] [project.scripts] generate-image-sd15-mcp = "mcp_sd15.cli:main" [dependency-groups] dev = [ "pyright>=1.1.390", "pytest>=8.3", "pytest-asyncio>=0.24", "ruff>=0.8", ] [tool.uv.sources] torch = { index = "pytorch-cu132" } torchvision = { index = "pytorch-cu132" } [[tool.uv.index]] name = "pytorch-cu132" url = "https://download.pytorch.org/whl/cu132" explicit = true [tool.hatch.build.targets.wheel] packages = ["src/mcp_sd15"] [tool.hatch.metadata] allow-direct-references = true [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"