mr-magic-mcp-server 0.3.2 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mr-magic-mcp-server",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Lyrics MCP server connecting LRCLIB, Genius, Musixmatch, and Melon",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -59,11 +59,11 @@
59
59
  "node": ">=20"
60
60
  },
61
61
  "dependencies": {
62
+ "@dotenvx/dotenvx": "^1.55.1",
62
63
  "@modelcontextprotocol/sdk": "^1.27.1",
63
64
  "axios": "^1.13.6",
64
65
  "cheerio": "^1.2.0",
65
- "commander": "^14.0.3",
66
- "dotenv": "^17.3.1"
66
+ "commander": "^14.0.3"
67
67
  },
68
68
  "devDependencies": {
69
69
  "eslint": "^10.0.3",
@@ -1,7 +1,7 @@
1
1
  import path from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
3
 
4
- import dotenv from 'dotenv';
4
+ import dotenvx from '@dotenvx/dotenvx';
5
5
 
6
6
  const __filename = fileURLToPath(import.meta.url);
7
7
  const __dirname = path.dirname(__filename);
@@ -9,7 +9,11 @@ const projectRoot = path.resolve(__dirname, '..', '..');
9
9
  const resolvedRoot = process.env.MR_MAGIC_ROOT || projectRoot;
10
10
  const resolvedEnvPath = process.env.MR_MAGIC_ENV_PATH || path.join(resolvedRoot, '.env');
11
11
 
12
- dotenv.config({ path: resolvedEnvPath });
12
+ // Only load .env on local instances — skip on any known server environment
13
+ // (Render sets RENDER automatically; NODE_ENV=production covers other platforms).
14
+ if (!process.env.RENDER && process.env.NODE_ENV !== 'production') {
15
+ dotenvx.config({ path: resolvedEnvPath });
16
+ }
13
17
 
14
18
  export function getProjectRoot() {
15
19
  return resolvedRoot;