[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "opmanager-mcp-server"
version = "1.0.0"
description = "Model Context Protocol (MCP) server for ManageEngine OpManager API integration"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "OpManager MCP Server Contributors" }
]
maintainers = [
{ name = "OpManager MCP Server Contributors" }
]
keywords = [
"mcp",
"model-context-protocol",
"opmanager",
"manageengine",
"network-monitoring",
"api",
"automation",
"llm",
"ai",
"claude"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"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 :: System :: Monitoring",
"Topic :: System :: Networking :: Monitoring",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.10"
dependencies = [
"mcp>=1.0.0",
"httpx>=0.25.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"python-dotenv>=1.0.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
http = [
"starlette>=0.32.0",
"uvicorn>=0.24.0",
"sse-starlette>=1.6.0",
]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.0.0",
"ruff>=0.1.0",
"pre-commit>=3.0.0",
"respx>=0.20.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocstrings[python]>=0.24.0",
]
all = [
"opmanager-mcp-server[http,dev,docs]",
]
[project.scripts]
opmanager-mcp = "opmanager_mcp.main:run"
[project.urls]
Homepage = "https://github.com/sachdev27/opmanager-mcp-server"
Documentation = "https://github.com/sachdev27/opmanager-mcp-server#readme"
Repository = "https://github.com/sachdev27/opmanager-mcp-server.git"
Issues = "https://github.com/sachdev27/opmanager-mcp-server/issues"
Changelog = "https://github.com/sachdev27/opmanager-mcp-server/blob/main/CHANGELOG.md"
[tool.hatch.build.targets.wheel]
packages = ["opmanager_mcp"]
[tool.hatch.build.targets.sdist]
include = [
"/opmanager_mcp",
"/openapi.json",
"/README.md",
"/LICENSE",
]
[tool.black]
line-length = 88
target-version = ["py310", "py311", "py312"]
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 88
known_first_party = ["opmanager_mcp"]
skip_gitignore = true
[tool.ruff]
line-length = 88
target-version = "py310"
[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 black)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"ARG001", # unused function argument
"ARG002", # unused method argument (for ASGI handlers and test fixtures)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["ARG001", "ARG002", "F841"]
[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
follow_imports = "normal"
ignore_missing_imports = true
strict_equality = true
show_error_codes = true
show_column_numbers = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pytest.ini_options]
minversion = "7.0"
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"-ra",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.coverage.run]
source = ["opmanager_mcp"]
branch = true
omit = [
"*/tests/*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
fail_under = 50