8112ff2f12
- FastMCP server with 4 tools: generate_image, list_available_models, get_generation_status, get_output_directory - ComfyUI REST API client (httpx) polling lifecycle - FLUX.1-schnell workflow JSON template - Dual output: TextContent (path + seed) + ImageContent (base64 PNG) - 14 passing pytest tests with respx HTTP mocking - ROCm/AMD RX 7900 XTX optimized setup in README - Ollama Linux migration path documented (future)
42 lines
867 B
TOML
42 lines
867 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "mcp-image-gen"
|
|
version = "0.1.0"
|
|
description = "MCP server for AI image generation via ComfyUI (FLUX, SDXL)"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = "MIT"
|
|
authors = [{name = "Patrick Plate", email = "patrickplate@gmx.de"}]
|
|
dependencies = [
|
|
"fastmcp>=2.0.0",
|
|
"httpx>=0.27.0",
|
|
"pillow>=10.0.0",
|
|
]
|
|
|
|
[tool.hatch.version]
|
|
path = "src/__init__.py"
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
include = ["/src", "/tests"]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
include = ["/src", "/tests"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = "test_*.py"
|
|
python_classes = "Test*"
|
|
python_functions = "test_*"
|
|
asyncio_mode = "auto"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"respx>=0.21.0",
|
|
"pillow>=10.0.0",
|
|
]
|