[project]
name = "comfyui-mcp-server"
version = "0.1.0"
description = "MCP server for ComfyUI workflow generation and asset management"
authors = [
{ name = "jaewilson07" }
]
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
dependencies = [
"httpx>=0.27.0",
"fastmcp>=3.0.0b1",
"pillow>=10.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-httpx>=0.30.0",
"pre-commit>=3.5.0",
"bandit[toml]>=1.7.5",
"ruff>=0.1.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[dependency-groups]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-httpx>=0.30.0",
"pre-commit>=3.5.0",
"bandit[toml]>=1.7.5",
"ruff>=0.1.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.isort]
known-first-party = ["auth", "client", "managers", "models", "routes", "tools", "utils"]
[tool.bandit]
exclude_dirs = ["tests", ".venv", "build", "dist"]
skips = [
"B101", # assert_used - OK in tests
"B601", # paramiko_calls - not used
]
[tool.bandit.assert_used]
skips = ["*/test_*.py", "tests/*"]