import { l as SemanticDocument } from './types-BNownkHv.cjs'; /** * MCP (Model Context Protocol) Server for SemanticDOM * Exposes SemanticDOM/SSG as MCP Resources and Tools * * Compatible with the Linux Foundation's Model Context Protocol standard * @see https://modelcontextprotocol.io/specification * * @packageDocumentation */ /** * MCP Resource descriptor for SemanticDOM */ interface MCPResource { uri: string; mimeType: string; name: string; description?: string; } /** * MCP Tool descriptor */ interface MCPTool { name: string; description: string; inputSchema: { type: 'object'; properties: Record; required?: string[]; }; } /** * MCP Tool call result */ interface MCPToolResult { content: Array<{ type: 'text' | 'resource'; text?: string; resource?: MCPResource; }>; isError?: boolean; } /** * MCP Prompt descriptor */ interface MCPPrompt { name: string; description: string; arguments?: Array<{ name: string; description: string; required?: boolean; }>; } /** * SemanticDOM MCP Server capabilities */ interface SemanticDOMMCPCapabilities { resources: MCPResource[]; tools: MCPTool[]; prompts: MCPPrompt[]; } /** * Create MCP resource from SemanticDocument */ declare function createResource(document: SemanticDocument, format?: 'json' | 'toon'): MCPResource; /** * Get available MCP tools for SemanticDOM operations */ declare function getTools(): MCPTool[]; /** * Get available MCP prompts for SemanticDOM */ declare function getPrompts(): MCPPrompt[]; /** * Execute MCP tool call */ declare function executeTool(document: SemanticDocument, toolName: string, args: Record): MCPToolResult; /** * Get full MCP capabilities for SemanticDOM */ declare function getCapabilities(document: SemanticDocument): SemanticDOMMCPCapabilities; /** * Serialize document for MCP resource response */ declare function serializeForMCP(document: SemanticDocument, format?: 'json' | 'toon'): string; /** * MCP Server Info for SemanticDOM */ declare const SERVER_INFO: { name: string; version: string; protocolVersion: string; capabilities: { resources: { subscribe: boolean; listChanged: boolean; }; tools: {}; prompts: { listChanged: boolean; }; }; }; export { type MCPPrompt, type MCPResource, type MCPTool, type MCPToolResult, SERVER_INFO, type SemanticDOMMCPCapabilities, createResource, executeTool, getCapabilities, getPrompts, getTools, serializeForMCP };