Skip to main content
Glama
pyproject.toml6.25 kB
[project] name = "banana-image-mcp" version = "1.0.1" description = "A production-ready MCP server for AI-powered image generation using Gemini 3 Pro Image and Gemini 2.5 Flash Image with intelligent model selection" authors = [ { name = "Wenliang Zeng", email = "wenliang_zeng416@163.com" } ] readme = "README.md" license = { text = "MIT" } requires-python = ">=3.11" keywords = ["mcp", "ai", "image-generation", "gemini", "fastmcp", "4k", "banana-image", "grounding"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Multimedia :: Graphics", ] dependencies = [ "fastmcp>=2.11.0", "google-genai>=1.54.0", "pillow>=10.4.0", "python-dotenv>=1.0.1", "pydantic>=2.0.0", ] [project.optional-dependencies] dev = [ "fastmcp>=2.11.0", "ruff>=0.1.0", "pytest>=7.0.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.0.0", "mypy>=1.0.0", "black>=23.0.0", "isort>=5.12.0", "pre-commit>=3.0.0", ] test = [ "pytest>=7.0.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.0.0", "pytest-mock>=3.10.0", "responses>=0.23.0", ] docs = [ "mkdocs>=1.4.0", "mkdocs-material>=9.0.0", "mkdocstrings[python]>=0.20.0", ] [project.urls] Homepage = "https://github.com/zengwenliang416/banana-image-mcp" Repository = "https://github.com/zengwenliang416/banana-image-mcp.git" "Bug Tracker" = "https://github.com/zengwenliang416/banana-image-mcp/issues" [project.scripts] banana-image-mcp = "banana_image_mcp.server:main" [project.entry-points.fastmcp] banana-image-mcp = "banana_image_mcp.server:create_app" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["banana_image_mcp"] [tool.ruff] target-version = "py311" line-length = 100 exclude = [ ".bzr", ".direnv", ".eggs", ".git", ".hg", ".mypy_cache", ".nox", ".pants.d", ".ruff_cache", ".svn", ".tox", ".venv", "__pypackages__", "_build", "buck-out", "build", "dist", "node_modules", "venv", "docs/", ] [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade "N", # pep8-naming "S", # flake8-bandit "T20", # flake8-print "SIM", # flake8-simplify "ARG", # flake8-unused-arguments "DTZ", # flake8-datetimez "Q", # flake8-quotes "TCH", # flake8-type-checking "RUF", # Ruff-specific rules ] ignore = [ "E501", # line too long (handled by formatter) "S101", # use of assert "S603", # subprocess call without shell=True "S607", # starting subprocess with path "B008", # do not perform function calls in argument defaults "N805", # first argument should be self "ARG001", # unused function argument (often needed for interface compliance) "ARG002", # unused method argument (often needed for interface compliance) "DTZ003", # datetime.utcnow() used (acceptable for logging) "DTZ005", # datetime.now() without tz (acceptable for local timestamps) "DTZ006", # datetime.fromtimestamp() without tz (acceptable for display) "S324", # md5 usage (used for non-security hash, just filename generation) "B904", # raise from err (not always needed for simple re-raises) "SIM108", # ternary operator suggestion (readability preference) "RUF001", # ambiguous unicode character (emoji is intentional) "N806", # variable in function should be lowercase (CONSTANTS are ok) "S110", # try-except-pass (acceptable in scripts) "B007", # loop variable not used (acceptable) "RUF059", # unpacked variable never used (acceptable) ] [tool.ruff.lint.per-file-ignores] "tests/*" = ["S", "ARG", "T20"] "__init__.py" = ["F401"] "scripts/*" = ["ARG", "S110"] [tool.ruff.lint.mccabe] max-complexity = 10 [tool.ruff.lint.isort] known-first-party = ["config", "core", "services", "tools", "resources", "prompts", "utils"] force-sort-within-sections = true [tool.pytest.ini_options] minversion = "7.0" addopts = "-ra -q --strict-markers --strict-config" testpaths = ["tests"] python_files = ["test_*.py", "*_test.py"] python_functions = ["test_*"] markers = [ "unit: Unit tests", "integration: Integration tests", "slow: Slow running tests", "network: Tests requiring network access", ] filterwarnings = [ "error", "ignore::UserWarning", "ignore::DeprecationWarning", ] [tool.coverage.run] source = ["config", "core", "services", "tools", "resources", "prompts", "utils"] omit = [ "*/tests/*", "*/__init__.py", "*/conftest.py", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError", "if __name__ == .__main__.:", "if TYPE_CHECKING:", ] show_missing = true precision = 2 fail_under = 80 [tool.mypy] python_version = "3.11" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true disallow_untyped_decorators = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true warn_unreachable = true strict_equality = true show_error_codes = true [[tool.mypy.overrides]] module = [ "google.*", "fastmcp.*", "PIL.*", ] ignore_missing_imports = true [tool.black] line-length = 100 target-version = ['py311'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | _build | buck-out | build | dist )/ ''' [tool.uv] dev-dependencies = [ "build>=1.3.0", "twine>=6.2.0", ] [dependency-groups] dev = [ "build>=1.3.0", "hypothesis>=6.148.7", "twine>=6.1.0", ]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zengwenliang416/banana-image-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server