MCP Svelte Docs Server

search_docs

Search Svelte technical documentation using specific terms or concepts. Returns relevant sections with context, including lifecycle hooks, state management, and SvelteKit features.

Instructions

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"

Input Schema

NameRequiredDescriptionDefault
contextNoNumber of surrounding paragraphs
doc_typeNoFilter by documentation typeall
include_hierarchyNoInclude section hierarchy
packageNoFilter by package
queryYesSearch keywords or natural language query

Input Schema (JSON Schema)

{ "properties": { "context": { "default": 1, "description": "Number of surrounding paragraphs", "maximum": 3, "minimum": 0, "type": "number" }, "doc_type": { "default": "all", "description": "Filter by documentation type", "enum": [ "api", "tutorial", "example", "error", "all" ], "type": "string" }, "include_hierarchy": { "default": true, "description": "Include section hierarchy", "type": "boolean" }, "package": { "description": "Filter by package", "enum": [ "svelte", "kit", "cli" ], "type": "string" }, "query": { "description": "Search keywords or natural language query", "type": "string" } }, "required": [ "query" ], "type": "object" }

You must be authenticated.

Other Tools from MCP Svelte Docs Server

Related Tools

ID: wu4hy1xtjb