[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mcp-odoo"
version = "2.0.0"
description = "MCP server for Odoo ERP operations"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "CDM", email = "cdm@industream.com" },
]
keywords = ["mcp", "odoo", "erp", "claude", "ai"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business :: Financial :: Accounting",
]
dependencies = [
"mcp>=1.0.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
]
[project.optional-dependencies]
redis = [
"redis>=5.0.0",
]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.3.0",
"mypy>=1.9.0",
"pre-commit>=3.7.0",
]
all = [
"mcp-odoo[redis,dev]",
]
[project.scripts]
mcp-odoo = "mcp_odoo.server:main"
[project.urls]
Homepage = "https://github.com/industream/mcp-odoo"
Documentation = "https://github.com/industream/mcp-odoo#readme"
Repository = "https://github.com/industream/mcp-odoo"
Issues = "https://github.com/industream/mcp-odoo/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_odoo"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"/README.md",
"/LICENSE",
]
# Ruff configuration
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src", "tests"]
[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
"B905", # zip without explicit strict
]
[tool.ruff.lint.isort]
known-first-party = ["mcp_odoo"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# Mypy configuration
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
strict = false
disable_error_code = ["arg-type", "no-untyped-def"]
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
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 = ["src/mcp_odoo"]
branch = true
omit = [
"*/tests/*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
show_missing = true