-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (99 loc) · 2.94 KB
/
pyproject.toml
File metadata and controls
117 lines (99 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
[project]
authors = [
{ name = "Linuxfabrik GmbH, Zurich, Switzerland", email = "info@linuxfabrik.ch" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: The Unlicense (Unlicense)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.14",
"Topic :: System :: Monitoring",
"Topic :: System :: Networking :: Monitoring",
]
description = "Model Context Protocol (MCP) server for Icinga 2 Core, Icinga Web, Icinga Director and the Linuxfabrik monitoring-plugins catalog."
dependencies = [
"mcp~=1.27",
"pydantic~=2.9",
"pyyaml~=6.0",
]
dynamic = [
"version",
]
keywords = [
"icinga",
"icinga2",
"icinga-director",
"llm",
"mcp",
"model-context-protocol",
"monitoring",
"nagios",
]
license-files = ["LICENSE", "COPYRIGHT"]
name = "mcp-server-icinga"
readme = "README.md"
requires-python = ">=3.14"
[project.optional-dependencies]
influxdb = [
# placeholder, e.g. influxdb-client~=1.x once the TSDB layer lands
]
[dependency-groups]
dev = [
"pytest~=9.0.2",
"types-pyyaml~=6.0",
]
[project.scripts]
mcp-server-icinga = "mcp_server_icinga.server:main"
[project.urls]
Download = "https://github.com/linuxfabrik/mcp-server-icinga/releases/"
Homepage = "https://github.com/linuxfabrik/mcp-server-icinga/"
Source = "https://github.com/linuxfabrik/mcp-server-icinga/"
Tracker = "https://github.com/linuxfabrik/mcp-server-icinga/issues/"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = { attr = "mcp_server_icinga.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# === linters ===
[tool.ruff]
target-version = "py313" # py314 not yet recognised by ruff as of 2026-04-21
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes (logic errors)
"I", # isort (import sorting)
"B", # flake8-bugbear (potential bugs)
"C4", # flake8-comprehensions
"UP", # pyupgrade (modernize syntax)
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long
]
[tool.ruff.lint.isort]
known-first-party = ["mcp_server_icinga"]
[tool.ruff.format]
quote-style = "single"
[tool.bandit]
# B110 (try/except/pass) and B112 (try/except/continue): intentional patterns
# for graceful degradation in a long-running server.
# B311 (pseudo-random): not used for cryptographic purposes.
skips = ["B110", "B112", "B311"]
[tool.bandit.assert_used]
# pytest-style asserts are idiomatic in tests/, but bandit still scans the
# directory for other real issues.
skips = ["*/tests/*.py", "tests/*.py"]
[tool.vulture]
min_confidence = 80
paths = ["src/mcp_server_icinga"]