@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
32 lines (31 loc) • 1.2 kB
TypeScript
/**
* Convert data to TOON format with JSON fallback
*
* Attempts to encode data as TOON (Token-Oriented Object Notation) for
* more efficient LLM token usage. Falls back to JSON if TOON encoding fails.
*
* @param data - The data to convert
* @param jsonFallback - The JSON string to return if TOON conversion fails
* @returns TOON formatted string, or JSON fallback on error
*
* @example
* const json = JSON.stringify(data, null, 2);
* const output = await toToonOrJson(data, json);
*/
export declare function toToonOrJson(data: unknown, jsonFallback: string): Promise<string>;
/**
* Synchronous TOON conversion with JSON fallback
*
* Uses cached encoder if available, otherwise returns JSON fallback.
* Prefer toToonOrJson for first-time conversion.
*
* @param data - The data to convert
* @param jsonFallback - The JSON string to return if TOON is unavailable
* @returns TOON formatted string, or JSON fallback
*/
export declare function toToonOrJsonSync(data: unknown, jsonFallback: string): string;
/**
* Pre-load the TOON encoder for synchronous usage later
* Call this during server initialization
*/
export declare function preloadToonEncoder(): Promise<boolean>;