@postnesia/mcp 0.1.20 → 0.1.22

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 (2) hide show
  1. package/dist/install.js +8 -8
  2. package/package.json +2 -2
package/dist/install.js CHANGED
@@ -12,17 +12,17 @@ export var ScopeEnum;
12
12
  ScopeEnum["local"] = "local";
13
13
  })(ScopeEnum || (ScopeEnum = {}));
14
14
  ;
15
- if (!process.env['DATABASE_URL']) {
15
+ const dbUrl = process.env['DATABASE_URL'];
16
+ const apiKey = process.env['GEMINI_API_KEY'];
17
+ if (!dbUrl) {
16
18
  console.error('DATABASE_URL (absolute path) environment variable is not configured');
17
19
  process.exit(1);
18
20
  }
19
- if (!process.env['GEMINI_API_KEY']) {
21
+ if (!apiKey) {
20
22
  console.error('GEMINI_API_KEY environment variable is not configured');
21
23
  process.exit(1);
22
24
  }
23
25
  const HOME = process.env['HOME'];
24
- const DATABASE_URL = process.env['DATABASE_URL'];
25
- const GEMINI_API_KEY = process.env['GEMINI_API_KEY'];
26
26
  const config = {
27
27
  claude: {
28
28
  mcpServers: {
@@ -34,8 +34,8 @@ const config = {
34
34
  'pn-mcp'
35
35
  ],
36
36
  env: {
37
- DATABASE_URL,
38
- GEMINI_API_KEY
37
+ DATABASE_URL: dbUrl,
38
+ GEMINI_API_KEY: apiKey
39
39
  }
40
40
  }
41
41
  }
@@ -50,8 +50,8 @@ const config = {
50
50
  'pn-mcp'
51
51
  ],
52
52
  environment: {
53
- DATABASE_URL,
54
- GEMINI_API_KEY
53
+ DATABASE_URL: dbUrl,
54
+ GEMINI_API_KEY: apiKey
55
55
  }
56
56
  }
57
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postnesia/mcp",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "An MCP server to interact with the Postnesia database",
5
5
  "type": "module",
6
6
  "private": false,
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "@modelcontextprotocol/sdk": "^1.27.1",
16
16
  "zod": "^4.3.6",
17
- "@postnesia/db": "0.1.20"
17
+ "@postnesia/db": "0.1.22"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^24.12.0",