[project]
name = "mcp-nanobanana-pro"
version = "0.1.0"
description = "MCP Server for NanoBanana AI Image Generation via AceDataCloud API"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [
{ name = "AceDataCloud", email = "support@acedata.cloud" }
]
maintainers = [
{ name = "AceDataCloud", email = "support@acedata.cloud" }
]
keywords = [
"mcp",
"model-context-protocol",
"nanobanana",
"nano-banana",
"ai",
"image",
"generation",
"editing",
"acedata",
"llm",
"claude",
"google",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"mcp>=1.2.0",
"httpx>=0.27.0",
"python-dotenv>=1.0.0",
"pydantic>=2.0.0",
"loguru>=0.7.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.4.0",
"mypy>=1.10.0",
"pre-commit>=3.7.0",
]
test = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"respx>=0.21.0",
]
release = [
"build>=1.2.0",
"twine>=5.0.0",
]
all = [
"mcp-nanobanana-pro[dev,test,release]",
]
[project.scripts]
mcp-nanobanana-pro = "main:main"
[project.urls]
Homepage = "https://github.com/AceDataCloud/MCPNanoBanana"
Documentation = "https://platform.acedata.cloud/documents/23985a11-d713-41d1-ad84-24b021805b3d"
Repository = "https://github.com/AceDataCloud/MCPNanoBanana"
Issues = "https://github.com/AceDataCloud/MCPNanoBanana/issues"
Changelog = "https://github.com/AceDataCloud/MCPNanoBanana/blob/main/CHANGELOG.md"
[build-system]
requires = ["hatchling<1.26.0"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["core", "tools", "prompts", "main.py"]
[tool.hatch.build.targets.sdist]
include = [
"core/",
"tools/",
"prompts/",
"tests/",
"main.py",
"README.md",
"LICENSE",
"CHANGELOG.md",
".env.example",
]
# Ruff Configuration
[tool.ruff]
target-version = "py310"
line-length = 100
exclude = [
".git",
".ruff_cache",
".venv",
"__pycache__",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"E402", # module level import not at top of file (needed for dotenv loading)
]
[tool.ruff.lint.isort]
known-first-party = ["core", "tools", "prompts"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
# Mypy Configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
ignore_missing_imports = true
# Pytest Configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
# Coverage Configuration
[tool.coverage.run]
source = ["core", "tools"]
branch = true
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]