@svgrid/mcp 1.0.0 → 2.0.0
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/LICENSE +2 -2
- package/README.md +51 -31
- package/dist/data.js +1945 -125
- package/dist/index.js +4 -4
- package/package.json +41 -40
package/dist/index.js
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* blog-post output.
|
|
10
10
|
*
|
|
11
11
|
* Run with:
|
|
12
|
-
* npx
|
|
12
|
+
* npx @svgrid/mcp
|
|
13
13
|
*/
|
|
14
14
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
15
15
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
16
16
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
17
17
|
import { apiReference, docs, examples } from './data.js';
|
|
18
18
|
const server = new Server({
|
|
19
|
-
name: '
|
|
19
|
+
name: '@svgrid/mcp',
|
|
20
20
|
version: '0.1.0',
|
|
21
21
|
}, {
|
|
22
22
|
capabilities: {
|
|
@@ -152,9 +152,9 @@ async function main() {
|
|
|
152
152
|
// The MCP SDK keeps the process alive on the stdio transport, so we just
|
|
153
153
|
// log a startup banner to stderr (stdout is reserved for the JSON-RPC
|
|
154
154
|
// protocol) and let the SDK take over.
|
|
155
|
-
process.stderr.write('
|
|
155
|
+
process.stderr.write('@svgrid/mcp started on stdio\n');
|
|
156
156
|
}
|
|
157
157
|
main().catch((err) => {
|
|
158
|
-
process.stderr.write(
|
|
158
|
+
process.stderr.write(`@svgrid/mcp fatal: ${err?.stack ?? err}\n`);
|
|
159
159
|
process.exit(1);
|
|
160
160
|
});
|
package/package.json
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@svgrid/mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Model Context Protocol (MCP) server for SvGrid. Exposes example sources, docs, and API reference to AI assistants.",
|
|
5
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
-
"author": "jQWidgets <sales@jqwidgets.com>",
|
|
7
|
-
"homepage": "https://sv-grid.github.io/sv-grid/#/mcp",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/sv-grid/sv-grid.git",
|
|
11
|
-
"directory": "packages/mcp"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"main": "dist/index.js",
|
|
15
|
-
"bin": {
|
|
16
|
-
"@svgrid/mcp": "dist/index.js"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"dist",
|
|
20
|
-
"README.md",
|
|
21
|
-
"LICENSE"
|
|
22
|
-
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build:manifests": "node ./scripts/build-manifests.mjs",
|
|
25
|
-
"build:ts": "tsc -p tsconfig.json",
|
|
26
|
-
"build": "pnpm build:manifests && pnpm build:ts",
|
|
27
|
-
"start": "node dist/index.js",
|
|
28
|
-
"test:types": "tsc -p tsconfig.json --noEmit"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@svgrid/mcp",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Model Context Protocol (MCP) server for SvGrid. Exposes example sources, docs, and API reference to AI assistants.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"author": "jQWidgets <sales@jqwidgets.com>",
|
|
7
|
+
"homepage": "https://sv-grid.github.io/sv-grid/#/mcp",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/sv-grid/sv-grid.git",
|
|
11
|
+
"directory": "packages/mcp"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "dist/index.js",
|
|
15
|
+
"bin": {
|
|
16
|
+
"@svgrid/mcp": "dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build:manifests": "node ./scripts/build-manifests.mjs",
|
|
25
|
+
"build:ts": "tsc -p tsconfig.json",
|
|
26
|
+
"build": "pnpm build:manifests && pnpm build:ts",
|
|
27
|
+
"start": "node dist/index.js",
|
|
28
|
+
"test:types": "tsc -p tsconfig.json --noEmit"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
32
|
+
"@svgrid/enterprise": "workspace:*",
|
|
33
|
+
"zod": "^3.23.8"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^22.10.7",
|
|
37
|
+
"typescript": "6.0.3"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18"
|
|
41
|
+
}
|
|
41
42
|
}
|