@adevguide/mcp-database-server 1.0.2 → 1.0.3

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.
@@ -1,59 +1,59 @@
1
- {
2
- "databases": [
3
- {
4
- "id": "postgres-main",
5
- "type": "postgres",
6
- "url": "${DB_URL_POSTGRES}",
7
- "readOnly": false,
8
- "pool": {
9
- "min": 2,
10
- "max": 10,
11
- "idleTimeoutMillis": 30000,
12
- "connectionTimeoutMillis": 10000
13
- },
14
- "introspection": {
15
- "includeViews": true,
16
- "includeRoutines": false,
17
- "excludeSchemas": ["pg_catalog", "information_schema"]
18
- },
19
- "eagerConnect": false
20
- },
21
- {
22
- "id": "mysql-analytics",
23
- "type": "mysql",
24
- "url": "${DB_URL_MYSQL}",
25
- "readOnly": true,
26
- "pool": {
27
- "min": 1,
28
- "max": 5
29
- },
30
- "introspection": {
31
- "includeViews": true,
32
- "maxTables": 100
33
- }
34
- },
35
- {
36
- "id": "sqlite-local",
37
- "type": "sqlite",
38
- "path": "./data/app.db",
39
- "readOnly": false,
40
- "introspection": {
41
- "includeViews": true
42
- }
43
- }
44
- ],
45
- "cache": {
46
- "directory": ".sql-mcp-cache",
47
- "ttlMinutes": 10
48
- },
49
- "security": {
50
- "allowWrite": false,
51
- "allowedWriteOperations": ["INSERT", "UPDATE"],
52
- "disableDangerousOperations": true,
53
- "redactSecrets": true
54
- },
55
- "logging": {
56
- "level": "info",
57
- "pretty": false
58
- }
59
- }
1
+ {
2
+ "databases": [
3
+ {
4
+ "id": "postgres-main",
5
+ "type": "postgres",
6
+ "url": "${DB_URL_POSTGRES}",
7
+ "readOnly": false,
8
+ "pool": {
9
+ "min": 2,
10
+ "max": 10,
11
+ "idleTimeoutMillis": 30000,
12
+ "connectionTimeoutMillis": 10000
13
+ },
14
+ "introspection": {
15
+ "includeViews": true,
16
+ "includeRoutines": false,
17
+ "excludeSchemas": ["pg_catalog", "information_schema"]
18
+ },
19
+ "eagerConnect": false
20
+ },
21
+ {
22
+ "id": "mysql-analytics",
23
+ "type": "mysql",
24
+ "url": "${DB_URL_MYSQL}",
25
+ "readOnly": true,
26
+ "pool": {
27
+ "min": 1,
28
+ "max": 5
29
+ },
30
+ "introspection": {
31
+ "includeViews": true,
32
+ "maxTables": 100
33
+ }
34
+ },
35
+ {
36
+ "id": "sqlite-local",
37
+ "type": "sqlite",
38
+ "path": "./data/app.db",
39
+ "readOnly": false,
40
+ "introspection": {
41
+ "includeViews": true
42
+ }
43
+ }
44
+ ],
45
+ "cache": {
46
+ "directory": ".sql-mcp-cache",
47
+ "ttlMinutes": 10
48
+ },
49
+ "security": {
50
+ "allowWrite": false,
51
+ "allowedWriteOperations": ["INSERT", "UPDATE"],
52
+ "disableDangerousOperations": true,
53
+ "redactSecrets": true
54
+ },
55
+ "logging": {
56
+ "level": "info",
57
+ "pretty": false
58
+ }
59
+ }
package/package.json CHANGED
@@ -1,79 +1,78 @@
1
- {
2
- "name": "@adevguide/mcp-database-server",
3
- "version": "1.0.2",
4
- "description": "Model Context Protocol server for unified SQL database access with schema caching and relationship discovery",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "mcp-database-server": "dist/index.js"
9
- },
10
- "scripts": {
11
- "build": "tsup",
12
- "dev": "tsup --watch",
13
- "lint": "eslint src --ext .ts --max-warnings 100",
14
- "format": "prettier --write \"src/**/*.ts\"",
15
- "test": "vitest",
16
- "test:coverage": "vitest --coverage",
17
- "typecheck": "tsc --noEmit",
18
- "prepublishOnly": "npm run typecheck && npm run lint && npm test -- --run && npm run build"
19
- },
20
- "keywords": [
21
- "mcp",
22
- "model-context-protocol",
23
- "sql",
24
- "database",
25
- "postgres",
26
- "mysql",
27
- "sqlite",
28
- "mssql",
29
- "oracle"
30
- ],
31
- "author": "Pratik Bhuite",
32
- "license": "MIT",
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/iPraBhu/mcp-database-server.git"
36
- },
37
- "bugs": {
38
- "url": "https://github.com/iPraBhu/mcp-database-server/issues"
39
- },
40
- "homepage": "https://github.com/iPraBhu/mcp-database-server#readme",
41
- "files": [
42
- "dist",
43
- "README.md",
44
- "LICENSE",
45
- "mcp-database-server.config.example"
46
- ],
47
- "dependencies": {
48
- "@modelcontextprotocol/sdk": "^1.0.4",
49
- "better-sqlite3": "^11.8.1",
50
- "dotenv": "^16.4.7",
51
- "mysql2": "^3.11.5",
52
- "node-sql-parser": "^5.3.9",
53
- "oracledb": "^6.7.0",
54
- "pg": "^8.13.1",
55
- "pino": "^9.6.0",
56
- "pino-pretty": "^13.0.0",
57
- "tedious": "^19.0.0",
58
- "zod": "^3.24.1"
59
- },
60
- "devDependencies": {
61
- "@types/better-sqlite3": "^7.6.12",
62
- "@types/node": "^22.10.2",
63
- "@types/pg": "^8.11.10",
64
- "@typescript-eslint/eslint-plugin": "^8.18.2",
65
- "@typescript-eslint/parser": "^8.18.2",
66
- "@vitest/coverage-v8": "^2.1.8",
67
- "eslint": "^9.17.0",
68
- "prettier": "^3.4.2",
69
- "tsup": "^8.3.5",
70
- "typescript": "^5.7.2",
71
- "vitest": "^2.1.8"
72
- },
73
- "optionalDependencies": {
74
- "oracledb": "^6.7.0"
75
- },
76
- "engines": {
77
- "node": ">=18.0.0"
78
- }
79
- }
1
+ {
2
+ "name": "@adevguide/mcp-database-server",
3
+ "version": "1.0.3",
4
+ "description": "Model Context Protocol server for unified SQL database access with schema caching and relationship discovery",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "mcp-database-server": "dist/index.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsup",
12
+ "dev": "tsup --watch",
13
+ "lint": "eslint src --ext .ts --max-warnings 100",
14
+ "format": "prettier --write \"src/**/*.ts\"",
15
+ "test": "vitest",
16
+ "test:coverage": "vitest --coverage",
17
+ "typecheck": "tsc --noEmit",
18
+ "prepublishOnly": "npm run typecheck && npm run lint && npm test -- --run && npm run build"
19
+ },
20
+ "keywords": [
21
+ "mcp",
22
+ "model-context-protocol",
23
+ "sql",
24
+ "database",
25
+ "postgres",
26
+ "mysql",
27
+ "sqlite",
28
+ "mssql",
29
+ "oracle"
30
+ ],
31
+ "author": "Pratik Bhuite",
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/iPraBhu/mcp-database-server.git"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/iPraBhu/mcp-database-server/issues"
39
+ },
40
+ "homepage": "https://github.com/iPraBhu/mcp-database-server#readme",
41
+ "files": [
42
+ "dist",
43
+ "README.md",
44
+ "LICENSE",
45
+ "mcp-database-server.config.example"
46
+ ],
47
+ "dependencies": {
48
+ "@modelcontextprotocol/sdk": "^1.0.4",
49
+ "better-sqlite3": "^11.8.1",
50
+ "dotenv": "^16.4.7",
51
+ "mysql2": "^3.11.5",
52
+ "node-sql-parser": "^5.3.9",
53
+ "pg": "^8.13.1",
54
+ "pino": "^9.6.0",
55
+ "pino-pretty": "^13.0.0",
56
+ "tedious": "^19.0.0",
57
+ "zod": "^3.24.1"
58
+ },
59
+ "devDependencies": {
60
+ "@types/better-sqlite3": "^7.6.12",
61
+ "@types/node": "^22.10.2",
62
+ "@types/pg": "^8.11.10",
63
+ "@typescript-eslint/eslint-plugin": "^8.18.2",
64
+ "@typescript-eslint/parser": "^8.18.2",
65
+ "@vitest/coverage-v8": "^2.1.8",
66
+ "eslint": "^9.17.0",
67
+ "prettier": "^3.4.2",
68
+ "tsup": "^8.3.5",
69
+ "typescript": "^5.7.2",
70
+ "vitest": "^2.1.8"
71
+ },
72
+ "optionalDependencies": {
73
+ "oracledb": "^6.7.0"
74
+ },
75
+ "engines": {
76
+ "node": ">=18.0.0"
77
+ }
78
+ }