@webdevtoday/ds-mcp-server
Advanced tools
+17
-1
@@ -5,3 +5,4 @@ #!/usr/bin/env node | ||
| import { dirname, join } from 'path'; | ||
| import { spawn } from 'child_process'; | ||
| import { spawn, execSync } from 'child_process'; | ||
| import { existsSync } from 'fs'; | ||
@@ -11,2 +12,17 @@ const __filename = fileURLToPath(import.meta.url); | ||
| // Check if node_modules exists | ||
| const nodeModulesPath = join(__dirname, '..', 'node_modules'); | ||
| if (!existsSync(nodeModulesPath)) { | ||
| console.error('Installing dependencies...'); | ||
| try { | ||
| execSync('npm install --omit=dev', { | ||
| cwd: join(__dirname, '..'), | ||
| stdio: 'inherit' | ||
| }); | ||
| } catch (error) { | ||
| console.error('Failed to install dependencies:', error.message); | ||
| process.exit(1); | ||
| } | ||
| } | ||
| // Get the path to mcpServer.js | ||
@@ -13,0 +29,0 @@ const serverPath = join(__dirname, '..', 'mcpServer.js'); |
+2
-2
| { | ||
| "name": "@webdevtoday/ds-mcp-server", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "MCP server for DirectStay API integration", | ||
@@ -8,3 +8,3 @@ "main": "mcpServer.js", | ||
| "bin": { | ||
| "ds-mcp-server": "./bin/ds-mcp-server.js" | ||
| "ds-mcp-server": "bin/ds-mcp-server.js" | ||
| }, | ||
@@ -11,0 +11,0 @@ "scripts": { |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
40363
1.13%1133
1.34%29
3.57%