[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "fortigate-mcp-server"
version = "1.0.0"
description = "FortiGate MCP Server - FastMCP based FortiGate management server"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "FortiGate MCP Team"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Networking :: Firewalls",
"Topic :: System :: Systems Administration",
]
keywords = ["fortigate", "mcp", "fastmcp", "firewall", "management", "automation"]
requires-python = ">=3.11"
dependencies = [
"mcp @ git+https://github.com/modelcontextprotocol/python-sdk.git",
"fastmcp>=0.2.0",
"httpx>=0.24.0",
"pydantic>=2.0.0",
"fastapi>=0.104.0",
"uvicorn[standard]>=0.24.0",
"asgiref>=3.7.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",
"flake8>=6.0.0",
"mypy>=1.0.0",
"bandit>=1.7.0",
"safety>=2.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
]
lint = [
"black>=23.0.0",
"isort>=5.12.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
]
security = [
"bandit>=1.7.0",
"safety>=2.0.0",
]
[project.urls]
Homepage = "https://github.com/your-username/fortigate-mcp-server"
Documentation = "https://github.com/your-username/fortigate-mcp-server#readme"
Repository = "https://github.com/your-username/fortigate-mcp-server"
"Bug Tracker" = "https://github.com/your-username/fortigate-mcp-server/issues"
[project.scripts]
fortigate-mcp-server = "src.main:main"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--verbose",
"--tb=short",
"--cov=src",
"--cov-report=html",
"--cov-report=term-missing",
"--cov-fail-under=80",
]
asyncio_mode = "auto"
markers = [
"unit: marks tests as unit tests",
"integration: marks tests as integration tests",
"slow: marks tests as slow running",
]
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[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
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*", "*/test_*.py"]
[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",
]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101", "B601"]