-
-
Notifications
You must be signed in to change notification settings - Fork 267
Expand file tree
/
Copy pathpyproject.toml
More file actions
226 lines (216 loc) · 7.27 KB
/
pyproject.toml
File metadata and controls
226 lines (216 loc) · 7.27 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
[build-system]
requires = ["hatchling", "python-semantic-release", "build"]
build-backend = "hatchling.build"
[project]
name = "mcp-memory-service"
version = "10.46.0"
description = "Semantic memory layer for AI applications. REST API + MCP transport + knowledge graph + autonomous consolidation. Works with 14+ AI clients. Self-host, zero cloud cost."
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"semantic-memory", "agent-memory", "ai-memory", "long-term-memory",
"multi-agent", "langgraph", "crewai", "autogen", "agentic-ai",
"knowledge-graph", "vector-database", "ai-agents", "rag",
"semantic-search", "memory-consolidation", "rest-api", "fastapi",
"mcp", "model-context-protocol", "sqlite-vec", "cloudflare",
"open-source", "privacy-first", "self-hosted", "ai-assistant"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Database :: Database Engines/Servers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Environment :: Console",
"Framework :: FastAPI"
]
authors = [
{ name = "Heinrich Krupp", email = "heinrich.krupp@gmail.com" }
]
license = { text = "Apache-2.0" }
dependencies = [
"aiofiles>=23.2.1",
"aiohttp>=3.13.3",
"aiosqlite>=0.20.0",
"apscheduler>=3.11.0",
"authlib>=1.6.9",
"build>=0.10.0",
"chardet>=5.0.0",
"click>=8.0.0",
"cryptography>=46.0.6",
"fastapi>=0.115.5",
"httpx>=0.24.0",
"mcp>=1.8.0,<2.0.0",
"psutil>=5.9.0",
"PyJWT[crypto]>=2.12.0",
"pypdf>=6.9.1",
"python-dotenv>=1.0.0",
"python-multipart>=0.0.22",
"requests>=2.32.4",
"sentence-transformers>=2.2.2",
"sqlite-vec>=0.1.0",
"sse-starlette>=2.1.0",
"tokenizers>=0.22.2",
"torch>=2.0.0",
"transformers>=4.30,<5.0.0",
"typing-extensions>=4.0.0; python_version < '3.11'",
"uvicorn>=0.30.0",
"zeroconf>=0.130.0",
]
[project.optional-dependencies]
# Development dependencies for testing and code quality
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0.0",
"pytest-benchmark>=4.0.0",
"pytest-timeout>=2.0.0",
"pytest-subtests>=0.10.0",
"black>=26.3.1",
"ruff>=0.1.0",
]
# Machine learning dependencies for semantic search and embeddings
ml = [
"sentence-transformers>=2.2.2",
"torch>=2.0.0",
"wandb>=0.18.0" # Fix for Issue #311: Ensure wandb is compatible with protobuf 5.x
]
# SQLite-vec with lightweight ONNX embeddings (recommended for most users)
sqlite = [
"onnxruntime>=1.14.1"
]
# SQLite-vec with full ML capabilities (for advanced features)
sqlite-ml = [
"mcp-memory-service[sqlite,ml]"
]
# Milvus backend — Milvus Lite (single file), self-hosted Milvus, or Zilliz Cloud.
# Shipped with the ML extras so sentence-transformers embeddings are available.
milvus = [
"pymilvus>=2.5.0",
"milvus-lite>=2.4.10",
# milvus-lite 2.5.x still imports `pkg_resources` from setuptools; that API
# was removed in setuptools 81. Pin setuptools below 81 on newer Pythons
# where the default wheels are affected. Safe no-op on Pythons that resolve
# older setuptools naturally.
"setuptools<83; python_version >= '3.13'",
"mcp-memory-service[ml]",
]
# Full installation including all optional dependencies
full = [
"mcp-memory-service[sqlite,ml,dev]"
]
[project.scripts]
memory = "mcp_memory_service.cli.main:main"
memory-server = "mcp_memory_service.cli.main:memory_server_main"
mcp-memory-server = "mcp_memory_service.mcp_server:main"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_memory_service"]
[tool.hatch.version]
path = "src/mcp_memory_service/__init__.py"
[tool.semantic_release]
version_variable = [
"src/mcp_memory_service/_version.py:__version__",
"pyproject.toml:version",
"pyproject-lite.toml:version"
]
branch = "main"
changelog_file = "CHANGELOG.md"
build_command = "pip install build && python -m build"
build_command_env = []
dist_path = "dist/"
upload_to_pypi = true
upload_to_release = true
commit_message = "chore(release): bump version to {version}"
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test"
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.changelog]
template_dir = "templates"
changelog_sections = [
["feat", "Features"],
["fix", "Bug Fixes"],
["perf", "Performance"],
["refactor", "Code Refactoring"],
["test", "Tests"]
]
[tool.coverage.run]
source = ["src/mcp_memory_service"]
omit = [
# OAuth system - no tests yet (Issue #316)
"src/mcp_memory_service/web/oauth/*",
# Web infrastructure - minimal test coverage
"src/mcp_memory_service/web/app.py",
"src/mcp_memory_service/web/sse.py",
# Web API endpoints - minimal test coverage
"src/mcp_memory_service/web/api/*",
"src/mcp_memory_service/web/dependencies.py",
# Sync infrastructure - no tests
"src/mcp_memory_service/sync/*",
# Backup/scheduler - infrastructure code
"src/mcp_memory_service/backup/scheduler.py",
"src/mcp_memory_service/consolidation/scheduler.py",
# CLI commands - minimal coverage
"src/mcp_memory_service/cli/*",
# API client layer - infrastructure code
"src/mcp_memory_service/api/client.py",
"src/mcp_memory_service/api/operations.py",
"src/mcp_memory_service/api/sync_wrapper.py",
# Ingestion system - minimal coverage
"src/mcp_memory_service/ingestion/*",
# Discovery system - infrastructure code
"src/mcp_memory_service/discovery/*",
# Utility modules - infrastructure code
"src/mcp_memory_service/utils/cache_manager.py",
"src/mcp_memory_service/utils/directory_ingestion.py",
"src/mcp_memory_service/utils/health_check.py",
"src/mcp_memory_service/utils/http_server_manager.py",
"src/mcp_memory_service/utils/port_detection.py",
"src/mcp_memory_service/utils/quality_analytics.py",
"src/mcp_memory_service/utils/startup_orchestrator.py",
"src/mcp_memory_service/utils/time_parser.py",
"src/mcp_memory_service/utils/gpu_detection.py",
"src/mcp_memory_service/utils/db_utils.py",
"src/mcp_memory_service/utils/content_splitter.py",
"src/mcp_memory_service/utils/debug.py",
# Milvus storage - requires pymilvus (not installed in CI)
"src/mcp_memory_service/storage/milvus.py",
"src/mcp_memory_service/storage/milvus_graph.py",
# HTTP client - minimal usage
"src/mcp_memory_service/storage/http_client.py",
# CLI utilities
"src/mcp_memory_service/cli/utils.py",
# CLI entry points
"src/mcp_memory_service/__main__.py",
"src/mcp_memory_service/mcp_server.py",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if TYPE_CHECKING:",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]