enhanced-mcp-memory 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- enhanced_mcp_memory-1.2.1/LICENSE +21 -0
- enhanced_mcp_memory-1.2.1/MANIFEST.in +12 -0
- enhanced_mcp_memory-1.2.1/PKG-INFO +274 -0
- enhanced_mcp_memory-1.2.1/README.md +228 -0
- enhanced_mcp_memory-1.2.1/database.py +751 -0
- enhanced_mcp_memory-1.2.1/enhanced_mcp_memory.egg-info/PKG-INFO +274 -0
- enhanced_mcp_memory-1.2.1/enhanced_mcp_memory.egg-info/SOURCES.txt +20 -0
- enhanced_mcp_memory-1.2.1/enhanced_mcp_memory.egg-info/dependency_links.txt +1 -0
- enhanced_mcp_memory-1.2.1/enhanced_mcp_memory.egg-info/entry_points.txt +2 -0
- enhanced_mcp_memory-1.2.1/enhanced_mcp_memory.egg-info/requires.txt +13 -0
- enhanced_mcp_memory-1.2.1/enhanced_mcp_memory.egg-info/top_level.txt +3 -0
- enhanced_mcp_memory-1.2.1/mcp_server_enhanced.py +345 -0
- enhanced_mcp_memory-1.2.1/memory_manager.py +718 -0
- enhanced_mcp_memory-1.2.1/pyproject.toml +76 -0
- enhanced_mcp_memory-1.2.1/requirements.txt +6 -0
- enhanced_mcp_memory-1.2.1/setup.cfg +4 -0
- enhanced_mcp_memory-1.2.1/setup.py +47 -0
- enhanced_mcp_memory-1.2.1/tests/__init__.py +1 -0
- enhanced_mcp_memory-1.2.1/tests/test_enhanced_features.py +164 -0
- enhanced_mcp_memory-1.2.1/tests/test_mcp_protocol.py +57 -0
- enhanced_mcp_memory-1.2.1/tests/test_new_project_system.py +97 -0
- enhanced_mcp_memory-1.2.1/tests/test_project_tools.py +78 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Enhanced MCP Memory Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include requirements.txt
|
|
4
|
+
include pyproject.toml
|
|
5
|
+
recursive-include tests *.py
|
|
6
|
+
global-exclude __pycache__
|
|
7
|
+
global-exclude *.py[co]
|
|
8
|
+
global-exclude .DS_Store
|
|
9
|
+
global-exclude *.log
|
|
10
|
+
prune data
|
|
11
|
+
prune logs
|
|
12
|
+
prune .snapshots
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: enhanced-mcp-memory
|
|
3
|
+
Version: 1.2.1
|
|
4
|
+
Summary: Enhanced MCP server for memory and task management with AI-powered features
|
|
5
|
+
Home-page: https://github.com/cbunting99/enhanced-mcp-memory
|
|
6
|
+
Author: cbunting99
|
|
7
|
+
Author-email: cbunting99 <cbunting99@users.noreply.github.com>
|
|
8
|
+
Maintainer-email: cbunting99 <cbunting99@users.noreply.github.com>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
Project-URL: Homepage, https://github.com/cbunting99/enhanced-mcp-memory
|
|
11
|
+
Project-URL: Repository, https://github.com/cbunting99/enhanced-mcp-memory
|
|
12
|
+
Project-URL: Issues, https://github.com/cbunting99/enhanced-mcp-memory/issues
|
|
13
|
+
Project-URL: Documentation, https://github.com/cbunting99/enhanced-mcp-memory#readme
|
|
14
|
+
Keywords: mcp,memory,ai,task-management,knowledge-graph,semantic-search
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
|
+
Classifier: Topic :: Database
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
27
|
+
Requires-Python: >=3.8
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Requires-Dist: fastmcp>=2.10.5
|
|
31
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
32
|
+
Requires-Dist: sentence-transformers>=2.2.0
|
|
33
|
+
Requires-Dist: numpy>=1.21.0
|
|
34
|
+
Requires-Dist: scipy>=1.7.0
|
|
35
|
+
Requires-Dist: filelock>=3.0.0
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
39
|
+
Requires-Dist: black>=22.0.0; extra == "dev"
|
|
40
|
+
Requires-Dist: isort>=5.0.0; extra == "dev"
|
|
41
|
+
Requires-Dist: flake8>=4.0.0; extra == "dev"
|
|
42
|
+
Dynamic: author
|
|
43
|
+
Dynamic: home-page
|
|
44
|
+
Dynamic: license-file
|
|
45
|
+
Dynamic: requires-python
|
|
46
|
+
|
|
47
|
+
# Enhanced MCP Memory
|
|
48
|
+
|
|
49
|
+
> **โก Optimized for Claude Sonnet 4** - This MCP server works best with Claude Sonnet 4 for optimal performance and AI-powered features.
|
|
50
|
+
|
|
51
|
+
An enhanced MCP (Model Context Protocol) server for intelligent memory and task management, designed for AI assistants and development workflows. Features semantic search, automatic task extraction, knowledge graphs, and comprehensive project management.
|
|
52
|
+
|
|
53
|
+
## โจ Key Features
|
|
54
|
+
|
|
55
|
+
### ๐ง Intelligent Memory Management
|
|
56
|
+
- **Semantic search** using sentence-transformers for natural language queries
|
|
57
|
+
- **Automatic memory classification** with importance scoring
|
|
58
|
+
- **Duplicate detection** and content deduplication
|
|
59
|
+
- **File path associations** for code-memory relationships
|
|
60
|
+
- **Knowledge graph relationships** with automatic similarity detection
|
|
61
|
+
|
|
62
|
+
### ๐ Advanced Task Management
|
|
63
|
+
- **Auto-task extraction** from conversations and code comments
|
|
64
|
+
- **Priority and category management** with validation
|
|
65
|
+
- **Status tracking** (pending, in_progress, completed, cancelled)
|
|
66
|
+
- **Task-memory relationships** in knowledge graph
|
|
67
|
+
- **Project-based organization**
|
|
68
|
+
|
|
69
|
+
### ๐ง Enterprise Features
|
|
70
|
+
- **Performance monitoring** with detailed metrics
|
|
71
|
+
- **Health checks** and system diagnostics
|
|
72
|
+
- **Automatic cleanup** of old data and duplicates
|
|
73
|
+
- **Database optimization** tools
|
|
74
|
+
- **Comprehensive logging** and error tracking
|
|
75
|
+
|
|
76
|
+
### ๐ Easy Deployment
|
|
77
|
+
- **uvx compatible** for one-command installation
|
|
78
|
+
- **Zero-configuration** startup with sensible defaults
|
|
79
|
+
- **Environment variable** configuration
|
|
80
|
+
- **Cross-platform** support (Windows, macOS, Linux)
|
|
81
|
+
|
|
82
|
+
## ๐๏ธ Project Structure
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
enhanced-mcp-memory/
|
|
86
|
+
โโโ mcp_server_enhanced.py # Main MCP server
|
|
87
|
+
โโโ memory_manager.py # Core memory/task logic
|
|
88
|
+
โโโ database.py # Database operations
|
|
89
|
+
โโโ requirements.txt # Python dependencies
|
|
90
|
+
โโโ setup.py # Package configuration
|
|
91
|
+
โโโ data/ # SQLite database storage
|
|
92
|
+
โโโ logs/ # Application logs
|
|
93
|
+
โโโ tests/ # Test files
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## ๐ Quick Start
|
|
97
|
+
|
|
98
|
+
### Option 1: Using uvx (Recommended)
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# Install and run with uvx
|
|
102
|
+
uvx enhanced-mcp-memory
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Option 2: Manual Installation
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Clone and install
|
|
109
|
+
git clone https://github.com/cbunting99/enhanced-mcp-memory.git
|
|
110
|
+
cd enhanced-mcp-memory
|
|
111
|
+
pip install -e .
|
|
112
|
+
|
|
113
|
+
# Run the server
|
|
114
|
+
enhanced-mcp-memory
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Option 3: Development Setup
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Clone repository
|
|
121
|
+
git clone https://github.com/cbunting99/enhanced-mcp-memory.git
|
|
122
|
+
cd enhanced-mcp-memory
|
|
123
|
+
|
|
124
|
+
# Install dependencies
|
|
125
|
+
pip install -r requirements.txt
|
|
126
|
+
|
|
127
|
+
# Run directly
|
|
128
|
+
python mcp_server_enhanced.py
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## โ๏ธ MCP Configuration
|
|
132
|
+
|
|
133
|
+
Add to your MCP client configuration:
|
|
134
|
+
|
|
135
|
+
### For uvx installation:
|
|
136
|
+
```json
|
|
137
|
+
{
|
|
138
|
+
"mcpServers": {
|
|
139
|
+
"memory-manager": {
|
|
140
|
+
"command": "uvx",
|
|
141
|
+
"args": ["enhanced-mcp-memory"],
|
|
142
|
+
"env": {
|
|
143
|
+
"LOG_LEVEL": "INFO",
|
|
144
|
+
"MAX_MEMORY_ITEMS": "1000",
|
|
145
|
+
"ENABLE_AUTO_CLEANUP": "true"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### For local installation:
|
|
153
|
+
```json
|
|
154
|
+
{
|
|
155
|
+
"mcpServers": {
|
|
156
|
+
"memory-manager": {
|
|
157
|
+
"command": "python",
|
|
158
|
+
"args": ["mcp_server_enhanced.py"],
|
|
159
|
+
"cwd": "/path/to/enhanced-mcp-memory",
|
|
160
|
+
"env": {
|
|
161
|
+
"LOG_LEVEL": "INFO",
|
|
162
|
+
"MAX_MEMORY_ITEMS": "1000",
|
|
163
|
+
"ENABLE_AUTO_CLEANUP": "true"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## ๐ ๏ธ Available Tools
|
|
171
|
+
|
|
172
|
+
### Core Memory Tools
|
|
173
|
+
- `get_memory_context(query)` - Get relevant memories and context
|
|
174
|
+
- `create_task(title, description, priority, category)` - Create new tasks
|
|
175
|
+
- `get_tasks(status, limit)` - Retrieve tasks with filtering
|
|
176
|
+
- `get_project_summary()` - Get comprehensive project overview
|
|
177
|
+
|
|
178
|
+
### System Management Tools
|
|
179
|
+
- `health_check()` - Check server health and connectivity
|
|
180
|
+
- `get_performance_stats()` - Get detailed performance metrics
|
|
181
|
+
- `cleanup_old_data(days_old)` - Clean up old memories and tasks
|
|
182
|
+
- `optimize_memories()` - Remove duplicates and optimize storage
|
|
183
|
+
- `get_database_stats()` - Get comprehensive database statistics
|
|
184
|
+
|
|
185
|
+
## ๐ง Configuration Options
|
|
186
|
+
|
|
187
|
+
Configure via environment variables:
|
|
188
|
+
|
|
189
|
+
| Variable | Default | Description |
|
|
190
|
+
|----------|---------|-------------|
|
|
191
|
+
| `LOG_LEVEL` | `INFO` | Logging level (DEBUG, INFO, WARNING, ERROR) |
|
|
192
|
+
| `MAX_MEMORY_ITEMS` | `1000` | Maximum memories per project |
|
|
193
|
+
| `CLEANUP_INTERVAL_HOURS` | `24` | Auto-cleanup interval |
|
|
194
|
+
| `ENABLE_AUTO_CLEANUP` | `true` | Enable automatic cleanup |
|
|
195
|
+
| `MAX_CONCURRENT_REQUESTS` | `5` | Max concurrent requests |
|
|
196
|
+
| `REQUEST_TIMEOUT` | `30` | Request timeout in seconds |
|
|
197
|
+
|
|
198
|
+
## ๐งช Testing
|
|
199
|
+
|
|
200
|
+
Run the test suite to verify functionality:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# Run all tests
|
|
204
|
+
python test_enhanced_features.py
|
|
205
|
+
python test_new_project_system.py
|
|
206
|
+
python test_project_tools.py
|
|
207
|
+
|
|
208
|
+
# Test MCP protocol
|
|
209
|
+
python test_mcp_protocol.py
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## ๐ Performance & Monitoring
|
|
213
|
+
|
|
214
|
+
The server includes built-in performance tracking:
|
|
215
|
+
|
|
216
|
+
- **Response time monitoring** for all tools
|
|
217
|
+
- **Success rate tracking** with error counts
|
|
218
|
+
- **Memory usage statistics**
|
|
219
|
+
- **Database performance metrics**
|
|
220
|
+
- **Automatic health checks**
|
|
221
|
+
|
|
222
|
+
Access via the `get_performance_stats()` and `health_check()` tools.
|
|
223
|
+
|
|
224
|
+
## ๐๏ธ Database
|
|
225
|
+
|
|
226
|
+
- **SQLite** for reliable, file-based storage
|
|
227
|
+
- **Automatic schema migrations** for updates
|
|
228
|
+
- **Comprehensive indexing** for fast queries
|
|
229
|
+
- **Built-in backup and optimization** tools
|
|
230
|
+
- **Cross-platform compatibility**
|
|
231
|
+
|
|
232
|
+
Default location: `./data/mcp_memory.db`
|
|
233
|
+
|
|
234
|
+
## ๐ Semantic Search
|
|
235
|
+
|
|
236
|
+
Powered by sentence-transformers for intelligent memory retrieval:
|
|
237
|
+
|
|
238
|
+
- **Natural language queries** - "Find memories about database optimization"
|
|
239
|
+
- **Similarity-based matching** using embeddings
|
|
240
|
+
- **Configurable similarity thresholds**
|
|
241
|
+
- **Automatic model downloading** (~90MB on first run)
|
|
242
|
+
|
|
243
|
+
## ๐ Logging
|
|
244
|
+
|
|
245
|
+
Comprehensive logging system:
|
|
246
|
+
|
|
247
|
+
- **Daily log rotation** in `./logs/` directory
|
|
248
|
+
- **Structured logging** with timestamps and levels
|
|
249
|
+
- **Performance tracking** integrated
|
|
250
|
+
- **Error tracking** with stack traces
|
|
251
|
+
|
|
252
|
+
## ๐ค Contributing
|
|
253
|
+
|
|
254
|
+
1. Fork the repository
|
|
255
|
+
2. Create a feature branch
|
|
256
|
+
3. Add tests for new functionality
|
|
257
|
+
4. Ensure all tests pass
|
|
258
|
+
5. Submit a pull request
|
|
259
|
+
|
|
260
|
+
## ๐ License
|
|
261
|
+
|
|
262
|
+
MIT License - see LICENSE file for details.
|
|
263
|
+
|
|
264
|
+
## ๐ Support
|
|
265
|
+
|
|
266
|
+
- **Issues**: [GitHub Issues](https://github.com/cbunting99/enhanced-mcp-memory/issues)
|
|
267
|
+
- **Documentation**: [README](https://github.com/cbunting99/enhanced-mcp-memory#readme)
|
|
268
|
+
- **Discussions**: [GitHub Discussions](https://github.com/cbunting99/enhanced-mcp-memory/discussions)
|
|
269
|
+
|
|
270
|
+
## ๐ท๏ธ Version History
|
|
271
|
+
|
|
272
|
+
- **v1.2.0** - Enhanced MCP server with performance monitoring and health checks
|
|
273
|
+
- **v1.1.0** - Added semantic search and knowledge graph features
|
|
274
|
+
- **v1.0.0** - Initial release with basic memory and task management
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# Enhanced MCP Memory
|
|
2
|
+
|
|
3
|
+
> **โก Optimized for Claude Sonnet 4** - This MCP server works best with Claude Sonnet 4 for optimal performance and AI-powered features.
|
|
4
|
+
|
|
5
|
+
An enhanced MCP (Model Context Protocol) server for intelligent memory and task management, designed for AI assistants and development workflows. Features semantic search, automatic task extraction, knowledge graphs, and comprehensive project management.
|
|
6
|
+
|
|
7
|
+
## โจ Key Features
|
|
8
|
+
|
|
9
|
+
### ๐ง Intelligent Memory Management
|
|
10
|
+
- **Semantic search** using sentence-transformers for natural language queries
|
|
11
|
+
- **Automatic memory classification** with importance scoring
|
|
12
|
+
- **Duplicate detection** and content deduplication
|
|
13
|
+
- **File path associations** for code-memory relationships
|
|
14
|
+
- **Knowledge graph relationships** with automatic similarity detection
|
|
15
|
+
|
|
16
|
+
### ๐ Advanced Task Management
|
|
17
|
+
- **Auto-task extraction** from conversations and code comments
|
|
18
|
+
- **Priority and category management** with validation
|
|
19
|
+
- **Status tracking** (pending, in_progress, completed, cancelled)
|
|
20
|
+
- **Task-memory relationships** in knowledge graph
|
|
21
|
+
- **Project-based organization**
|
|
22
|
+
|
|
23
|
+
### ๐ง Enterprise Features
|
|
24
|
+
- **Performance monitoring** with detailed metrics
|
|
25
|
+
- **Health checks** and system diagnostics
|
|
26
|
+
- **Automatic cleanup** of old data and duplicates
|
|
27
|
+
- **Database optimization** tools
|
|
28
|
+
- **Comprehensive logging** and error tracking
|
|
29
|
+
|
|
30
|
+
### ๐ Easy Deployment
|
|
31
|
+
- **uvx compatible** for one-command installation
|
|
32
|
+
- **Zero-configuration** startup with sensible defaults
|
|
33
|
+
- **Environment variable** configuration
|
|
34
|
+
- **Cross-platform** support (Windows, macOS, Linux)
|
|
35
|
+
|
|
36
|
+
## ๐๏ธ Project Structure
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
enhanced-mcp-memory/
|
|
40
|
+
โโโ mcp_server_enhanced.py # Main MCP server
|
|
41
|
+
โโโ memory_manager.py # Core memory/task logic
|
|
42
|
+
โโโ database.py # Database operations
|
|
43
|
+
โโโ requirements.txt # Python dependencies
|
|
44
|
+
โโโ setup.py # Package configuration
|
|
45
|
+
โโโ data/ # SQLite database storage
|
|
46
|
+
โโโ logs/ # Application logs
|
|
47
|
+
โโโ tests/ # Test files
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## ๐ Quick Start
|
|
51
|
+
|
|
52
|
+
### Option 1: Using uvx (Recommended)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Install and run with uvx
|
|
56
|
+
uvx enhanced-mcp-memory
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Option 2: Manual Installation
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Clone and install
|
|
63
|
+
git clone https://github.com/cbunting99/enhanced-mcp-memory.git
|
|
64
|
+
cd enhanced-mcp-memory
|
|
65
|
+
pip install -e .
|
|
66
|
+
|
|
67
|
+
# Run the server
|
|
68
|
+
enhanced-mcp-memory
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Option 3: Development Setup
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Clone repository
|
|
75
|
+
git clone https://github.com/cbunting99/enhanced-mcp-memory.git
|
|
76
|
+
cd enhanced-mcp-memory
|
|
77
|
+
|
|
78
|
+
# Install dependencies
|
|
79
|
+
pip install -r requirements.txt
|
|
80
|
+
|
|
81
|
+
# Run directly
|
|
82
|
+
python mcp_server_enhanced.py
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## โ๏ธ MCP Configuration
|
|
86
|
+
|
|
87
|
+
Add to your MCP client configuration:
|
|
88
|
+
|
|
89
|
+
### For uvx installation:
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"mcpServers": {
|
|
93
|
+
"memory-manager": {
|
|
94
|
+
"command": "uvx",
|
|
95
|
+
"args": ["enhanced-mcp-memory"],
|
|
96
|
+
"env": {
|
|
97
|
+
"LOG_LEVEL": "INFO",
|
|
98
|
+
"MAX_MEMORY_ITEMS": "1000",
|
|
99
|
+
"ENABLE_AUTO_CLEANUP": "true"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### For local installation:
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"mcpServers": {
|
|
110
|
+
"memory-manager": {
|
|
111
|
+
"command": "python",
|
|
112
|
+
"args": ["mcp_server_enhanced.py"],
|
|
113
|
+
"cwd": "/path/to/enhanced-mcp-memory",
|
|
114
|
+
"env": {
|
|
115
|
+
"LOG_LEVEL": "INFO",
|
|
116
|
+
"MAX_MEMORY_ITEMS": "1000",
|
|
117
|
+
"ENABLE_AUTO_CLEANUP": "true"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## ๐ ๏ธ Available Tools
|
|
125
|
+
|
|
126
|
+
### Core Memory Tools
|
|
127
|
+
- `get_memory_context(query)` - Get relevant memories and context
|
|
128
|
+
- `create_task(title, description, priority, category)` - Create new tasks
|
|
129
|
+
- `get_tasks(status, limit)` - Retrieve tasks with filtering
|
|
130
|
+
- `get_project_summary()` - Get comprehensive project overview
|
|
131
|
+
|
|
132
|
+
### System Management Tools
|
|
133
|
+
- `health_check()` - Check server health and connectivity
|
|
134
|
+
- `get_performance_stats()` - Get detailed performance metrics
|
|
135
|
+
- `cleanup_old_data(days_old)` - Clean up old memories and tasks
|
|
136
|
+
- `optimize_memories()` - Remove duplicates and optimize storage
|
|
137
|
+
- `get_database_stats()` - Get comprehensive database statistics
|
|
138
|
+
|
|
139
|
+
## ๐ง Configuration Options
|
|
140
|
+
|
|
141
|
+
Configure via environment variables:
|
|
142
|
+
|
|
143
|
+
| Variable | Default | Description |
|
|
144
|
+
|----------|---------|-------------|
|
|
145
|
+
| `LOG_LEVEL` | `INFO` | Logging level (DEBUG, INFO, WARNING, ERROR) |
|
|
146
|
+
| `MAX_MEMORY_ITEMS` | `1000` | Maximum memories per project |
|
|
147
|
+
| `CLEANUP_INTERVAL_HOURS` | `24` | Auto-cleanup interval |
|
|
148
|
+
| `ENABLE_AUTO_CLEANUP` | `true` | Enable automatic cleanup |
|
|
149
|
+
| `MAX_CONCURRENT_REQUESTS` | `5` | Max concurrent requests |
|
|
150
|
+
| `REQUEST_TIMEOUT` | `30` | Request timeout in seconds |
|
|
151
|
+
|
|
152
|
+
## ๐งช Testing
|
|
153
|
+
|
|
154
|
+
Run the test suite to verify functionality:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Run all tests
|
|
158
|
+
python test_enhanced_features.py
|
|
159
|
+
python test_new_project_system.py
|
|
160
|
+
python test_project_tools.py
|
|
161
|
+
|
|
162
|
+
# Test MCP protocol
|
|
163
|
+
python test_mcp_protocol.py
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## ๐ Performance & Monitoring
|
|
167
|
+
|
|
168
|
+
The server includes built-in performance tracking:
|
|
169
|
+
|
|
170
|
+
- **Response time monitoring** for all tools
|
|
171
|
+
- **Success rate tracking** with error counts
|
|
172
|
+
- **Memory usage statistics**
|
|
173
|
+
- **Database performance metrics**
|
|
174
|
+
- **Automatic health checks**
|
|
175
|
+
|
|
176
|
+
Access via the `get_performance_stats()` and `health_check()` tools.
|
|
177
|
+
|
|
178
|
+
## ๐๏ธ Database
|
|
179
|
+
|
|
180
|
+
- **SQLite** for reliable, file-based storage
|
|
181
|
+
- **Automatic schema migrations** for updates
|
|
182
|
+
- **Comprehensive indexing** for fast queries
|
|
183
|
+
- **Built-in backup and optimization** tools
|
|
184
|
+
- **Cross-platform compatibility**
|
|
185
|
+
|
|
186
|
+
Default location: `./data/mcp_memory.db`
|
|
187
|
+
|
|
188
|
+
## ๐ Semantic Search
|
|
189
|
+
|
|
190
|
+
Powered by sentence-transformers for intelligent memory retrieval:
|
|
191
|
+
|
|
192
|
+
- **Natural language queries** - "Find memories about database optimization"
|
|
193
|
+
- **Similarity-based matching** using embeddings
|
|
194
|
+
- **Configurable similarity thresholds**
|
|
195
|
+
- **Automatic model downloading** (~90MB on first run)
|
|
196
|
+
|
|
197
|
+
## ๐ Logging
|
|
198
|
+
|
|
199
|
+
Comprehensive logging system:
|
|
200
|
+
|
|
201
|
+
- **Daily log rotation** in `./logs/` directory
|
|
202
|
+
- **Structured logging** with timestamps and levels
|
|
203
|
+
- **Performance tracking** integrated
|
|
204
|
+
- **Error tracking** with stack traces
|
|
205
|
+
|
|
206
|
+
## ๐ค Contributing
|
|
207
|
+
|
|
208
|
+
1. Fork the repository
|
|
209
|
+
2. Create a feature branch
|
|
210
|
+
3. Add tests for new functionality
|
|
211
|
+
4. Ensure all tests pass
|
|
212
|
+
5. Submit a pull request
|
|
213
|
+
|
|
214
|
+
## ๐ License
|
|
215
|
+
|
|
216
|
+
MIT License - see LICENSE file for details.
|
|
217
|
+
|
|
218
|
+
## ๐ Support
|
|
219
|
+
|
|
220
|
+
- **Issues**: [GitHub Issues](https://github.com/cbunting99/enhanced-mcp-memory/issues)
|
|
221
|
+
- **Documentation**: [README](https://github.com/cbunting99/enhanced-mcp-memory#readme)
|
|
222
|
+
- **Discussions**: [GitHub Discussions](https://github.com/cbunting99/enhanced-mcp-memory/discussions)
|
|
223
|
+
|
|
224
|
+
## ๐ท๏ธ Version History
|
|
225
|
+
|
|
226
|
+
- **v1.2.0** - Enhanced MCP server with performance monitoring and health checks
|
|
227
|
+
- **v1.1.0** - Added semantic search and knowledge graph features
|
|
228
|
+
- **v1.0.0** - Initial release with basic memory and task management
|