forked from sirkirby/unifi-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (79 loc) · 2.43 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (79 loc) · 2.43 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
[project]
name = "unifi-access-mcp"
dynamic = ["version"]
description = "UniFi Access MCP Server"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"unifi-mcp-shared>=0.6.3,<0.7",
# Access managers in unifi-core import unifi_access_api (PyPI name
# py-unifi-access); pull it in via the [access] extra rather than
# declaring py-unifi-access here directly.
"unifi-core[access]>=0.4.9,<0.5",
"mcp[cli]>=1.28.0,<2",
"aiohttp>=3.14.0",
"pyyaml>=6.0",
"python-dotenv>=1.2.2",
"omegaconf>=2.3.0",
"jsonschema>=4.17.0",
"typing-extensions>=4.4.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 = "^access/v(?P<version>\\d+(?:\\.\\d+)*)(?:\\S*)$"
raw-options.git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "access/v*"]
raw-options.fallback_version = "0.0.0"
[tool.hatch.build.hooks.vcs]
version-file = "src/unifi_access_mcp/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/unifi_access_mcp"]
[tool.hatch.build.targets.sdist]
include = [
"/src/unifi_access_mcp",
"/README.md",
]
# Ensure config files and tool manifest are included in the package
[tool.hatch.build.targets.wheel.force-include]
"src/unifi_access_mcp/config/config.yaml" = "unifi_access_mcp/config/config.yaml"
"src/unifi_access_mcp/tools_manifest.json" = "unifi_access_mcp/tools_manifest.json"
[dependency-groups]
dev = [
"pytest>=9.0.3",
"pytest-asyncio>=0.21.0",
"pytest-xdist>=3.6.0",
"aioresponses>=0.7.0",
"pytest-cov>=4.0.0",
"ruff>=0.15.15",
]
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=9.0.3",
"pytest-asyncio>=0.21.0",
"aioresponses>=0.7.0",
"pytest-cov>=4.0.0",
"ruff>=0.15.15",
]
[project.scripts]
# CLI entrypoint that launches the UniFi Access MCP server
unifi-access-mcp = "unifi_access_mcp.main:main"
[tool.ruff]
line-length = 120
exclude = ["src/unifi_access_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_access_mcp", "unifi_mcp_shared", "unifi_core"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"