/** * Doc-related MCP Tools * * Provides MCP tools for doc lifecycle (create/update/lock), * linking, rendering, and listing. */ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { Doc, DocLink, DocKind, DocStatus, DocLinkType } from "@jamesaphoenix/tx/types"; interface SerializedDoc { id: number; docId: string; hash: string; kind: DocKind; name: string; title: string; version: number; status: DocStatus; filePath: string; parentDocId: number | null; createdAt: string; lockedAt: string | null; metadata: Record; } interface SerializedDocLink { id: number; fromDocId: number; toDocId: number; linkType: DocLinkType; createdAt: string; } /** * Serialize a Doc for JSON-safe MCP responses (dates -> ISO strings). */ export declare const serializeDoc: (doc: Doc) => SerializedDoc; /** * Serialize a DocLink for JSON-safe MCP responses (dates -> ISO strings). */ export declare const serializeDocLink: (link: DocLink) => SerializedDocLink; /** * Register all doc-related MCP tools on the server. */ export declare const registerDocTools: (server: McpServer) => void; export {}; //# sourceMappingURL=doc.d.ts.map