SvGrid

com.svgrid由 svgrid.com 發布官方發布者v3.0.1更新於 Oct 27, 2026

Checks AI-written SvGrid code against the real API, plus version-pinned Svelte 5 grid docs.

已驗證Streamable HTTP可網頁執行知識與記憶開發者工具

概覽

AI 產生的概覽

SvGrid 官方 MCP 伺服器,為助理提供與版本綁定的表格文件、範例原始碼,並可檢查 AI 撰寫的 SvGrid 程式碼。

可以做什麼
  • 搜尋 SvGrid 文件、範例目錄與 API 介面,並依 slug、範例 id 或 api 讀取完整內容
  • 瀏覽範例目錄,取得某個範例完整的 .svelte 原始碼,作為可直接複製的可用程式碼
  • 在交付前檢查 SvGrid 程式碼:元件屬性名稱、ColumnDef 鍵、API 方法、可匯入符號、主題檔案與 Svelte 5 runes 規則,回傳附行號的診斷與修正建議
  • 啟用 Studio 工具時,可操作 Studio 專案模型(實體、頁面、區塊、主題、驗證、RBAC、部署目標)並產生可執行的 SvelteKit 應用程式
適用情境
當助理要撰寫或審查 SvGrid / Svelte 5 表格程式碼,希望 API 名稱來自目前文件而非模型記憶,並在程式碼交付前先做一次檢查時使用。
執行需求
可使用託管的遠端端點(不需 Node),或以 npx 在本機執行 npm 套件(需要 Node.js)。本機 stdio 版可編譯程式碼並離線運作,遠端版僅做靜態檢查。Studio 工具需透過 SVGRID_MCP_STUDIO 環境變數或 SVGRID_LICENSE_KEY 明確開啟,且需在專案中安裝選用的 @svgrid/enterprise 套件。
安裝前請注意
遠端端點會把查詢與程式碼送到第三方伺服器;若不希望引入第三方端點,可改用本機 stdio 版。Studio 工具與 svgrid_scaffold 依賴商業套件 @svgrid/enterprise,未設定授權金鑰時會帶浮水印執行,Studio 本身也是商業產品。要求產生應用程式時,伺服器可能會寫入產生的專案檔案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SvGrid,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.svgrid%2Fsvgrid/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "svgrid": {
      "type": "http",
      "url": "https://mcp.svgrid.com/mcp"
    }
  }
}

README

[SvGrid]

@svgrid/mcp

The official Model Context Protocol server for SvGrid.

[npm version] [npm downloads] [MIT License]

Website · Docs · Pricing


Point any MCP-capable client - Claude Desktop, Claude Code, Cursor, Zed - at this server and the model answers with accurate, version-pinned facts about SvGrid: real prop, method, and event names, plus every demo's source as grounding. No hallucinated APIs, no stale blog posts.

Why this beats pasting docs into the chat. A model working from memory invents plausible SvGrid APIs, because it learned from a mix of other grids and older versions. Pasting docs helps for one question and then falls out of the context window. This server puts the current API surface and every working demo source one tool call away, for every question, pinned to the version you installed.

Tools exposed

Five. tools/list is sent on every request, so the tool surface is pure overhead on every turn - this server used to spend ~4,710 tokens of it on 36 tools, 79% of them Studio tools most sessions never call once.

ToolPurpose
svgrid_searchSearch the docs, every demo and the API surface in one call. No arguments returns an index.
svgrid_getRead one thing in full: a doc slug, a demo id, or api.
svgrid_check_codeVerify a file against the real API surface + the Svelte compiler.
svgrid_previewRender a live, interactive grid in the conversation from columns + rows (MCP Apps).
svgrid_scaffoldStudio: turn a Drizzle schema, sample rows or an EntitySchema into runnable SvelteKit files.

