@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
29 lines (28 loc) • 1.61 kB
TypeScript
import { PullRequest, PullRequestsResponse, DiffstatResponse, PullRequestComment } from '../services/vendor.atlassian.pullrequests.types.js';
interface PullRequestCommentWithSnippet extends PullRequestComment {
codeSnippet?: string;
}
/**
* Format a list of pull requests for display
* @param pullRequestsData - Raw pull requests data from the API
* @returns Formatted string with pull requests information in markdown format
*/
export declare function formatPullRequestsList(pullRequestsData: PullRequestsResponse): string;
/**
* Format detailed pull request information for display
* @param pullRequest - Raw pull request data from the API
* @param diffstat - Optional diffstat data from the API
* @param rawDiff - Optional raw diff content from the API
* @param comments - Optional comments data from the API
* @returns Formatted string with pull request details in markdown format
*/
export declare function formatPullRequestDetails(pullRequest: PullRequest, diffstat?: DiffstatResponse | null, rawDiff?: string | null, comments?: PullRequestCommentWithSnippet[] | null): string;
/**
* Format pull request comments for display, including code snippets for inline comments.
* @param comments - Array of comment objects, potentially enhanced with code snippets.
* @param prId - The ID of the pull request to include in the title.
* @returns Formatted string with pull request comments in markdown format.
*/
export declare function formatPullRequestComments(comments: PullRequestCommentWithSnippet[], // Accept the array of enhanced comments directly
prId: string): string;
export {};