@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
26 lines (25 loc) • 1.09 kB
TypeScript
/**
* Safely converts a path or path segments to a string, handling various input types.
* Useful for ensuring consistent path string representations across different platforms.
*
* @param pathInput - The path or path segments to convert to a string
* @returns The path as a normalized string
*/
export declare function pathToString(pathInput: string | string[] | unknown): string;
/**
* Determines if a given path is within the user's home directory
* which is generally considered a safe location for MCP operations.
*
* @param inputPath - Path to check
* @returns True if the path is within the user's home directory
*/
export declare function isPathInHome(inputPath: string): boolean;
/**
* Gets a user-friendly display version of a path for use in messages.
* For paths within the home directory, can replace with ~ for brevity.
*
* @param inputPath - Path to format
* @param useHomeTilde - Whether to replace home directory with ~ symbol
* @returns Formatted path string
*/
export declare function formatDisplayPath(inputPath: string, useHomeTilde?: boolean): string;