@svartz/theme-mcp-docs
14 exported symbols.
Interfaces
| i JsonRpcError | A JSON-RPC error: the server rejected the request, so there is no tool result. |
| i McpDocsThemeConfig | The vault's `theme` settings for MCP docs. |
| i McpTool | An MCP tool page, from `operation` metadata with `protocol: mcp`. |
| i McpToolAnnotations | Behaviour 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 McpToolExample | One `tools/call` example: the arguments, and the result or JSON-RPC error that came back. |
| i McpToolResult | A `tools/call` result. `isError` marks a tool that ran and failed; the call itself succeeded. |
Types
| t McpContentBlock | One MCP content block, as the server sends it: `text`, `image`, `audio`, `resource_link`, or `resource`. |
Functions
| f default | Node-safe manifest used by the build pipeline. |
| f readMcpTool | An MCP tool from a page's `operation` metadata. Throws with the reason when the metadata isn't a tool. |
| f theme | Vite-bundled runtime manifest. |
Variables
| v extensions | The Node-safe extension the build composes. |
| v extensions | MCP tool and schema pages on theme-minimal, with the reference frame. Compose them with other themes' extensions. |
| v mcpRenderers | MCP tools and shared schemas. |
| v mcpToolRenderer | `operation.protocol: mcp`: one MCP tool per page. |