@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
41 lines (40 loc) • 1.27 kB
TypeScript
/**
* Interface for Atlassian API credentials
*/
export interface AtlassianCredentials {
siteName?: string;
userEmail?: string;
apiToken?: string;
bitbucketUsername?: string;
bitbucketAppPassword?: string;
useBitbucketAuth?: boolean;
}
/**
* Interface for HTTP request options
*/
export interface RequestOptions {
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
headers?: Record<string, string>;
body?: unknown;
timeout?: number;
}
/**
* Transport response wrapper that includes the data and the path to the raw response file
*/
export interface TransportResponse<T> {
data: T;
rawResponsePath: string | null;
}
/**
* Get Atlassian credentials from environment variables
* @returns AtlassianCredentials object or null if credentials are missing
*/
export declare function getAtlassianCredentials(): AtlassianCredentials | null;
/**
* Fetch data from Atlassian API
* @param credentials Atlassian API credentials
* @param path API endpoint path (without base URL)
* @param options Request options
* @returns Response data wrapped with raw response path
*/
export declare function fetchAtlassian<T>(credentials: AtlassianCredentials, path: string, options?: RequestOptions): Promise<TransportResponse<T>>;