UNPKG

@aashari/mcp-server-atlassian-confluence

Version:

Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP in

36 lines (35 loc) 896 B
/** * Utility functions for converting Atlassian Document Format (ADF) to Markdown * * Used for standardized content handling across Atlassian products. * This implementation is compatible with Confluence Cloud's 'atlas_doc_format' content format. */ /** * Interface for ADF document structure */ export interface AdfDocument { version: number; type: string; content: AdfNode[]; } /** * Interface for ADF node */ interface AdfNode { type: string; text?: string; content?: AdfNode[]; attrs?: Record<string, unknown>; marks?: Array<{ type: string; attrs?: Record<string, unknown>; }>; } /** * Convert Atlassian Document Format (ADF) to Markdown * * @param adf - The ADF content to convert (can be string or object) * @returns The converted Markdown content */ export declare function adfToMarkdown(adf: unknown): string; export {};