@svgrid/mcp 3.0.2 → 3.0.4
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/README.md +2 -2
- package/dist/data.js +1064 -256
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +1 -1
- package/dist/prompts.js +30 -0
- package/dist/validate.js +1 -1
- package/package.json +2 -2
- package/server.json +2 -2
package/dist/preview.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const UI_RESOURCE_URI = "ui://svgrid/preview.html";
|
|
|
8
8
|
* start failing in a way nobody is watching for. `tools/mcp-tools.test.ts` checks these
|
|
9
9
|
* against the workspace so they cannot quietly rot either.
|
|
10
10
|
*/
|
|
11
|
-
export declare const PREVIEW_GRID_WC_VERSION = "3.0.
|
|
11
|
+
export declare const PREVIEW_GRID_WC_VERSION = "3.0.4";
|
|
12
12
|
export declare function previewResource(): {
|
|
13
13
|
uri: string;
|
|
14
14
|
name: string;
|
package/dist/preview.js
CHANGED
|
@@ -27,7 +27,7 @@ const UI_RESOURCE_META_KEY = 'ui/resourceUri';
|
|
|
27
27
|
* start failing in a way nobody is watching for. `tools/mcp-tools.test.ts` checks these
|
|
28
28
|
* against the workspace so they cannot quietly rot either.
|
|
29
29
|
*/
|
|
30
|
-
export const PREVIEW_GRID_WC_VERSION = '3.0.
|
|
30
|
+
export const PREVIEW_GRID_WC_VERSION = '3.0.4';
|
|
31
31
|
const EXT_APPS_VERSION = '1.7.5';
|
|
32
32
|
const CDN = 'https://cdn.jsdelivr.net/npm';
|
|
33
33
|
/**
|
package/dist/prompts.js
CHANGED
|
@@ -7,6 +7,14 @@ export const PROMPTS = [
|
|
|
7
7
|
{ name: 'description', description: 'The data and behaviour you want, in plain language.', required: true },
|
|
8
8
|
],
|
|
9
9
|
},
|
|
10
|
+
{
|
|
11
|
+
name: 'build_sheet',
|
|
12
|
+
title: 'Build a spreadsheet',
|
|
13
|
+
description: 'Scaffold an Excel-style spreadsheet on the SvSheet shell (@svgrid/enterprise) for a described workbook: sheets, formulas, formats, rules, protection.',
|
|
14
|
+
arguments: [
|
|
15
|
+
{ name: 'description', description: 'The sheets, the cells and formulas, and what the user may do, in plain language.', required: true },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
10
18
|
{
|
|
11
19
|
name: 'explain_api',
|
|
12
20
|
title: 'Explain a SvGrid API',
|
|
@@ -41,6 +49,28 @@ export function getPrompt(name, args) {
|
|
|
41
49
|
'and touch the grid rather than just read it.'),
|
|
42
50
|
};
|
|
43
51
|
}
|
|
52
|
+
if (name === 'build_sheet') {
|
|
53
|
+
return {
|
|
54
|
+
description: 'Build a verified spreadsheet on SvSheet',
|
|
55
|
+
...messages(`Build a spreadsheet on the SvSheet shell for: ${arg('description')}\n\n` +
|
|
56
|
+
'SvSheet is in `@svgrid/enterprise`, a component that owns a workbook and a document; ' +
|
|
57
|
+
'confirm the package is installed before importing it. Work in this order:\n' +
|
|
58
|
+
'1. Call `svgrid_search` for "spreadsheet shell" and for each part this needs ' +
|
|
59
|
+
'(formulas, data validation, conditional formatting, comments, protection, xlsx). ' +
|
|
60
|
+
'Do not rely on memory of the API.\n' +
|
|
61
|
+
'2. Call `svgrid_get` on the closest spreadsheet demo (ids 452 to 466 and 484 to 494) and follow ' +
|
|
62
|
+
'its structure: `createWorkbook` for the cells as raw text with formulas as `=...` strings, ' +
|
|
63
|
+
'`createSheetDocument` for everything that is not a cell, `<SvSheet document={doc}>`.\n' +
|
|
64
|
+
'3. Write the component. Rectangles are `[minRow, minCol, maxRow, maxCol]`, 0-based; ' +
|
|
65
|
+
'a write from outside goes through `cmd.setCellValue` in `onAction` or is followed by ' +
|
|
66
|
+
'`refresh()`; addresses in `formats` for another sheet are qualified (`Orders!F2`).\n' +
|
|
67
|
+
'4. Call `svgrid_check_code` on what you wrote and use the `fixed` source it returns, ' +
|
|
68
|
+
'repeating until it is clean, BEFORE showing me the code.\n' +
|
|
69
|
+
'5. Say which formulas the engine evaluates and which it does not, from the search ' +
|
|
70
|
+
'results rather than from memory: the library is Excel-shaped but not complete, and ' +
|
|
71
|
+
'dynamic arrays spill while the spill operator (`D2#`) and array constants do not parse.'),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
44
74
|
if (name === 'explain_api') {
|
|
45
75
|
return {
|
|
46
76
|
description: 'Explain a SvGrid API from the shipped docs',
|
package/dist/validate.js
CHANGED
|
@@ -194,7 +194,7 @@ const PROP_RENAMES = {
|
|
|
194
194
|
};
|
|
195
195
|
const PROP_RENAME_NOTES = {
|
|
196
196
|
defaultColDef: 'SvGrid has no shared column default; set the key on each column, or map over your columns to add it.',
|
|
197
|
-
rowModelType: 'SvGrid
|
|
197
|
+
rowModelType: 'SvGrid has no row-model switch. Build the rows with `createServerDataSource` and pass the controller as `rowModel` - add `mode: "infinite"` for block-loaded scrolling. Server-side grouping, tree data, pivot, transactions and selection across unloaded rows are `createServerRowModel` in @svgrid/enterprise, on the same contract and the same prop.',
|
|
198
198
|
theme: 'Themes are stylesheets, not a prop: import one, e.g. `import "@svgrid/grid/themes/shadcn.css"`.',
|
|
199
199
|
};
|
|
200
200
|
const COLUMN_RENAMES = {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "commercial",
|
|
6
6
|
"url": "https://svgrid.com/pricing"
|
|
7
7
|
},
|
|
8
|
-
"version": "3.0.
|
|
8
|
+
"version": "3.0.4",
|
|
9
9
|
"description": "Model Context Protocol server for SvGrid, the Svelte 5 data grid: checks the code your AI writes against the real API surface, plus version-pinned docs, API reference and 373 demo sources.",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"author": "jQWidgets <sales@jqwidgets.com>",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
34
34
|
"svelte": "^5.55.5",
|
|
35
35
|
"zod": "^3.23.8",
|
|
36
|
-
"@svgrid/enterprise": "^3.0
|
|
36
|
+
"@svgrid/enterprise": "^3.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^22.10.7",
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "com.svgrid/svgrid",
|
|
4
4
|
"title": "SvGrid",
|
|
5
5
|
"description": "Checks AI-written SvGrid code against the real API, plus version-pinned Svelte 5 grid docs.",
|
|
6
|
-
"version": "3.0.
|
|
6
|
+
"version": "3.0.4",
|
|
7
7
|
"websiteUrl": "https://svgrid.com/docs/help/mcp-server/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/sv-grid/sv-grid",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"registryType": "npm",
|
|
16
16
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
17
17
|
"identifier": "@svgrid/mcp",
|
|
18
|
-
"version": "3.0.
|
|
18
|
+
"version": "3.0.4",
|
|
19
19
|
"runtimeHint": "npx",
|
|
20
20
|
"transport": {
|
|
21
21
|
"type": "stdio"
|