@zhanglc77/bitbucket-mcp-server
Version:
MCP server for Bitbucket API integration - supports both Cloud and Server
101 lines • 2.42 kB
TypeScript
import { BitbucketApiClient } from '../utils/api-client.js';
export declare class PullRequestHandlers {
private apiClient;
private baseUrl;
private username;
constructor(apiClient: BitbucketApiClient, baseUrl: string, username: 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;
}[];
}>;
}
//# sourceMappingURL=pull-request-handlers.d.ts.map