@ravendb/mcp
Advanced tools
+13
-0
@@ -23,2 +23,15 @@ #!/usr/bin/env node | ||
| // npm records file modes from whichever machine packed the tarball. Packing on Windows loses the | ||
| // POSIX executable bit, so the binary can arrive as 0644 and every launch fails with EACCES. That | ||
| // is exactly how 1.0.3 shipped. Restore the bit rather than trusting the tarball. | ||
| if (process.platform !== 'win32') { | ||
| try { | ||
| const { statSync, chmodSync } = require('node:fs'); | ||
| const { mode } = statSync(binaryPath); | ||
| if ((mode & 0o111) === 0) chmodSync(binaryPath, (mode & 0o777) | 0o755); | ||
| } catch (err) { | ||
| console.error(`[ravendb-mcp] Could not mark "${binaryPath}" executable: ${err.message}`); | ||
| } | ||
| } | ||
| // stdout is the MCP JSON-RPC stream; never write to it. Inherit stdio so the binary owns it, and our own output goes to stderr. | ||
@@ -25,0 +38,0 @@ const result = spawnSync(binaryPath, process.argv.slice(2), { stdio: 'inherit' }); |
+6
-6
| { | ||
| "name": "@ravendb/mcp", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Read-only MCP diagnostics server for RavenDB. Run it with npx; no .NET required.", | ||
@@ -14,7 +14,7 @@ "mcpName": "io.github.ravendb/ravendb-mcp", | ||
| "optionalDependencies": { | ||
| "@ravendb/mcp-win32-x64": "1.0.3", | ||
| "@ravendb/mcp-win32-arm64": "1.0.3", | ||
| "@ravendb/mcp-linux-x64": "1.0.3", | ||
| "@ravendb/mcp-darwin-x64": "1.0.3", | ||
| "@ravendb/mcp-darwin-arm64": "1.0.3" | ||
| "@ravendb/mcp-win32-x64": "1.0.4", | ||
| "@ravendb/mcp-win32-arm64": "1.0.4", | ||
| "@ravendb/mcp-linux-x64": "1.0.4", | ||
| "@ravendb/mcp-darwin-x64": "1.0.4", | ||
| "@ravendb/mcp-darwin-arm64": "1.0.4" | ||
| }, | ||
@@ -21,0 +21,0 @@ "engines": { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
4043
18.08%47
34.29%1
Infinity%