UNPKG

@aashari/mcp-server-atlassian-bitbucket

Version:

Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MC

32 lines (31 loc) 1.2 kB
/** * 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>;