Florence-2 MCP Server

by jkawamoto
Verified
[build-system] build-backend = "hatchling.build" requires = [ "hatchling" ] [project] name = "mcp-florence2" version = "0.3.1" description = "An MCP server for processing images using Florence-2" readme = "README.md" authors = [ { name = "Junpei Kawamoto", email = "kawamoto.junpei@gmail.com" }, ] requires-python = ">=3.12" classifiers = [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering :: Image Recognition", ] dependencies = [ "dill>=0.3.9", "einops>=0.8.1", "mcp>=1.6", "pillow>=11.1", "pydantic>=2.10.6", "pypdfium2>=4.30.1", "requests>=2.32.3", "rich-click>=1.8.8", "timm>=1.0.15", "torch>=2.6", "transformers>=4.49", ] scripts.mcp-florence2 = "mcp_florence2:main" [dependency-groups] dev = [ "bump-my-version>=1.1.1", "pre-commit>=4.2", "pre-commit-uv>=4.1.4", "pytest>=8.3.4", "types-requests>=2.32.0.20250328", ] [tool.ruff] target-version = "py312" line-length = 120 [tool.pyproject-fmt] indent = 4 [tool.bumpversion] current_version = "0.3.1" commit = true pre_commit_hooks = [ "uv sync", "git add uv.lock", ] [[tool.bumpversion.files]] filename = "pyproject.toml" search = 'version = "{current_version}"' replace = 'version = "{new_version}"' [tool.mypy] warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true [[tool.mypy.overrides]] module = [ "dill", "transformers.*", "pypdfium2", ] ignore_missing_imports = true