mcp-sqlite-memory-bank 0.1.0__tar.gz → 1.1.0__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.
- {mcp_sqlite_memory_bank-0.1.0/src/mcp_sqlite_memory_bank.egg-info → mcp_sqlite_memory_bank-1.1.0}/PKG-INFO +40 -15
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/README.md +35 -11
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/pyproject.toml +7 -2
- mcp_sqlite_memory_bank-1.1.0/setup.cfg +14 -0
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank/__init__.py +19 -16
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank/server.py +296 -197
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank/types.py +6 -2
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank/utils.py +21 -11
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0/src/mcp_sqlite_memory_bank.egg-info}/PKG-INFO +40 -15
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/tests/test_api.py +31 -21
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/tests/test_server.py +57 -17
- mcp_sqlite_memory_bank-0.1.0/setup.cfg +0 -27
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/LICENSE +0 -0
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/MANIFEST.in +0 -0
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank/py.typed +0 -0
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank.egg-info/SOURCES.txt +0 -0
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank.egg-info/dependency_links.txt +0 -0
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank.egg-info/requires.txt +0 -0
- {mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank.egg-info/top_level.txt +0 -0
@@ -1,11 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mcp_sqlite_memory_bank
|
3
|
-
Version:
|
3
|
+
Version: 1.1.0
|
4
4
|
Summary: A dynamic, agent/LLM-friendly SQLite memory bank for MCP servers.
|
5
|
-
|
6
|
-
Author: Robert Meisner
|
7
|
-
Author-email: Robert Meisner <your-email@example.com>
|
5
|
+
Author-email: Robert Meisner <robert@catchit.pl>
|
8
6
|
License-Expression: MIT
|
7
|
+
Project-URL: Homepage, https://github.com/robertmeisner/mcp_sqlite_memory_bank
|
8
|
+
Project-URL: Source, https://github.com/robertmeisner/mcp_sqlite_memory_bank
|
9
|
+
Project-URL: Issues, https://github.com/robertmeisner/mcp_sqlite_memory_bank/issues
|
9
10
|
Classifier: Programming Language :: Python :: 3
|
10
11
|
Classifier: Operating System :: OS Independent
|
11
12
|
Requires-Python: >=3.8
|
@@ -18,10 +19,34 @@ Provides-Extra: test
|
|
18
19
|
Requires-Dist: pytest; extra == "test"
|
19
20
|
Dynamic: license-file
|
20
21
|
|
22
|
+
## Development Setup
|
23
|
+
|
24
|
+
To ensure code quality and consistent style, this project uses `flake8` and `pre-commit` hooks.
|
25
|
+
|
26
|
+
**Install development dependencies:**
|
27
|
+
|
28
|
+
```sh
|
29
|
+
pip install -r requirements.txt
|
30
|
+
```
|
31
|
+
|
32
|
+
**Enable pre-commit hooks (recommended):**
|
33
|
+
|
34
|
+
```sh
|
35
|
+
pre-commit install
|
36
|
+
```
|
37
|
+
|
38
|
+
This will automatically run `flake8` on staged files before every commit. To manually check all files:
|
39
|
+
|
40
|
+
```sh
|
41
|
+
pre-commit run --all-files
|
42
|
+
```
|
43
|
+
|
44
|
+
If you see lint errors, fix them before committing. You can configure linting rules in the `.flake8` file.
|
45
|
+
|
21
46
|
# mcp_sqlite_memory_bank
|
22
47
|
|
23
48
|

|
24
|
-

|
25
50
|

|
26
51
|
|
27
52
|
## Overview
|
@@ -98,7 +123,7 @@ pip install mcp_sqlite_memory_bank
|
|
98
123
|
|
99
124
|
### Option 2: Clone and Install from Source (For Contributors)
|
100
125
|
```bash
|
101
|
-
git clone https://github.com/
|
126
|
+
git clone https://github.com/robertmeisner/mcp_sqlite_memory_bank.git
|
102
127
|
cd mcp_sqlite_memory_bank
|
103
128
|
pip install -e .
|
104
129
|
```
|
@@ -121,20 +146,20 @@ uvx run mcp_sqlite_memory_bank
|
|
121
146
|
uvx run mcp_sqlite_memory_bank@1.0.0
|
122
147
|
```
|
123
148
|
|
124
|
-
### Option 5: Docker (Containerized)
|
149
|
+
### Option 5: Docker (Containerized) # Coming soon - not yet implemented
|
125
150
|
```bash
|
126
151
|
# Pull the image
|
127
|
-
docker pull
|
152
|
+
docker pull robertmeisner/mcp_sqlite_memory_bank:latest
|
128
153
|
|
129
154
|
# Run with stdio transport (for Claude Desktop)
|
130
155
|
docker run -i --rm \
|
131
156
|
--mount type=bind,src=/path/to/data/dir,dst=/data \
|
132
|
-
|
157
|
+
robertmeisner/mcp_sqlite_memory_bank:latest stdio
|
133
158
|
|
134
|
-
# Run with HTTP transport (for API access)
|
159
|
+
# Run with HTTP transport (for API access)
|
135
160
|
docker run -p 8000:8000 --rm \
|
136
161
|
--mount type=bind,src=/path/to/data/dir,dst=/data \
|
137
|
-
|
162
|
+
robertmeisner/mcp_sqlite_memory_bank:latest http
|
138
163
|
```
|
139
164
|
|
140
165
|
### Transport Options
|
@@ -176,7 +201,7 @@ DB_PATH=./test.db
|
|
176
201
|
#### Quick Install
|
177
202
|
[Install with Python Module in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=sqlite-memory&config=%7B%22command%22%3A%22python%22%2C%22args%22%3A%5B%22-m%22%2C%22mcp_sqlite_memory_bank%22%5D%7D)
|
178
203
|
|
179
|
-
[Install with Docker in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=sqlite-memory&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fdata%22%2C%
|
204
|
+
[Install with Docker in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=sqlite-memory&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fdata%22%2C%22robertmeisner%2Fmcp_sqlite_memory_bank%3Alatest%22%5D%7D)
|
180
205
|
|
181
206
|
#### Manual Configuration
|
182
207
|
|
@@ -233,7 +258,7 @@ Add to your `claude_desktop_config.json`:
|
|
233
258
|
"-i",
|
234
259
|
"--rm",
|
235
260
|
"--mount", "type=bind,src=/path/to/data/dir,dst=/data",
|
236
|
-
"
|
261
|
+
"robertmeisner/mcp_sqlite_memory_bank:latest"
|
237
262
|
],
|
238
263
|
"env": {
|
239
264
|
"DB_PATH": "/data/memory.db"
|
@@ -425,8 +450,8 @@ pytest --import-mode=importlib
|
|
425
450
|
|
426
451
|
## Support & Contact
|
427
452
|
|
428
|
-
- [GitHub Issues](https://github.com/
|
429
|
-
- [GitHub Discussions](https://github.com/
|
453
|
+
- [GitHub Issues](https://github.com/robertmeisner/mcp_sqlite_memory_bank/issues) — Bug reports & feature requests
|
454
|
+
- [GitHub Discussions](https://github.com/robertmeisner/mcp_sqlite_memory_bank/discussions) — Q&A and community support
|
430
455
|
- Email: your@email.com
|
431
456
|
|
432
457
|
---
|
@@ -1,7 +1,31 @@
|
|
1
|
+
## Development Setup
|
2
|
+
|
3
|
+
To ensure code quality and consistent style, this project uses `flake8` and `pre-commit` hooks.
|
4
|
+
|
5
|
+
**Install development dependencies:**
|
6
|
+
|
7
|
+
```sh
|
8
|
+
pip install -r requirements.txt
|
9
|
+
```
|
10
|
+
|
11
|
+
**Enable pre-commit hooks (recommended):**
|
12
|
+
|
13
|
+
```sh
|
14
|
+
pre-commit install
|
15
|
+
```
|
16
|
+
|
17
|
+
This will automatically run `flake8` on staged files before every commit. To manually check all files:
|
18
|
+
|
19
|
+
```sh
|
20
|
+
pre-commit run --all-files
|
21
|
+
```
|
22
|
+
|
23
|
+
If you see lint errors, fix them before committing. You can configure linting rules in the `.flake8` file.
|
24
|
+
|
1
25
|
# mcp_sqlite_memory_bank
|
2
26
|
|
3
27
|

|
4
|
-

|
5
29
|

|
6
30
|
|
7
31
|
## Overview
|
@@ -78,7 +102,7 @@ pip install mcp_sqlite_memory_bank
|
|
78
102
|
|
79
103
|
### Option 2: Clone and Install from Source (For Contributors)
|
80
104
|
```bash
|
81
|
-
git clone https://github.com/
|
105
|
+
git clone https://github.com/robertmeisner/mcp_sqlite_memory_bank.git
|
82
106
|
cd mcp_sqlite_memory_bank
|
83
107
|
pip install -e .
|
84
108
|
```
|
@@ -101,20 +125,20 @@ uvx run mcp_sqlite_memory_bank
|
|
101
125
|
uvx run mcp_sqlite_memory_bank@1.0.0
|
102
126
|
```
|
103
127
|
|
104
|
-
### Option 5: Docker (Containerized)
|
128
|
+
### Option 5: Docker (Containerized) # Coming soon - not yet implemented
|
105
129
|
```bash
|
106
130
|
# Pull the image
|
107
|
-
docker pull
|
131
|
+
docker pull robertmeisner/mcp_sqlite_memory_bank:latest
|
108
132
|
|
109
133
|
# Run with stdio transport (for Claude Desktop)
|
110
134
|
docker run -i --rm \
|
111
135
|
--mount type=bind,src=/path/to/data/dir,dst=/data \
|
112
|
-
|
136
|
+
robertmeisner/mcp_sqlite_memory_bank:latest stdio
|
113
137
|
|
114
|
-
# Run with HTTP transport (for API access)
|
138
|
+
# Run with HTTP transport (for API access)
|
115
139
|
docker run -p 8000:8000 --rm \
|
116
140
|
--mount type=bind,src=/path/to/data/dir,dst=/data \
|
117
|
-
|
141
|
+
robertmeisner/mcp_sqlite_memory_bank:latest http
|
118
142
|
```
|
119
143
|
|
120
144
|
### Transport Options
|
@@ -156,7 +180,7 @@ DB_PATH=./test.db
|
|
156
180
|
#### Quick Install
|
157
181
|
[Install with Python Module in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=sqlite-memory&config=%7B%22command%22%3A%22python%22%2C%22args%22%3A%5B%22-m%22%2C%22mcp_sqlite_memory_bank%22%5D%7D)
|
158
182
|
|
159
|
-
[Install with Docker in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=sqlite-memory&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fdata%22%2C%
|
183
|
+
[Install with Docker in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=sqlite-memory&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fdata%22%2C%22robertmeisner%2Fmcp_sqlite_memory_bank%3Alatest%22%5D%7D)
|
160
184
|
|
161
185
|
#### Manual Configuration
|
162
186
|
|
@@ -213,7 +237,7 @@ Add to your `claude_desktop_config.json`:
|
|
213
237
|
"-i",
|
214
238
|
"--rm",
|
215
239
|
"--mount", "type=bind,src=/path/to/data/dir,dst=/data",
|
216
|
-
"
|
240
|
+
"robertmeisner/mcp_sqlite_memory_bank:latest"
|
217
241
|
],
|
218
242
|
"env": {
|
219
243
|
"DB_PATH": "/data/memory.db"
|
@@ -405,8 +429,8 @@ pytest --import-mode=importlib
|
|
405
429
|
|
406
430
|
## Support & Contact
|
407
431
|
|
408
|
-
- [GitHub Issues](https://github.com/
|
409
|
-
- [GitHub Discussions](https://github.com/
|
432
|
+
- [GitHub Issues](https://github.com/robertmeisner/mcp_sqlite_memory_bank/issues) — Bug reports & feature requests
|
433
|
+
- [GitHub Discussions](https://github.com/robertmeisner/mcp_sqlite_memory_bank/discussions) — Q&A and community support
|
410
434
|
- Email: your@email.com
|
411
435
|
|
412
436
|
---
|
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "mcp_sqlite_memory_bank"
|
7
|
-
version = "
|
7
|
+
version = "1.1.0"
|
8
8
|
description = "A dynamic, agent/LLM-friendly SQLite memory bank for MCP servers."
|
9
9
|
authors = [
|
10
|
-
{ name="Robert Meisner", email="
|
10
|
+
{ name="Robert Meisner", email="robert@catchit.pl" }
|
11
11
|
]
|
12
12
|
license = "MIT"
|
13
13
|
license-files = ["LICENSE"]
|
@@ -22,6 +22,11 @@ dependencies = [
|
|
22
22
|
"uvicorn>=0.22.0",
|
23
23
|
"pydantic>=1.10.0"
|
24
24
|
]
|
25
|
+
|
26
|
+
[project.urls]
|
27
|
+
Homepage = "https://github.com/robertmeisner/mcp_sqlite_memory_bank"
|
28
|
+
Source = "https://github.com/robertmeisner/mcp_sqlite_memory_bank"
|
29
|
+
Issues = "https://github.com/robertmeisner/mcp_sqlite_memory_bank/issues"
|
25
30
|
|
26
31
|
[project.optional-dependencies]
|
27
32
|
test = ["pytest"]
|
{mcp_sqlite_memory_bank-0.1.0 → mcp_sqlite_memory_bank-1.1.0}/src/mcp_sqlite_memory_bank/__init__.py
RENAMED
@@ -1,9 +1,11 @@
|
|
1
1
|
"""
|
2
|
-
mcp_sqlite_memory_bank: A dynamic, agent/LLM-friendly SQLite memory bank for
|
2
|
+
mcp_sqlite_memory_bank: A dynamic, agent/LLM-friendly SQLite memory bank for
|
3
|
+
MCP servers.
|
3
4
|
|
4
|
-
This package provides tools for creating, exploring, and managing SQLite
|
5
|
-
knowledge graphs
|
6
|
-
LLM-powered tools to interact with structured data in a
|
5
|
+
This package provides tools for creating, exploring, and managing SQLite
|
6
|
+
tables and knowledge graphs - enabling Copilot, Claude Desktop, VS Code,
|
7
|
+
Cursor, and other LLM-powered tools to interact with structured data in a
|
8
|
+
safe, explicit, and extensible way.
|
7
9
|
|
8
10
|
Author: Robert Meisner
|
9
11
|
Version: 0.1.0
|
@@ -23,14 +25,15 @@ from .server import (
|
|
23
25
|
update_rows,
|
24
26
|
delete_rows,
|
25
27
|
run_select_query,
|
26
|
-
|
28
|
+
|
27
29
|
# FastMCP app
|
28
30
|
app,
|
29
|
-
|
31
|
+
|
30
32
|
# Constants
|
31
|
-
DB_PATH
|
33
|
+
DB_PATH,
|
32
34
|
)
|
33
35
|
|
36
|
+
|
34
37
|
from .types import (
|
35
38
|
# Response types
|
36
39
|
CreateTableResponse,
|
@@ -46,7 +49,7 @@ from .types import (
|
|
46
49
|
SelectQueryResponse,
|
47
50
|
ErrorResponse,
|
48
51
|
ToolResponse,
|
49
|
-
|
52
|
+
|
50
53
|
# Error types
|
51
54
|
ValidationError,
|
52
55
|
DatabaseError,
|
@@ -54,10 +57,10 @@ from .types import (
|
|
54
57
|
DataError,
|
55
58
|
MemoryBankError,
|
56
59
|
ErrorCategory,
|
57
|
-
|
60
|
+
|
58
61
|
# Data types
|
59
62
|
TableColumn,
|
60
|
-
SqliteType
|
63
|
+
SqliteType,
|
61
64
|
)
|
62
65
|
|
63
66
|
# Package metadata
|
@@ -76,13 +79,13 @@ __all__ = [
|
|
76
79
|
"update_rows",
|
77
80
|
"delete_rows",
|
78
81
|
"run_select_query",
|
79
|
-
|
82
|
+
|
80
83
|
# FastMCP app
|
81
84
|
"app",
|
82
|
-
|
85
|
+
|
83
86
|
# Constants
|
84
87
|
"DB_PATH",
|
85
|
-
|
88
|
+
|
86
89
|
# Response types
|
87
90
|
"CreateTableResponse",
|
88
91
|
"DropTableResponse",
|
@@ -97,7 +100,7 @@ __all__ = [
|
|
97
100
|
"SelectQueryResponse",
|
98
101
|
"ErrorResponse",
|
99
102
|
"ToolResponse",
|
100
|
-
|
103
|
+
|
101
104
|
# Error types
|
102
105
|
"ValidationError",
|
103
106
|
"DatabaseError",
|
@@ -105,8 +108,8 @@ __all__ = [
|
|
105
108
|
"DataError",
|
106
109
|
"MemoryBankError",
|
107
110
|
"ErrorCategory",
|
108
|
-
|
111
|
+
|
109
112
|
# Data types
|
110
113
|
"TableColumn",
|
111
|
-
"SqliteType"
|
114
|
+
"SqliteType",
|
112
115
|
]
|