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

26 lines (25 loc) 951 B
/** * Utilities for formatting and handling query parameters for the Bitbucket API. * These functions help convert user-friendly query strings into the format expected by Bitbucket's REST API. */ /** * Format a simple text query into Bitbucket's query syntax * Bitbucket API expects query parameters in a specific format for the 'q' parameter * * @param query - The search query string * @param field - Optional field to search in, defaults to 'name' * @returns Formatted query string for Bitbucket API * * @example * // Simple text search (returns: name ~ "vue3") * formatBitbucketQuery("vue3") * * @example * // Already formatted query (returns unchanged: name = "repository") * formatBitbucketQuery("name = \"repository\"") * * @example * // With specific field (returns: description ~ "API") * formatBitbucketQuery("API", "description") */ export declare function formatBitbucketQuery(query: string, field?: string): string;