@codegiveness/mssql-mcp 0.6.0 → 0.6.1
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/bin/mssql-mcp.js +1 -21
- package/package.json +7 -7
package/bin/mssql-mcp.js
CHANGED
|
@@ -18,7 +18,7 @@ const REPO = 'codegiveness/mssql-mcp';
|
|
|
18
18
|
const NO_DOWNLOAD_ENV = 'MSSQL_MCP_NO_DOWNLOAD';
|
|
19
19
|
const CACHE_ROOT = path.join(os.homedir(), '.mssql-mcp', 'bin');
|
|
20
20
|
|
|
21
|
-
// (platform, arch) -> RID.
|
|
21
|
+
// (platform, arch) -> RID. All RIDs ship self-contained binaries (ADR-0002).
|
|
22
22
|
function ridFor(platform, arch) {
|
|
23
23
|
if (platform === 'linux' && arch === 'x64') return 'linux-x64';
|
|
24
24
|
if (platform === 'linux' && arch === 'arm64') return 'linux-arm64';
|
|
@@ -209,13 +209,6 @@ async function main() {
|
|
|
209
209
|
// Exec the binary, forwarding stdio.
|
|
210
210
|
const result = spawnSync(binaryPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
211
211
|
|
|
212
|
-
// Windows framework-dependent binary without .NET 10 runtime fails to spawn.
|
|
213
|
-
// Detect and provide actionable guidance.
|
|
214
|
-
if (result.error && process.platform === 'win32') {
|
|
215
|
-
failWindowsDotNetMissing(result.error);
|
|
216
|
-
return; // unreachable
|
|
217
|
-
}
|
|
218
|
-
|
|
219
212
|
if (result.error) {
|
|
220
213
|
console.error('mssql-mcp: failed to launch binary: ' + result.error.message);
|
|
221
214
|
process.exit(1);
|
|
@@ -418,19 +411,6 @@ function failExtractionFailed(rid, archiveUrl) {
|
|
|
418
411
|
process.exit(1);
|
|
419
412
|
}
|
|
420
413
|
|
|
421
|
-
function failWindowsDotNetMissing(spawnError) {
|
|
422
|
-
console.error('mssql-mcp: failed to launch the Windows binary.');
|
|
423
|
-
console.error(' The Windows build is framework-dependent and requires the .NET 10 runtime.');
|
|
424
|
-
console.error(' error: ' + spawnError.message);
|
|
425
|
-
console.error('');
|
|
426
|
-
console.error('Download the .NET 10 runtime:');
|
|
427
|
-
console.error(' https://dotnet.microsoft.com/download');
|
|
428
|
-
console.error('');
|
|
429
|
-
console.error('Or install the .NET tool (includes the runtime):');
|
|
430
|
-
console.error(' dotnet tool install -g codegiveness.mssql-mcp');
|
|
431
|
-
process.exit(1);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
414
|
// Exposed for smoke tests (npm/test.js). Not part of the public API.
|
|
435
415
|
module.exports = { ridFor, archiveExt, parseChecksumFile, classifyDownloadError, sha256Hex, extractTarGz, fetchUrl, isAllowedRedirectHost, resolveCachedBinary };
|
|
436
416
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codegiveness/mssql-mcp",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "A Model Context Protocol (MCP) server for Microsoft SQL Server, built in C#/.NET
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "A Model Context Protocol (MCP) server for Microsoft SQL Server, built in C#/.NET 11. Lets AI agents (Claude Desktop, Cursor, etc.) safely query and interact with SQL Server databases through a controlled tool surface.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/codegiveness/mssql-mcp#readme",
|
|
7
7
|
"keywords": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"bin/mssql-mcp.js"
|
|
28
28
|
],
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@codegiveness/mssql-mcp-linux-x64": "0.6.
|
|
31
|
-
"@codegiveness/mssql-mcp-linux-arm64": "0.6.
|
|
32
|
-
"@codegiveness/mssql-mcp-osx-x64": "0.6.
|
|
33
|
-
"@codegiveness/mssql-mcp-osx-arm64": "0.6.
|
|
34
|
-
"@codegiveness/mssql-mcp-win-x64": "0.6.
|
|
30
|
+
"@codegiveness/mssql-mcp-linux-x64": "0.6.1",
|
|
31
|
+
"@codegiveness/mssql-mcp-linux-arm64": "0.6.1",
|
|
32
|
+
"@codegiveness/mssql-mcp-osx-x64": "0.6.1",
|
|
33
|
+
"@codegiveness/mssql-mcp-osx-arm64": "0.6.1",
|
|
34
|
+
"@codegiveness/mssql-mcp-win-x64": "0.6.1"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=18"
|