improves testing with dotenv and mcp-inspector
This commit is contained in:
4 files changed
+19
-1
No files matched your search
@@ -1,2 +1,3 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/dist
|
/dist
|
||||||
|
.env
|
||||||
Generated
+13
@@ -11,6 +11,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/sdk": "1.13.3",
|
"@modelcontextprotocol/sdk": "1.13.3",
|
||||||
"commander": "14.0.0",
|
"commander": "14.0.0",
|
||||||
|
"dotenv": "^17.2.1",
|
||||||
"express": "5.1.0",
|
"express": "5.1.0",
|
||||||
"zod": "3.25.67"
|
"zod": "3.25.67"
|
||||||
},
|
},
|
||||||
@@ -363,6 +364,18 @@
|
|||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/dotenv": {
|
||||||
|
"version": "17.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.1.tgz",
|
||||||
|
"integrity": "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==",
|
||||||
|
"license": "BSD-2-Clause",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://dotenvx.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/dunder-proto": {
|
"node_modules/dunder-proto": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||||
|
|||||||
+3
-1
@@ -28,11 +28,13 @@
|
|||||||
"prepare": "npm run format && npm run build",
|
"prepare": "npm run format && npm run build",
|
||||||
"watch": "tsc --watch",
|
"watch": "tsc --watch",
|
||||||
"format": "prettier --write \"src/**/*.ts\"",
|
"format": "prettier --write \"src/**/*.ts\"",
|
||||||
"format:check": "prettier --check \"src/**/*.ts\""
|
"format:check": "prettier --check \"src/**/*.ts\"",
|
||||||
|
"inspector": "npx @modelcontextprotocol/inspector"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/sdk": "1.13.3",
|
"@modelcontextprotocol/sdk": "1.13.3",
|
||||||
"commander": "14.0.0",
|
"commander": "14.0.0",
|
||||||
|
"dotenv": "^17.2.1",
|
||||||
"express": "5.1.0",
|
"express": "5.1.0",
|
||||||
"zod": "3.25.67"
|
"zod": "3.25.67"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { Command } from 'commander';
|
import { Command } from 'commander';
|
||||||
|
import dotenv from 'dotenv';
|
||||||
|
dotenv.config();
|
||||||
|
|
||||||
type Configuration = {
|
type Configuration = {
|
||||||
transport: 'stdio' | 'http';
|
transport: 'stdio' | 'http';
|
||||||
|
|||||||
Reference in new issue
Block a user