-
-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (86 loc) · 2.71 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (86 loc) · 2.71 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
[project]
name = "unifi-protect-mcp"
dynamic = ["version"]
description = "UniFi Protect MCP Server"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"unifi-mcp-shared>=0.6.7,<0.7",
# Protect managers in unifi-core import uiprotect; pull it in via the
# [protect] extra rather than declaring uiprotect here directly.
"unifi-core[protect]>=0.4.22,<0.5",
"mcp[cli]>=1.28.1,<2",
# Published wheels do not consume uv.lock; keep MCP transitive security
# floors explicit so upgrades cannot retain vulnerable installed versions.
"cryptography>=50.0.0",
"pydantic-settings>=2.14.2",
"PyJWT>=2.13.0",
"python-multipart>=0.0.31",
"starlette>=1.3.1",
"click>=8.3.3",
"aiohttp>=3.14.3",
"pyyaml>=6.0",
"python-dotenv>=1.2.2",
"omegaconf>=2.3.0",
"jsonschema>=4.17.0",
"typing-extensions>=4.16.0",
]
[tool.uv.sources]
unifi-mcp-shared = { workspace = true }
unifi-core = { workspace = true }
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
raw-options.root = "../.."
raw-options.tag_regex = "^protect/v(?P<version>\\d+(?:\\.\\d+)*)(?:\\S*)$"
raw-options.git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "protect/v*"]
raw-options.fallback_version = "0.0.0"
[tool.hatch.build.hooks.vcs]
version-file = "src/unifi_protect_mcp/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/unifi_protect_mcp"]
[tool.hatch.build.targets.sdist]
include = [
"/src/unifi_protect_mcp",
"/README.md",
]
# Ensure config files and tool manifest are included in the package
[tool.hatch.build.targets.wheel.force-include]
"src/unifi_protect_mcp/config/config.yaml" = "unifi_protect_mcp/config/config.yaml"
"src/unifi_protect_mcp/tools_manifest.json" = "unifi_protect_mcp/tools_manifest.json"
[dependency-groups]
dev = [
"pytest>=9.0.3",
"pytest-asyncio>=0.21.0",
"pytest-xdist>=3.6.0",
"aioresponses>=0.7.9",
"pytest-cov>=4.0.0",
"ruff>=0.16.1",
]
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=9.0.3",
"pytest-asyncio>=0.21.0",
"aioresponses>=0.7.9",
"pytest-cov>=4.0.0",
"ruff>=0.16.1",
]
[project.scripts]
# CLI entrypoint that launches the UniFi Protect MCP server
unifi-protect-mcp = "unifi_protect_mcp.main:main"
[tool.ruff]
line-length = 120
exclude = ["src/unifi_protect_mcp/_version.py"] # Auto-generated by hatch-vcs
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = [
"E501", # Line too long - handled by line-length setting above
]
[tool.ruff.lint.isort]
known-first-party = ["unifi_protect_mcp", "unifi_mcp_shared", "unifi_core"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"