rafee-bitbucket-mcp-server
Version:
MCP server for Bitbucket API integration - supports both Cloud and Server
104 lines • 2.57 kB
TypeScript
import { BitbucketApiClient } from "../utils/api-client.js";
import { UserHandlers } from "./user-handlers.js";
export declare class PullRequestHandlers {
private apiClient;
private userHandlers;
private username;
private baseUrl;
constructor(apiClient: BitbucketApiClient, userHandlers: UserHandlers, username: string, baseUrl: string);
private getFilteredPullRequestDiff;
handleGetPullRequest(args: any): Promise<{
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
}>;
handleListPullRequests(args: any): Promise<{
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
}>;
handleCreatePullRequest(args: any): Promise<{
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
}>;
handleUpdatePullRequest(args: any): Promise<{
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
}>;
handleAddComment(args: any): Promise<{
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
}>;
handleMergePullRequest(args: any): Promise<{
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
}>;
private fetchPullRequestComments;
private fetchPullRequestFileChanges;
private resolveLineFromCode;
private findCodeMatches;
private calculateConfidence;
private getPreview;
private extractContext;
private selectBestMatch;
handleListPrCommits(args: any): Promise<{
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
}>;
getDefaultReviewers(args: any): Promise<any>;
}
//# sourceMappingURL=pull-request-handlers.d.ts.map