@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
46 lines (45 loc) • 1.32 kB
TypeScript
import { ControllerResponse } from '../types/common.types.js';
/**
* Base interface that extends Record<string, unknown> for error handling compatibility
*/
interface BaseDiffOptions extends Record<string, unknown> {
workspaceSlug?: string;
repoSlug: string;
includeFullDiff?: boolean;
limit?: number;
cursor?: number;
topic?: boolean;
}
/**
* Interface for branch diff options
*/
interface BranchDiffOptions extends BaseDiffOptions {
sourceBranch: string;
destinationBranch?: string;
}
/**
* Interface for commit diff options
*/
interface CommitDiffOptions extends BaseDiffOptions {
sinceCommit: string;
untilCommit: string;
}
/**
* Compare two branches and return the differences
*
* @param options - Options for branch comparison
* @returns Promise with formatted diff content and pagination
*/
declare function branchDiff(options: BranchDiffOptions): Promise<ControllerResponse>;
/**
* Compare two commits and return the differences
*
* @param options - Options for commit comparison
* @returns Promise with formatted diff content and pagination
*/
declare function commitDiff(options: CommitDiffOptions): Promise<ControllerResponse>;
declare const _default: {
branchDiff: typeof branchDiff;
commitDiff: typeof commitDiff;
};
export default _default;