improves testing with dotenv and mcp-inspector

This commit is contained in:
Sampson committed 2025-07-24 20:18:10 -05:00
1 parent ce1b88cefc
commit 9c61acdb63
4 files changed
+19 -1

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
/node_modules
/dist
.env
+13
View File
@@ -11,6 +11,7 @@
"dependencies": {
"@modelcontextprotocol/sdk": "1.13.3",
"commander": "14.0.0",
"dotenv": "^17.2.1",
"express": "5.1.0",
"zod": "3.25.67"
},
@@ -363,6 +364,18 @@
"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": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+3 -1
View File
@@ -28,11 +28,13 @@
"prepare": "npm run format && npm run build",
"watch": "tsc --watch",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\""
"format:check": "prettier --check \"src/**/*.ts\"",
"inspector": "npx @modelcontextprotocol/inspector"
},
"dependencies": {
"@modelcontextprotocol/sdk": "1.13.3",
"commander": "14.0.0",
"dotenv": "^17.2.1",
"express": "5.1.0",
"zod": "3.25.67"
},
+2
View File
@@ -1,4 +1,6 @@
import { Command } from 'commander';
import dotenv from 'dotenv';
dotenv.config();
type Configuration = {
transport: 'stdio' | 'http';