@achmadya-dev/mcp-sqlite-query 0.2.0 → 0.2.2
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 +10 -15
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -30,35 +30,30 @@ Or use `envFile` instead of inline `env`.
|
|
|
30
30
|
## Develop from source
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
33
|
+
git clone https://github.com/achmadya-dev/mcp-sqlite-query.git
|
|
34
|
+
cd mcp-sqlite-query
|
|
34
35
|
pnpm install
|
|
35
|
-
|
|
36
|
-
pnpm
|
|
36
|
+
pnpm run build
|
|
37
|
+
pnpm test
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
`.cursor/mcp.json`:
|
|
40
|
+
Open the repo root in Cursor and point at a database file (or `:memory:`):
|
|
42
41
|
|
|
43
42
|
```json
|
|
44
43
|
{
|
|
45
44
|
"mcpServers": {
|
|
46
45
|
"sqlite": {
|
|
47
46
|
"command": "node",
|
|
48
|
-
"args": ["${workspaceFolder}/
|
|
49
|
-
"
|
|
47
|
+
"args": ["${workspaceFolder}/dist/index.js"],
|
|
48
|
+
"env": {
|
|
49
|
+
"SQLITE_DB_PATH": "/absolute/path/to/database.db"
|
|
50
|
+
}
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
```
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
```env
|
|
58
|
-
SQLITE_DB_PATH=docker/sqlite/data/dev.db
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Path is relative to the workspace root when Cursor starts the server.
|
|
56
|
+
Or use `envFile` pointing at a `.env` in the repo root. Paths are resolved relative to the workspace folder when Cursor starts the server.
|
|
62
57
|
|
|
63
58
|
## Environment variables
|
|
64
59
|
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { runMcp } from "@achmadya-dev/mcp-core";
|
|
3
3
|
import packageJson from "../package.json" with { type: "json" };
|
|
4
4
|
import { sqlite_ddl } from "./tools/sqlite_ddl.js";
|
|
5
5
|
import { sqlite_delete } from "./tools/sqlite_delete.js";
|
|
6
6
|
import { sqlite_insert } from "./tools/sqlite_insert.js";
|
|
7
7
|
import { sqlite_select } from "./tools/sqlite_select.js";
|
|
8
8
|
import { sqlite_update } from "./tools/sqlite_update.js";
|
|
9
|
-
await
|
|
9
|
+
await runMcp({
|
|
10
10
|
name: "SQLite Database",
|
|
11
11
|
version: packageJson.version,
|
|
12
|
+
transport: "stdio",
|
|
12
13
|
tools: [sqlite_select, sqlite_insert, sqlite_update, sqlite_delete, sqlite_ddl],
|
|
13
14
|
});
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,MAAM,CAAC;IACX,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,WAAW,CAAC,OAAO;IAC5B,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,CAAC;CAChF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@achmadya-dev/mcp-sqlite-query",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for SQLite to run SQL queries via stdio (read-only by default)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "achmadya",
|
|
@@ -30,17 +30,18 @@
|
|
|
30
30
|
"node": ">=22.5.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@achmadya-dev/mcp-core": "^0.
|
|
33
|
+
"@achmadya-dev/mcp-core": "^0.6.0",
|
|
34
34
|
"zod": "4.3.6"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
+
"@changesets/cli": "2.29.8",
|
|
37
38
|
"@jest/globals": "30.4.1",
|
|
38
39
|
"@types/jest": "30.0.0",
|
|
39
40
|
"@types/node": "22.10.0",
|
|
41
|
+
"husky": "9.1.7",
|
|
40
42
|
"jest": "30.4.2",
|
|
41
43
|
"ts-jest": "29.4.11",
|
|
42
|
-
"typescript": "5.7.2"
|
|
43
|
-
"@changesets/cli": "2.29.8"
|
|
44
|
+
"typescript": "5.7.2"
|
|
44
45
|
},
|
|
45
46
|
"scripts": {
|
|
46
47
|
"build": "tsc -p tsconfig.build.json",
|