@node2flow/sqlite-mcp 1.0.0

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.
@@ -0,0 +1,67 @@
1
+ /**
2
+ * SQLite MCP - Type Definitions
3
+ */
4
+ export interface SqliteConfig {
5
+ dbPath: string;
6
+ readonly?: boolean;
7
+ timeout?: number;
8
+ }
9
+ export interface ColumnInfo {
10
+ cid: number;
11
+ name: string;
12
+ type: string;
13
+ notnull: number;
14
+ dflt_value: string | null;
15
+ pk: number;
16
+ }
17
+ export interface IndexInfo {
18
+ seq: number;
19
+ name: string;
20
+ unique: number;
21
+ origin: string;
22
+ partial: number;
23
+ }
24
+ export interface ForeignKeyInfo {
25
+ id: number;
26
+ seq: number;
27
+ table: string;
28
+ from: string;
29
+ to: string;
30
+ on_update: string;
31
+ on_delete: string;
32
+ match: string;
33
+ }
34
+ export interface TableInfo {
35
+ name: string;
36
+ type: string;
37
+ rowCount: number;
38
+ }
39
+ export interface DatabaseInfo {
40
+ filePath: string;
41
+ fileSize: number;
42
+ tableCount: number;
43
+ pageCount: number;
44
+ pageSize: number;
45
+ journalMode: string;
46
+ walMode: boolean;
47
+ encoding: string;
48
+ sqliteVersion: string;
49
+ }
50
+ export interface ColumnDefinition {
51
+ name: string;
52
+ type: string;
53
+ primaryKey?: boolean;
54
+ notNull?: boolean;
55
+ default?: string | number | null;
56
+ unique?: boolean;
57
+ }
58
+ export interface QueryResult {
59
+ columns: string[];
60
+ rows: Record<string, unknown>[];
61
+ rowCount: number;
62
+ }
63
+ export interface ExecuteResult {
64
+ changes: number;
65
+ lastInsertRowid: number | bigint;
66
+ }
67
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OA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CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC"}
package/dist/types.js ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * SQLite MCP - Type Definitions
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@node2flow/sqlite-mcp",
3
+ "version": "1.0.0",
4
+ "description": "MCP server for SQLite databases — query, manage schema, indexes, and optimize through 15 tools",
5
+ "keywords": [
6
+ "sqlite",
7
+ "mcp",
8
+ "model-context-protocol",
9
+ "database",
10
+ "sql",
11
+ "ai",
12
+ "claude",
13
+ "cursor"
14
+ ],
15
+ "author": "Node2Flow <node2flow@gmail.com>",
16
+ "license": "MIT",
17
+ "homepage": "https://github.com/node2flow-th/sqlite-mcp-community",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/node2flow-th/sqlite-mcp-community.git"
21
+ },
22
+ "type": "module",
23
+ "main": "dist/index.js",
24
+ "types": "dist/index.d.ts",
25
+ "bin": {
26
+ "sqlite-mcp": "dist/index.js"
27
+ },
28
+ "files": [
29
+ "dist",
30
+ "LICENSE",
31
+ "README.md"
32
+ ],
33
+ "scripts": {
34
+ "build": "tsc",
35
+ "start": "node dist/index.js",
36
+ "dev": "tsx src/index.ts",
37
+ "prepublishOnly": "npm run build"
38
+ },
39
+ "dependencies": {
40
+ "@modelcontextprotocol/sdk": "^1.26.0",
41
+ "better-sqlite3": "^11.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "@types/better-sqlite3": "^7.6.0",
45
+ "@types/node": "^22.0.0",
46
+ "tsx": "^4.19.0",
47
+ "typescript": "^5.7.0"
48
+ },
49
+ "engines": {
50
+ "node": ">=18"
51
+ }
52
+ }