The docs and demos are also served as MCP resources (svgrid://doc/<slug>, svgrid://example/<id>), and four prompts ship ready to run: build_grid, build_sheet, explain_api, review_grid_code.

Every pre-3.0 tool name still answers - search_docs, get_doc, list_examples, get_example_source, list_docs, get_api_reference, check_svgrid_code, introspect_source, scaffold_entity, and all 27 individual studio_* tools. They are not listed, because listing is what costs context and answering an unadvertised name costs nothing. Their response shape follows 3.0.

svgrid_check_code - the one a retrieval server cannot do

Reading the docs makes a model likelier to be right. This makes it checkable. Hand it a file and it answers with line-numbered diagnostics and the exact replacement for each:

jsonc
{  "ok": false,  "checkedAgainst": "@svgrid/[email protected]",  "compiler": "svelte",  "counts": { "errors": 3, "warnings": 0, "info": 0 },  "diagnostics": [    { "rule": "svgrid/renamed-prop", "severity": "error", "line": 24,      "message": "`rowData` is not a SvGrid prop.", "fix": "Use `data`." },    { "rule": "svgrid/renamed-column-key", "severity": "error", "line": 10,      "message": "`accessorKey` is not a SvGrid column key.", "fix": "Use `field`." },    { "rule": "svelte/legacy-event-directive", "severity": "error", "line": 30,      "message": "`on:rowClick` never fires: SvGrid dispatches no component events, it takes callback props.",      "fix": "Use `onRowClick={...}`." }  ]}

What it checks:

  • Every name, against the installed version. Importable symbols, <SvGrid> props, ColumnDef keys, grid API methods, theme stylesheets. The list is generated from the package sources at build time, so it cannot drift from what the package exports, and an unknown name comes back with the nearest real one.
  • Cross-package mistakes. A symbol that lives in @svgrid/enterprise, or an api method that only exists after installEnterprise(api).
  • Svelte 5 rules. export let and $: in a runes file (compiler errors), on: / <slot> / createEventDispatcher (deprecations), and a plain let array that gets mutated and silently never re-renders.
  • The file, compiled. When a Svelte compiler is reachable - the user's project copy first, then the one shipped here - real parse errors come back too. The result says which of the two ran in its compiler field, so "no errors" is never mistaken for "this compiles".

It is tuned to shut up when the code is right: it reports nothing across every demo in this repo, which is what a CI test asserts. A verifier that cries wolf is worse than none, because a model will happily "fix" working code.

Studio: drive the app model (agent co-designer)

The studio_* tools let an agent build and edit the same validated project model the visual designer uses - add entities, screens, blocks, components, wire data sources, theme, RBAC, auth, the typed data layer, and the deploy target - then generate the full runnable app or export the studio.config.json the designer can Load. Every edit runs through the model's own functions + validateProject, so the agent can't produce an invalid app.

Opt-in. Set SVGRID_MCP_STUDIO=1, or a valid SVGRID_LICENSE_KEY, in the server's env. Tools that need a licence to be useful should not cost every other user context on every request.

These tools and svgrid_scaffold run on @svgrid/enterprise, an optional peer that npx -y @svgrid/mcp does not install (it would double the cold start). Install both in the project and run the local server:

bash
npm i -D @svgrid/mcp @svgrid/enterpriseclaude mcp add svgrid -- npx svgrid-mcp
ToolPurpose
studio_projectnew, load, describe, config, capabilities.
studio_applyA batch of model changes in order: entities, screens, blocks, components.
studio_configureTheme, auth, RBAC, tenancy, data layer, jobs, deploy target, layouts - in one call.
studio_buildvalidate, then generate the full runnable SvelteKit app.

A typical session: studio_project (new) → one studio_apply batch per screen → studio_configure → studio_build (generate) → write the files and run svelte-check.

studio_apply batches on purpose. Twenty-seven one-per-mutation tools made a five-screen app twenty-odd round trips; a whole screen is now one call, and a failure reports which op failed and what already applied.

Two ways to run it

stdio (this package)remote HTTP
Installnpx @svgrid/mcphttps://mcp.svgrid.com/mcp
Needs Nodeyesno
svgrid_check_code compilesyesstatic checks only
Studio studio_* toolsyes (opt-in)no
Works offlineyesno
bash
# No install: point any MCP client at the hosted serverclaude mcp add --transport http svgrid https://mcp.svgrid.com/mcp

[Add to Cursor] [Add to VS Code]

The remote server is live at https://mcp.svgrid.com/mcp and carries the docs, verification and preview tools (source). Use stdio when you want the compiler pass, the Studio tools, or no third-party endpoint in the loop.

Run

bash
# One-shot via npx (no install)npx @svgrid/mcp
# Or install globally, then run the binnpm install -g @svgrid/mcpsvgrid-mcp

The server speaks MCP over stdio: stdout is reserved for JSON-RPC, logs go to stderr.

Connect Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "svgrid": {      "command": "npx",      "args": ["-y", "@svgrid/mcp"]    }  }}

