Skip to main content
Glama

MCP Svelte Docs Server

# depends Definition **Definition:** Declare a cache dependency key that ties `load` results to invalidation. **Syntax:** `depends(...keys: string[])` **Parameters:** - `keys` — strings like `app:resource` used by `invalidate`/`invalidateAll`. For custom identifiers, use a lowercase prefix followed by `:` to conform to URI rules. **Returns:** Void — registers dependency for the current `load`. ## Example ```ts export const load = ({ depends }) => { depends('app:posts'); return { /* data */ }; }; ``` ## Related - `$app/navigation.invalidate`, `invalidateAll` - `load`

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