UNPKG

@gohcltech/bitbucket-mcp

Version:

Bitbucket integration for Claude via Model Context Protocol

80 lines 3.37 kB
/** * @fileoverview Barrel export for all client modules. * * This module provides a centralized export point for all Bitbucket API client * classes and related types. It follows the barrel pattern to simplify imports * and provide a clean public API surface for consumers. * * The client architecture follows a domain-driven design with specialized * clients for different areas of the Bitbucket API: * * - **BaseClient**: Abstract foundation providing HTTP operations, authentication, * rate limiting, error handling, and pagination utilities * - **BitbucketClient**: Main facade that composes all domain clients with * backward compatibility methods * - **WorkspaceClient**: Workspace discovery and management operations * - **RepositoryClient**: Repository CRUD operations and configuration * - **BranchClient**: Branch management, Git Flow, and protection rules * - **PullRequestClient**: PR workflows, approvals, merging, and comments * - **CommitClient**: Commit history, diffs, patches, and analysis * - **IssueClient**: Issue tracking, comments, and project management metadata * * @example * ```typescript * import { BitbucketClient, WorkspaceClient, RepositoryClient } from './clients'; * import type { BitbucketApiResponse, Workspace, Repository } from './clients'; * * // Use the main facade client (recommended) * const client = new BitbucketClient(oauthService); * await client.workspaces.getWorkspaces(); * await client.repositories.createRepository('workspace', 'repo', config); * * // Or use individual domain clients for specific needs * const workspaceClient = new WorkspaceClient(oauthService); * const workspaces = await workspaceClient.getAllWorkspaces(); * ``` */ // ============================================================================= // CLIENT CLASSES // ============================================================================= /** * Abstract base class for all Bitbucket API clients. * Provides common HTTP operations, authentication, rate limiting, and pagination. */ export { BaseClient } from './base-client.js'; /** * HTTP client for Bitbucket workspace operations. * Handles workspace discovery and management. */ export { WorkspaceClient } from './workspace-client.js'; /** * HTTP client for Bitbucket repository operations. * Manages repository CRUD operations and configuration. */ export { RepositoryClient } from './repository-client.js'; /** * HTTP client for Bitbucket branch operations. * Handles branch management, Git Flow, and protection rules. */ export { BranchClient } from './branch-client.js'; /** * HTTP client for Bitbucket pull request operations. * Manages PR workflows, approvals, merging, and comments. */ export { PullRequestClient } from './pull-request-client.js'; /** * HTTP client for Bitbucket commit operations. * Provides commit history, diffs, patches, and analysis. */ export { CommitClient } from './commit-client.js'; /** * HTTP client for Bitbucket issue tracking operations. * Handles issues, comments, and project management metadata. */ export { IssueClient } from './issue-client.js'; /** * Main Bitbucket API client facade that composes all domain-specific clients. * This is the recommended entry point for most use cases. */ export { BitbucketClient } from './bitbucket-client.js'; //# sourceMappingURL=index.js.map