UNPKG

@sofianedjerbi/knowledge-tree-mcp

Version:

MCP server for hierarchical project knowledge management

34 lines 1.18 kB
/** * Markdown export utilities for Knowledge Tree MCP * Handles conversion of knowledge entries to Markdown format */ import type { KnowledgeEntry } from '../../types/index.js'; /** * Entry with path information for export */ export interface ExportEntry { path: string; entry: KnowledgeEntry; } /** * Exports knowledge entries to Markdown format * @param entries - Array of entries to export * @param includeLinks - Whether to include relationship links * @returns Markdown formatted string */ export declare function exportToMarkdown(entries: ExportEntry[], includeLinks: boolean): string; /** * Creates a markdown table of contents from entries * @param entries - Array of entries * @returns Markdown TOC string */ export declare function createMarkdownTOC(entries: ExportEntry[]): string; /** * Formats a single knowledge entry as markdown * @param entry - Knowledge entry * @param path - Entry path * @param includeLinks - Whether to include links * @returns Markdown formatted entry */ export declare function formatEntryAsMarkdown(entry: KnowledgeEntry, path: string, includeLinks?: boolean): string; //# sourceMappingURL=markdown.d.ts.map