mindwtr-mcp 1.0.0 → 1.0.5
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.
- package/README.md +40 -11
- package/dist/index.js +6933 -1814
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Mindwtr MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MCP server for Mindwtr. Connect MCP clients (Claude Desktop, etc.) to either your local Mindwtr SQLite database or a self-hosted Mindwtr Cloud endpoint in read-only mode.
|
|
4
4
|
|
|
5
|
-
This is a **
|
|
5
|
+
This is a **stdio** server (no hosted HTTP endpoint). MCP clients launch it as a subprocess and talk over JSON-RPC on stdin/stdout.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@ On desktop, the app shows the exact local data path in **Settings -> Sync -> Loc
|
|
|
21
21
|
- Node.js 18+ (for the MCP client that spawns the server)
|
|
22
22
|
- npm package installs use better-sqlite3, a native SQLite addon. If no prebuilt binary is available for your platform, npm needs a working C/C++ build toolchain and Python for node-gyp.
|
|
23
23
|
- Bun (recommended for development in this repo)
|
|
24
|
-
- A local Mindwtr database (`mindwtr.db`)
|
|
24
|
+
- A local Mindwtr database (`mindwtr.db`) for local mode, or a self-hosted Mindwtr Cloud URL and bearer token for read-only Cloud mode
|
|
25
25
|
|
|
26
26
|
Default database locations:
|
|
27
27
|
- Linux: `~/.local/share/mindwtr/mindwtr.db`
|
|
@@ -34,11 +34,16 @@ Additional macOS path for sandboxed builds:
|
|
|
34
34
|
If `mindwtr.db` is missing but `data.json` exists in the same desktop data folder, the MCP server will bootstrap a fresh SQLite database from that local data snapshot on first start.
|
|
35
35
|
Desktop Settings → Sync → Local Data shows the exact storage location used by the app.
|
|
36
36
|
|
|
37
|
-
You can override with:
|
|
37
|
+
You can override local mode with:
|
|
38
38
|
- `--db /path/to/mindwtr.db`
|
|
39
39
|
- `MINDWTR_DB_PATH=/path/to/mindwtr.db`
|
|
40
40
|
- `MINDWTR_DB=/path/to/mindwtr.db`
|
|
41
41
|
|
|
42
|
+
For self-hosted Cloud mode, use:
|
|
43
|
+
- `--cloud-url https://mindwtr.example.com` or `MINDWTR_MCP_CLOUD_URL`
|
|
44
|
+
- `--cloud-token <token>` or `MINDWTR_MCP_CLOUD_TOKEN`
|
|
45
|
+
- optional `--cloud-allow-insecure-http=true` for trusted private HTTP deployments
|
|
46
|
+
|
|
42
47
|
---
|
|
43
48
|
|
|
44
49
|
## Start / Stop
|
|
@@ -62,14 +67,38 @@ Or let an MCP client launch it through npx:
|
|
|
62
67
|
"-y",
|
|
63
68
|
"mindwtr-mcp",
|
|
64
69
|
"--db",
|
|
65
|
-
"
|
|
70
|
+
"~/.local/share/mindwtr/mindwtr.db"
|
|
66
71
|
]
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
75
|
```
|
|
71
76
|
|
|
72
|
-
The npm package is read-only by default. Add `--write` only when you explicitly want add/update/complete/delete tools enabled.
|
|
77
|
+
The npm package is read-only by default. Add `--write` only when you explicitly want add/update/complete/delete tools enabled against a local database.
|
|
78
|
+
|
|
79
|
+
### Read-only self-hosted Cloud mode
|
|
80
|
+
|
|
81
|
+
Use Cloud mode when you run your own Mindwtr Cloud server and want MCP read tools without pointing the helper at a local SQLite database:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npx -y mindwtr-mcp \
|
|
85
|
+
--cloud-url "https://mindwtr.example.com" \
|
|
86
|
+
--cloud-token "$MINDWTR_TOKEN"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Or pass the same values through environment variables:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
MINDWTR_MCP_CLOUD_URL="https://mindwtr.example.com" \
|
|
93
|
+
MINDWTR_MCP_CLOUD_TOKEN="$MINDWTR_TOKEN" \
|
|
94
|
+
npx -y mindwtr-mcp
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Cloud mode uses the self-hosted Cloud API and is always read-only. It reads the current `/v1/data` snapshot, exposes task/project/section/area/person read tools through MCP, and returns `read_only` for write tools. Do not pass `--write` with `--cloud-url`.
|
|
98
|
+
|
|
99
|
+
This does not make Mindwtr Cloud itself a hosted MCP server. It is still the same stdio helper, backed by a Cloud URL that you operate.
|
|
100
|
+
|
|
101
|
+
For private HTTP test deployments, local/private HTTP URLs are allowed by the shared Cloud client rules. Use `--cloud-allow-insecure-http=true` only for a self-hosted endpoint you intentionally trust.
|
|
73
102
|
|
|
74
103
|
### Run directly from the repo
|
|
75
104
|
|
|
@@ -179,7 +208,7 @@ MCP clients run the server as a subprocess. You point them to **the command** an
|
|
|
179
208
|
"args": [
|
|
180
209
|
"/absolute/path/to/Mindwtr/apps/mcp-server/src/index.ts",
|
|
181
210
|
"--db",
|
|
182
|
-
"
|
|
211
|
+
"~/.local/share/mindwtr/mindwtr.db"
|
|
183
212
|
]
|
|
184
213
|
}
|
|
185
214
|
}
|
|
@@ -203,7 +232,7 @@ cd /path/to/Mindwtr && bun run --filter mindwtr-mcp build
|
|
|
203
232
|
"args": [
|
|
204
233
|
"/absolute/path/to/Mindwtr/apps/mcp-server/dist/index.js",
|
|
205
234
|
"--db",
|
|
206
|
-
"
|
|
235
|
+
"~/.local/share/mindwtr/mindwtr.db"
|
|
207
236
|
]
|
|
208
237
|
}
|
|
209
238
|
}
|
|
@@ -244,7 +273,7 @@ Or edit `~/.claude.json` directly:
|
|
|
244
273
|
"args": [
|
|
245
274
|
"/absolute/path/to/Mindwtr/apps/mcp-server/src/index.ts",
|
|
246
275
|
"--db",
|
|
247
|
-
"
|
|
276
|
+
"~/.local/share/mindwtr/mindwtr.db",
|
|
248
277
|
"--write"
|
|
249
278
|
]
|
|
250
279
|
}
|
|
@@ -405,7 +434,7 @@ All tools return JSON text payloads with the resulting task, project, section, a
|
|
|
405
434
|
|
|
406
435
|
1) Start the server (read‑only):
|
|
407
436
|
```bash
|
|
408
|
-
bun run mindwtr:mcp -- --db "
|
|
437
|
+
bun run mindwtr:mcp -- --db "~/.local/share/mindwtr/mindwtr.db"
|
|
409
438
|
```
|
|
410
439
|
|
|
411
440
|
2) Connect via your MCP client and run:
|
|
@@ -413,7 +442,7 @@ bun run mindwtr:mcp -- --db "/home/dd/.local/share/mindwtr/mindwtr.db"
|
|
|
413
442
|
|
|
414
443
|
If you want to test writes, restart with `--write`:
|
|
415
444
|
```bash
|
|
416
|
-
bun run mindwtr:mcp -- --db "
|
|
445
|
+
bun run mindwtr:mcp -- --db "~/.local/share/mindwtr/mindwtr.db" --write
|
|
417
446
|
```
|
|
418
447
|
|
|
419
448
|
Then test:
|