@svgrid/mcp
Advanced tools
+13
-1
@@ -14,2 +14,3 @@ #!/usr/bin/env node | ||
| */ | ||
| import { createRequire } from 'node:module'; | ||
| import { Server } from '@modelcontextprotocol/sdk/server/index.js'; | ||
@@ -46,5 +47,16 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; | ||
| } | ||
| // Report the real package version to MCP clients (read from package.json, which | ||
| // ships in the tarball at ../package.json relative to the built dist/index.js), | ||
| // so serverInfo.version never drifts from the published version. | ||
| const pkgVersion = (() => { | ||
| try { | ||
| return createRequire(import.meta.url)('../package.json').version; | ||
| } | ||
| catch { | ||
| return '0.0.0'; | ||
| } | ||
| })(); | ||
| const server = new Server({ | ||
| name: '@svgrid/mcp', | ||
| version: '0.1.0', | ||
| version: pkgVersion, | ||
| }, { | ||
@@ -51,0 +63,0 @@ capabilities: { |
+2
-2
@@ -7,3 +7,3 @@ { | ||
| }, | ||
| "version": "2.2.0", | ||
| "version": "2.2.1", | ||
| "description": "Model Context Protocol (MCP) server for SvGrid. Exposes example sources, docs, and API reference to AI assistants.", | ||
@@ -34,3 +34,3 @@ "license": "SEE LICENSE IN LICENSE", | ||
| "zod": "^3.23.8", | ||
| "@svgrid/enterprise": "^2.2.0" | ||
| "@svgrid/enterprise": "^2.2.1" | ||
| }, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
5910145
0.01%1676
0.72%0
-100%4
33.33%Updated