-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (105 loc) · 3.08 KB
/
pyproject.toml
File metadata and controls
122 lines (105 loc) · 3.08 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
118
119
120
121
122
[project]
name = "mcp-awareness-server"
version = "0.18.2"
description = "Generic MCP server for ambient system awareness across monitored systems"
readme = "README.md"
license = "AGPL-3.0-or-later"
requires-python = ">=3.10"
dependencies = [
"mcp[cli]>=1.27.0,<2.0",
"psycopg[binary]>=3.3.3,<4.0",
"psycopg_pool>=3.2,<4.0",
"alembic>=1.18.4,<2.0",
"sqlalchemy>=2.0,<3.0",
"PyJWT[crypto]>=2.8,<3.0",
"argon2-cffi>=23.1,<26.0",
"phonenumbers>=8.13,<10.0",
"zxcvbn>=4.5.0,<5.0",
"lingua-language-detector>=2.1.1,<3.0",
"jsonschema>=4.26.0,<5",
]
[project.scripts]
mcp-awareness = "mcp_awareness.server:main"
mcp-awareness-migrate = "mcp_awareness.migrate:main"
mcp-awareness-user = "mcp_awareness.cli:user_main"
mcp-awareness-token = "mcp_awareness.cli:token_main"
mcp-awareness-secret = "mcp_awareness.cli:secret_main"
mcp-awareness-register-schema = "mcp_awareness.cli_register_schema:main"
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
"pytest",
"pytest-cov",
"testcontainers[postgres]>=4.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_awareness"]
[tool.hatch.build.targets.wheel.force-include]
"src/mcp_awareness/instructions.md" = "mcp_awareness/instructions.md"
"src/mcp_awareness/favicon.ico" = "mcp_awareness/favicon.ico"
"src/mcp_awareness/sql" = "mcp_awareness/sql"
"src/mcp_awareness/icons" = "mcp_awareness/icons"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: integration tests that start a real server (slow)",
]
# --- Ruff ---
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src"]
exclude = [
".git",
"__pycache__",
".pytest_cache",
".mypy_cache",
".ruff_cache",
"dist",
"build",
".eggs",
"*.egg-info",
".venv",
"venv",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.format]
quote-style = "double"
# --- Mypy ---
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
packages = ["mcp_awareness"]
[[tool.mypy.overrides]]
module = ["mcp.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["psycopg.*", "psycopg_pool.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["alembic.*", "sqlalchemy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["jwt.*", "zxcvbn.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["jsonschema.*"]
ignore_missing_imports = true
# The tools/resources/prompts modules use a circular import pattern
# (from . import server as _srv) to access mutable state through the server
# module at call time. mypy cannot resolve attribute types on the partially-
# initialized module object, so we suppress has-type for these three files.
[[tool.mypy.overrides]]
module = ["mcp_awareness.tools", "mcp_awareness.resources", "mcp_awareness.prompts"]
disable_error_code = ["has-type", "untyped-decorator"]
# --- Coverage ---
[tool.coverage.run]
omit = ["src/mcp_awareness/__main__.py"]