@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.87 kB
TypeScript
import { WorkspaceDetailed, WorkspacePermissionsResponse, ListWorkspacesParams } from './vendor.atlassian.workspaces.types.js';
/**
* List Bitbucket workspaces with optional filtering and pagination
*
* Retrieves a list of workspaces from Bitbucket with support for various filters
* and pagination options.
*
* NOTE: The /2.0/user/permissions/workspaces endpoint does not support sorting,
* despite the ListWorkspacesParams type including a sort parameter.
*
* @async
* @memberof VendorAtlassianWorkspacesService
* @param {ListWorkspacesParams} [params={}] - Optional parameters for customizing the request
* @param {string} [params.q] - Filter by workspace name
* @param {number} [params.page] - Page number
* @param {number} [params.pagelen] - Number of items per page
* @returns {Promise<WorkspacePermissionsResponse>} Promise containing the workspaces response with results and pagination info
* @throws {Error} If Atlassian credentials are missing or API request fails
* @example
* // List workspaces with pagination
* const response = await list({
* pagelen: 10
* });
*/
declare function list(params?: ListWorkspacesParams): Promise<WorkspacePermissionsResponse>;
/**
* Get detailed information about a specific Bitbucket workspace
*
* Retrieves comprehensive details about a single workspace.
*
* @async
* @memberof VendorAtlassianWorkspacesService
* @param {string} workspace - The workspace slug
* @returns {Promise<WorkspaceDetailed>} Promise containing the detailed workspace information
* @throws {Error} If Atlassian credentials are missing or API request fails
* @example
* // Get workspace details
* const workspace = await get('my-workspace');
*/
declare function get(workspace: string): Promise<WorkspaceDetailed>;
declare const _default: {
list: typeof list;
get: typeof get;
};
export default _default;