[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "moondream-mcp"
version = "1.0.2"
description = "FastMCP server for Moondream vision language model"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Moondream FastMCP Contributors", email = "contributors@moondream-mcp.dev"}
]
maintainers = [
{name = "Moondream FastMCP Contributors", email = "contributors@moondream-mcp.dev"}
]
keywords = [
"mcp",
"fastmcp",
"moondream",
"vision",
"language-model",
"ai",
"computer-vision",
"image-analysis"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"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 :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Typing :: Typed"
]
requires-python = ">=3.10"
dependencies = [
"fastmcp>=2.3.0",
"torch>=2.0.0",
"torchvision>=0.15.0",
"transformers>=4.30.0",
"pillow>=9.0.0",
"aiohttp>=3.8.0",
"aiofiles>=23.0.0",
"pyvips>=2.2.0",
"einops>=0.6.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"python-dotenv>=1.0.0",
"click>=8.0.0",
"rich>=13.0.0"
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.5.0",
"bandit[toml]>=1.7.0",
"safety>=2.3.0",
"pre-commit>=3.0.0",
"types-requests>=2.31.0",
"types-aiofiles>=23.0.0"
]
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.3.0",
"myst-parser>=2.0.0",
"sphinx-autodoc-typehints>=1.24.0"
]
test = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.11.0"
]
[project.urls]
Homepage = "https://github.com/ColeMurray/moondream-mcp"
Documentation = "https://github.com/ColeMurray/moondream-mcp#readme"
Repository = "https://github.com/ColeMurray/moondream-mcp.git"
Issues = "https://github.com/ColeMurray/moondream-mcp/issues"
Changelog = "https://github.com/ColeMurray/moondream-mcp/blob/main/CHANGELOG.md"
[project.scripts]
moondream-mcp = "moondream_mcp.server:main"
setup-claude-desktop = "moondream_mcp.scripts.setup_claude_desktop:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
moondream_mcp = ["py.typed"]
# Black configuration
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
# isort configuration
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["moondream_mcp"]
known_third_party = ["fastmcp", "torch", "transformers", "PIL", "aiohttp", "pydantic"]
# 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
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 = [
"torch.*",
"torchvision.*",
"transformers.*",
"PIL.*"
]
ignore_missing_imports = true
# pytest configuration
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"--strict-markers",
"--strict-config",
"--disable-warnings",
"-ra"
]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests"
]
asyncio_mode = "auto"
# Coverage configuration
[tool.coverage.run]
source = ["src/moondream_mcp"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/site-packages/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod"
]
# Bandit security configuration
[tool.bandit]
exclude_dirs = ["tests", "build", "dist"]
skips = ["B101", "B601"] # Skip assert_used and shell_injection_process_args
[tool.bandit.assert_used]
skips = ["*_test.py", "*/test_*.py"]