@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
43 lines (42 loc) • 1.34 kB
TypeScript
import { ControllerResponse } from '../types/common.types.js';
/**
* Search options interface
* Defines the parameters for searching Bitbucket content
*/
export interface SearchOptions {
workspaceSlug?: string;
repoSlug?: string;
query?: string;
scope?: 'repositories' | 'pullrequests' | 'commits' | 'code' | 'all';
limit?: number;
cursor?: string;
page?: number;
pageLen?: number;
}
/**
* Search for code in repositories
*
* @param options Options for code search
* @returns Promise with formatted code search results
*/
declare function searchCode(options?: SearchOptions): Promise<ControllerResponse>;
/**
* Search for commits in a repository
*
* @param options Options for commit search
* @returns Promise with formatted commit search results
*/
declare function searchCommits(options?: SearchOptions): Promise<ControllerResponse>;
/**
* Search for Bitbucket content across repositories and pull requests
*
* @param {SearchOptions} options - Options for the search
* @returns {Promise<ControllerResponse>} Formatted search results in Markdown
*/
declare function search(options?: SearchOptions): Promise<ControllerResponse>;
declare const _default: {
search: typeof search;
searchCode: typeof searchCode;
searchCommits: typeof searchCommits;
};
export default _default;