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の概念を単一の統一インターフェースでまとめています。

建築

定義優先のアプローチ:複数の専門的なツールを使うのではなく、 このサーバーは、 以下を含む28+の包括的な定義にアクセスできます:

  • すべてのスベルテ5ルーン($state、$derived、$props、$effectのバリエーション)
  • 現代機能(スニペット、wait式、リモート関数)
  • イベント処理(DOMイベント、カスタムイベント、コンポーネント) コミュニケーション)
  • 移行ガイダンス(Svelte 4から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"] } } }