
studentofjs/svelte5-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
studentofjs/svelte5-mcp - кандидат на сервер MCP, импортированный из https://github.com/studentofjs/svelte5-mcp.
Обзор
studentofjs/svelte5-mcp - кандидат на сервер MCP, импортированный из https://github.com/studentofjs/svelte5-mcp.
Обзор (машинный перевод)
Специализированный сервер Model Context Protocol (MCP) для разработки интерфейса Svelte 5, предоставляющий кураторские знания, примеры кода и интеллектуальную помощь для современной разработки Svelte с рунами, фрагментами и повышенной реактивностью.
Особенности
** Поисковые ресурсы**
** База знаний**: кураторские вопросы и ответы, охватывающие концепции, руны и лучшие практики Svelte 5 ** Примеры кода**: Поисковая коллекция шаблонов Svelte 5 и реализации компонентов
s️Интеллектуальные инструменты
- [[Т0]] - Найти объяснения и понятия
search_examples- Откройте шаблоны кода и реализацииgenerate_with_context- Создание компонентов с использованием курируемых шаблонов audit_with_rules- Код обзора лучших практик Svelte 5 [4] - Получить подробные объяснения с примерами
s** Умные подсказки**
generate-component - Генерировать современные компоненты Svelte 5
audit-svelte5-code - Аудиторский код для оптимизации возможностей
[[Т7]] - Подробные пояснения концепции
search-patterns - Найти конкретные схемы реализации
##Установка
Проектная структура
Использование с Claude Desktop
Добавьте конфигурацию Claude Desktop:
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Svelte 5 MCP Server
A specialized Model Context Protocol (MCP) server for Svelte 5 frontend development, providing curated knowledge, code examples, and intelligent assistance for modern Svelte development with runes, snippets, and enhanced reactivity.
Features
🔍 Searchable Resources
- Knowledge Base: Curated Q&A covering Svelte 5 concepts, runes, and best practices
- Code Examples: Searchable collection of Svelte 5 patterns and component implementations
🛠️ Intelligent Tools
search_knowledge- Find explanations and conceptssearch_examples- Discover code patterns and implementationsgenerate_with_context- Create components using curated patternsaudit_with_rules- Review code against Svelte 5 best practicesexplain_concept- Get detailed explanations with examples
📝 Smart Prompts
generate-component- Generate modern Svelte 5 componentsaudit-svelte5-code- Audit code for optimization opportunitiesexplain-concept- Detailed concept explanationssearch-patterns- Find specific implementation patterns
Installation
# Clone and setup
git clone
cd svelte5-mcp-server
# Install dependencies
npm install
# Build the server
npm run build
# Start the server
npm start
Project Structure
svelte5-mcp-server/
├── src/
│ └── index.ts # Main MCP server implementation
├── data/
│ ├── svelte_5_knowledge.json # Curated Q&A knowledge base
│ └── svelte_5_patterns.json # Code examples and patterns
├── package.json
├── tsconfig.json
├── example system prompt # Svelte 5 specific system prompt (quite strict, adjust for your own preferences)
└── README.md
Usage with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"svelte5": {
"command": "node",
"args": ["/path/to/svelte5-mcp-server/dist/index.js"],
"env": {}
}
}
}
Usage Examples
🔍 Search Knowledge
Tool: search_knowledge
Query: "runes reactivity"
Returns detailed explanations about Svelte 5 runes and the new reactivity system.
📚 Find Code Examples
Tool: search_examples
Query: "counter component $state"
Returns working Svelte 5 counter implementations using the $state rune.
🏗️ Generate Components
Tool: generate_with_context
Description: "A todo list with add/remove functionality"
Features: ["$state", "snippets", "accessibility"]
Generates a complete todo component using modern Svelte 5 patterns with relevant examples from the knowledge base.
🔍 Audit Code
Tool: audit_with_rules
Code: " count++}>{count}"
Focus: "best-practices"
Analyzes code and suggests Svelte 5 improvements (e.g., using $state and modern event handling).
Key Svelte 5 Concepts Covered
🎯 Runes System
$state- Reactive state management
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"svelte5": {
"command": "node",
"args": ["/path/to/svelte5-mcp-server/dist/index.js"],
"env": {}
}
}
}