@airabbit/sqlite-mcp-server 0.1.7 → 0.1.9

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.
Files changed (3) hide show
  1. package/README.md +21 -12
  2. package/build/index.js +1 -14
  3. package/package.json +4 -5
package/README.md CHANGED
@@ -49,13 +49,6 @@ An example SQLite database (`example-small.sqlite`) is included with sample data
49
49
  - `users` table: 3 users (Alice, Bob, Charlie)
50
50
  - `posts` table: 3 posts linked to users
51
51
 
52
- ### Installation
53
-
54
- Install from npm:
55
- ```bash
56
- npm install -g @airabbit/sqlite-mcp-server
57
- ```
58
-
59
52
  ### Claude Desktop Configuration
60
53
 
61
54
  Add this to your Claude Desktop config file (usually `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
@@ -64,19 +57,35 @@ Add this to your Claude Desktop config file (usually `~/Library/Application Supp
64
57
  {
65
58
  "mcpServers": {
66
59
  "@airabbit/sqlite-mcp-server": {
67
- "command": "npx",
60
+ "command": "node",
61
+ "args": [
62
+ "/absolute/path/to/sqlite-mcp-server/build/index.js"
63
+ ],
64
+ "env": {
65
+ "SQLITE_DB_PATH": "/absolute/path/to/your/database.sqlite"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ ```
71
+
72
+ **Example with included database:**
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "@airabbit/sqlite-mcp-server": {
77
+ "command": "node",
68
78
  "args": [
69
- "-y",
70
- "@airabbit/sqlite-mcp-server"
79
+ "/path/to/sqlite-mcp-server/build/index.js"
71
80
  ],
72
81
  "env": {
73
- "SQLITE_DB_PATH": "/path/to/your/database.sqlite"
82
+ "SQLITE_DB_PATH": "/path/to/sqlite-mcp-server/example-small.sqlite"
74
83
  }
75
84
  }
76
85
  }
77
86
  }
78
87
  ```
79
88
 
80
- **Note:** Replace `/path/to/your/database.sqlite` with the absolute path to your SQLite database file. The `-y` flag auto-installs the package if not already installed.
89
+ Replace the paths with your actual installation path and database file path.
81
90
 
82
91
 
package/build/index.js CHANGED
@@ -447,20 +447,7 @@ export class SqliteMcpServer {
447
447
  console.error('SQLite MCP server running on stdio');
448
448
  }
449
449
  }
450
- function isMainModule() {
451
- if (!process.argv[1]) {
452
- return false;
453
- }
454
- try {
455
- const entryPath = fs.realpathSync(process.argv[1]);
456
- const modulePath = fs.realpathSync(fileURLToPath(import.meta.url));
457
- return entryPath === modulePath;
458
- }
459
- catch {
460
- return false;
461
- }
462
- }
463
- if (isMainModule()) {
450
+ if (import.meta.url === `file://${process.argv[1]}`) {
464
451
  const server = new SqliteMcpServer();
465
452
  server.run().catch(console.error);
466
453
  }
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@airabbit/sqlite-mcp-server",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Generic SQLite Model Context Protocol (MCP) server",
5
5
  "main": "build/index.js",
6
+ "type": "module",
6
7
  "bin": {
7
- "sqlite-mcp-server": "build/index.js"
8
+ "mcp-server-sqlite": "build/index.js"
8
9
  },
9
- "type": "module",
10
10
  "files": [
11
11
  "build/",
12
- "manifest.json",
13
- "README.md"
12
+ "manifest.json"
14
13
  ],
15
14
  "scripts": {
16
15
  "build": "tsc && chmod +x build/index.js",