@carbonvoice/cv-mcp-server 1.0.6 → 1.0.8
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/dist/config/env.js +4 -1
- package/package.json +7 -5
package/dist/config/env.js
CHANGED
|
@@ -7,7 +7,10 @@ exports.env = void 0;
|
|
|
7
7
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
8
8
|
const zod_1 = require("zod");
|
|
9
9
|
const constants_1 = require("../constants");
|
|
10
|
-
|
|
10
|
+
// Only loads .env file in development
|
|
11
|
+
if (process.env.NODE_ENV === 'development') {
|
|
12
|
+
dotenv_1.default.config();
|
|
13
|
+
}
|
|
11
14
|
const Environment = zod_1.z.object({
|
|
12
15
|
CARBON_VOICE_BASE_URL: zod_1.z
|
|
13
16
|
.string()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbonvoice/cv-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Server implementation for integrating with Carbon Voice's API, providing tools and endpoints for voice messaging, conversations, and workspace management through MCP (Model Context Protocol)",
|
|
5
5
|
"author": "Carbon Voice",
|
|
6
6
|
"license": "ISC",
|
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "shx rm -rf dist && tsc && shx chmod +x dist/*.js",
|
|
16
|
+
"prepare": "npm run build",
|
|
16
17
|
"pre": "npm run build",
|
|
17
18
|
"lint:fix": "eslint src --fix",
|
|
18
|
-
"mcp:inspector": "
|
|
19
|
-
"dev:stdio": "
|
|
20
|
-
"auto:build": "nodemon --watch src --ext ts --exec npm run build",
|
|
19
|
+
"mcp:inspector": "cross-env NODE_ENV=development npx @modelcontextprotocol/inspector node dist/stdio.js",
|
|
20
|
+
"dev:stdio": "cross-env NODE_ENV=development npx node dist/stdio.js",
|
|
21
|
+
"auto:build": "cross-env NODE_ENV=development npx nodemon --watch src --ext ts --exec npm run build",
|
|
21
22
|
"generate:api": "orval --config orval.config.ts"
|
|
22
23
|
},
|
|
23
24
|
"files": [
|
|
@@ -37,13 +38,14 @@
|
|
|
37
38
|
"winston": "^3.17.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"dotenv": "^16.5.0",
|
|
41
41
|
"@eslint/js": "^9.29.0",
|
|
42
42
|
"@orval/zod": "^7.9.0",
|
|
43
43
|
"@types/handlebars": "^4.0.40",
|
|
44
44
|
"@types/node": "^22.15.29",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
46
46
|
"@typescript-eslint/parser": "^8.33.1",
|
|
47
|
+
"cross-env": "^7.0.3",
|
|
48
|
+
"dotenv": "^16.5.0",
|
|
47
49
|
"eslint": "^9.29.0",
|
|
48
50
|
"eslint-config-prettier": "^10.1.5",
|
|
49
51
|
"eslint-plugin-prettier": "^5.4.1",
|