SM

spences10/mcp-svelte-docs

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

124 stars 8 forks 품질 83 트렌드 20MIT

spences10/mcp-svelte-docs는 https://github.com/spences10/mcp-svelte-docs.에서 가져온 MCP 서버 후보입니다.

개요

spences10/mcp-svelte-docs는 https://github.com/spences10/mcp-svelte-docs.에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

권위 있는 Svelte 5를 제공하는 모델 컨텍스트 프로토콜(MCP) 서버 그리고 TypeScript에서 직접 추출한 SvelteKit 정의 선언. 모든 것에 대한 정확한 문법, 매개변수, 예제를 얻을 수 있습니다 Svelte 5 개념을 단일 통합 인터페이스를 통해 제공합니다.

건축

정의-우선 접근법: 여러 전문 도구 대신, 이 서버는 강력한 svelte_definition 도구를 제공합니다. 다음을 포함하는 28+ 개의 포괄적인 정의에 접근할 수 있습니다:

  • 모든 슬벨트 5 룬 ($state, $derived, $props, $effect 변형)
  • 최신 기능 (스니펫, 대기 표현, 원격 기능)
  • 이벤트 처리 (DOM 이벤트, 커스텀 이벤트, 컴포넌트 통신)
  • 마이그레이션 지침 (Svelte 4 to 5 패턴 및 모범 사례)
  • TypeScript 인터페이스 (스니펫, 스냅샷 타입)
  • 고급 패턴 (전역 상태, 흔한 실수, 수명주기) 동등한 것들)

사용 가능한 도구

svelte_definition

모든 Svelte 5와 SvelteKit 개념을 위한 단일 강력한 도구:

예시:

  • svelte_definition("$state") - 완전한 $state 문서
  • svelte_definition("snippets", "quick") - 스니펫 개요와 예시

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

mcp-svelte-docs

A Model Context Protocol (MCP) server providing authoritative Svelte 5 and SvelteKit definitions extracted directly from TypeScript declarations. Get precise syntax, parameters, and examples for all Svelte 5 concepts through a single, unified interface.

Architecture

Definition-First Approach: Rather than multiple specialized tools, this server provides one powerful svelte_definition tool that accesses 28+ comprehensive definitions covering:

  • All Svelte 5 runes ($state, $derived, $props, $effect variants)
  • Modern features (snippets, await expressions, remote functions)
  • Event handling (DOM events, custom events, component communication)
  • Migration guidance (Svelte 4 to 5 patterns and best practices)
  • TypeScript interfaces (Snippet, Snapshot types)
  • Advanced patterns (global state, common mistakes, lifecycle equivalents)

Available Tool

svelte_definition

Single, powerful tool for all Svelte 5 and SvelteKit concepts:

svelte_definition(identifier: string, format?: "syntax"|"quick"|"full")

Examples:

  • svelte_definition("$state") - Complete $state documentation
  • svelte_definition("snippets", "quick") - Snippet overview with example
  • svelte_definition("onclick", "syntax") - Just the TypeScript signature
  • svelte_definition("migration-patterns") - Svelte 4 → 5 migration guide

Response Formats:

  • "syntax" - TypeScript signature only (~50 words)
  • "quick" - Definition + minimal example (~200 words)
  • "full" - Complete documentation with examples (~500-1000 words, default)

Available Identifiers (28+)

Core Runes: $state, $state.raw, $state.snapshot, $derived, $derived.by, $props, $bindable, $effect, $effect.pre, $effect.root, $effect.pending, $effect.tracking

Development Tools: $inspect, $host

Features & Patterns: snippets, onclick, component-events, migration-patterns, await-expressions, remote-functions, global-state, common-mistakes, lifecycle-equivalents

Event Handling: custom-events, event-delegation, event-modifiers

TypeScript Interfaces: snippet, snapshot

Key Features

🎯 Authoritative & TypeScript-First

  • Direct from Source: Definitions extracted from official Svelte 5 TypeScript declarations
  • Always Current: Reflects the actual API, not outdated tutorials
  • Type-Safe: Includes precise parameter types, return values, and constraints

⚡ Single Interface, Complete Coverage

  • One Tool: svelte_definition replaces 16+ specialized tools
  • 28+ Definitions: Every Svelte 5 rune, feature, and pattern covered
  • Consistent Responses: Same interface whether you need $state or remote-functions

🚀 Modern Svelte 5 & SvelteKit Support

  • Await Expressions: Async operations directly in templates (await-expressions)
GitHub에서 전체 README 보기

설치

npx -y mcp-svelte-docs
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mcp-svelte-docs": { "command": "wsl.exe", "args": ["bash", "-c", "npx -y mcp-svelte-docs"] } } }