Restart Claude Desktop and open a new chat - the tools above are now available.

Connect Claude Code

bash
claude mcp add svgrid -- npx -y @svgrid/mcp

Then run /mcp in a session to confirm svgrid is listed. Ask something like "using svgrid, build a grid that groups by department and shows a sparkline per row" and the model will pull the relevant demo sources before generating code.

Connect Cursor / Zed

Add the same mcpServers block to the editor's MCP configuration:

json
{  "mcpServers": {    "svgrid": { "command": "npx", "args": ["-y", "@svgrid/mcp"] }  }}

Build from source

bash
cd packages/mcppnpm buildnode dist/index.js

pnpm build first runs scripts/build-manifests.mjs, which reads examples/src/demos/*.svelte and docs/**/*.md from the workspace and inlines them into src/data.ts, so the published package is fully self-contained.

Enterprise features

Export to Excel and PDF, pivot tables, the Kanban board, the scheduler, the spreadsheet and the server-side row model live in @svgrid/enterprise, which is commercial. Answers say so: a paid doc or demo in svgrid_search results carries "enterprise": true, a question about a paid feature gets one line with the trial link, and svgrid_check_code adds it when the fix is to install the package. The package runs without a license key and shows a watermark until one is set. The 30-day trial adds a download of every demo and 30 days of email support.

Licensing

MIT - free to run, no license key. Some tools generate SvGrid Studio projects, and Studio itself is commercial; see svgrid.com/pricing. The MIT @svgrid/grid core is free for any use.

SvGrid™ and sv-grid™ are trademarks of jQWidgets Ltd.

來源:packages/mcp/README.md,提交 48909d1

工具

6

fetch

Return the full text behind a search result. Pass a doc slug ("help/columns/column-definitions") or a demo id prefixed with "demo:" ("demo:11-stock-market").

輸入參數id必填

list_examples

Browse the SvGrid demo catalogue: id, title, category and a one-line blurb. Call with no arguments for the category index, then filter with `query` or `category`, then read one with get_example_source.

輸入參數limitquerycategory

get_example_source

Return the full .svelte source of one demo by id (e.g. "11-stock-market") - working code to copy, not a summary of it.

輸入參數id必填

get_api_reference

The SvGrid public API grouped by category (components, headless, scheduler, data ops, export, row models, features, virtualization, accessibility, utilities), for the version this server tracks.

無需輸入參數。

check_svgrid_code

Verify SvGrid code BEFORE handing it to the user. Checks the source against the real exported surface of the current version - <SvGrid> prop names, ColumnDef keys, grid API methods, importable symbols and theme files - plus Svelte 5 runes rules, and returns line-numbered diagnostics with the exact replacement for each. Run it on every file you write that uses SvGrid, fix what it reports, and run it again.

輸入參數source必填filename

版本歷史

1
  1. v3.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。