Skip to content
Svartz v2.6.0

@svartz/theme-mcp-docs

14 exported symbols.

Interfaces

i JsonRpcErrorA JSON-RPC error: the server rejected the request, so there is no tool result.
i McpDocsThemeConfigThe vault's `theme` settings for MCP docs.
i McpToolAn MCP tool page, from `operation` metadata with `protocol: mcp`.
i McpToolAnnotationsBehaviour hints a server declares for a tool. They describe the tool; a client can't rely on them for safety, since any server can claim them.
i McpToolExampleOne `tools/call` example: the arguments, and the result or JSON-RPC error that came back.
i McpToolResultA `tools/call` result. `isError` marks a tool that ran and failed; the call itself succeeded.

Types

t McpContentBlockOne MCP content block, as the server sends it: `text`, `image`, `audio`, `resource_link`, or `resource`.

Functions

f defaultNode-safe manifest used by the build pipeline.
f readMcpToolAn MCP tool from a page's `operation` metadata. Throws with the reason when the metadata isn't a tool.
f themeVite-bundled runtime manifest.

Variables

v extensionsThe Node-safe extension the build composes.
v extensionsMCP tool and schema pages on theme-minimal, with the reference frame. Compose them with other themes' extensions.
v mcpRenderersMCP tools and shared schemas.
v mcpToolRenderer`operation.protocol: mcp`: one MCP tool per page.