Skip to main content
Glama

MCP Svelte Docs Server

# +layout.ts Definition **Definition:** Companion module for a layout that declares options and exposes `LayoutData` typing. **Syntax:** `src/routes/(...)/+layout.ts` (or `.js`) **Parameters:** - `export const prerender` — `true | 'auto' | false` - `export const csr` — `boolean` - `export const ssr` — `boolean` - `export const trailingSlash` — `'always' | 'never' | 'ignore'` - `export const config` — adapter-specific options merged top-level with child pages **Returns:** Controls how the layout and its children render. ## Example ```ts export const prerender = 'auto'; export type LayoutLoad = import('./$types').LayoutLoad; export type LayoutData = import('./$types').LayoutData; ``` ## Related - `+layout.svelte` — layout component - `load` — layout loader

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/spences10/mcp-svelte-docs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server