MCP Svelte Docs Server

by spences10
Verified

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LIBSQL_URLNoURL for the LibSQL databasefile:local.db
LIBSQL_AUTH_TOKENNoAuth token for remote LibSQL database

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Svelte Documentation (Standard)Standard documentation covering Svelte core concepts and features
Svelte Documentation (Full)Comprehensive documentation including advanced topics and detailed examples
Svelte Documentation (Concise)Condensed documentation focusing on essential concepts
Svelte Core DocumentationDocumentation specific to Svelte core library features and APIs
SvelteKit DocumentationDocumentation for SvelteKit application framework and routing
Svelte CLI DocumentationDocumentation for Svelte command-line tools and utilities

Tools

Functions exposed to the LLM to take actions

NameDescription
search_docs

Search Svelte documentation using specific technical terms and concepts. Returns relevant documentation sections with context.

Query Guidelines:

  • Use technical terms found in documentation (e.g., "route parameters", "state management", "lifecycle hooks")
  • Search for specific features or concepts rather than asking questions
  • Include relevant package names for targeted results (e.g., "sveltekit", "stores")

Example Queries by Category:

  1. Svelte 5 Runes:
  • "state management runes" (finds $state and state management docs)
  • "derived state calculation" (locates $derived documentation)
  • "effect lifecycle runes" (finds $effect usage patterns)
  • "bindable props svelte" (shows $bindable property usage)
  1. Component Patterns:
  • "component lifecycle" (finds lifecycle documentation)
  • "event handling svelte5" (shows new event handling patterns)
  • "component state management" (locates state management docs)
  • "props typescript definition" (finds prop typing information)
  1. SvelteKit Features:
  • "route parameters sveltekit" (finds routing documentation)
  • "server routes api" (locates API route docs)
  • "page data loading" (shows data loading patterns)
  • "form actions sveltekit" (finds form handling docs)
  1. Error Documentation:
  • "missing export error" (finds specific error docs)
  • "binding validation errors" (locates validation error info)
  • "lifecycle hook errors" (shows lifecycle-related errors)
  • "typescript prop errors" (finds prop typing errors)

Query Pattern Examples: ❌ "How do I manage state?" → ✅ "state management runes" ❌ "What are lifecycle hooks?" → ✅ "component lifecycle" ❌ "How do I handle events?" → ✅ "event handling svelte5" ❌ "How do I create dynamic routes?" → ✅ "route parameters sveltekit"

get_next_chunk

Retrieve subsequent chunks of large documents