SvGrid
Checks AI-written SvGrid code against the real API, plus version-pinned Svelte 5 grid docs.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"svgrid": {
"command": "npx",
"args": [
"@svgrid/mcp"
]
}
}
}실행 가능한 패키지
3.0.1stdio원격 엔드포인트
https://mcp.svgrid.com/mcpstreamable-http할 수 있는 일
도구 목록
도구 (7)
🟢search(query, limit)
Ranked full-text search across the SvGrid documentation and demo catalogue. Returns the best pages first with an excerpt and an id you pass to `fetch`. Use this before writing SvGrid code so the API names come from the docs rather than from memory.
입력 스키마
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "What you are looking for, e.g. \"row virtualization\"."
},
"limit": {
"type": "number",
"description": "Max results, default 10, max 25.",
"default": 10
}
},
"required": [
"query"
]
}🟢fetch(id)
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").
입력 스키마
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A doc slug, or \"demo:<id>\"."
}
},
"required": [
"id"
]
}🟢list_examples(query, category, limit)
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.
입력 스키마
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Free-text filter over id, title, blurb and category."
},
"category": {
"type": "string",
"description": "Exact category, e.g. \"Kanban\"."
},
"limit": {
"type": "number",
"description": "Max results, default 25, max 100.",
"default": 25
}
}
}🟢get_example_source(id)
Return the full .svelte source of one demo by id (e.g. "11-stock-market") - working code to copy, not a summary of it.
입력 스키마
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Demo id, e.g. \"11-stock-market\"."
}
},
"required": [
"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.
입력 스키마
{
"type": "object",
"properties": {}
}🟡svgrid_check_code(source, filename)
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, compiles it, and returns line-numbered diagnostics with the exact replacement for each, plus a corrected copy of the file (`fixed`) whenever the correction is exact. Run it on every file you write that uses SvGrid, use `fixed`, and run it again.
입력 스키마
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "The full file contents to check."
},
"filename": {
"type": "string",
"description": "File name, used to pick which rules apply. Defaults to \"Component.svelte\"."
}
},
"required": [
"source"
]
}🟢svgrid_preview(columns, data, demo, title, sortable, ...)
Render a REAL, interactive SvGrid in the conversation - sortable, filterable, scrollable - from columns and rows you pass, or from a demo id. Use it to show the user what a grid will look like before they build it, and after svgrid_check_code to demonstrate the result. In clients without UI support it returns a text summary instead, so it is always safe to call.
입력 스키마
{
"type": "object",
"properties": {
"columns": {
"type": "array",
"description": "Column definitions, e.g. [{ \"field\": \"name\", \"header\": \"Name\", \"width\": 160 }]. Required unless `demo` is set."
},
"data": {
"type": "array",
"description": "Rows to display. Required unless `demo` is set. Keep it under a few hundred for a preview."
},
"demo": {
"type": "string",
"description": "Preview a shipped demo instead, by id (e.g. \"11-stock-market\"). Its source is returned as text; find ids with svgrid_search."
},
"title": {
"type": "string",
"description": "Caption shown above the grid."
},
"sortable": {
"type": "boolean",
"description": "Sortable headers. Default true."
},
"filterable": {
"type": "boolean",
"description": "Filtering. Default true."
},
"pageable": {
"type": "boolean",
"description": "Pagination footer."
},
"groupBy": {
"type": "array",
"description": "Group by these column ids."
}
},
"required": []
}커뮤니티
증거