@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
187 lines (186 loc) • 5.5 kB
TypeScript
import { z } from 'zod';
/**
* Schema for list-repositories tool arguments
*/
export declare const ListRepositoriesToolArgs: z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
cursor: z.ZodOptional<z.ZodString>;
/**
* Workspace slug containing the repositories
*/
workspaceSlug: z.ZodOptional<z.ZodString>;
/**
* Optional query to filter repositories
*/
query: z.ZodOptional<z.ZodString>;
/**
* Optional sort parameter
*/
sort: z.ZodOptional<z.ZodString>;
/**
* Optional role filter
*/
role: z.ZodOptional<z.ZodString>;
/**
* Optional project key filter
*/
projectKey: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
sort?: string | undefined;
cursor?: string | undefined;
limit?: number | undefined;
workspaceSlug?: string | undefined;
role?: string | undefined;
query?: string | undefined;
projectKey?: string | undefined;
}, {
sort?: string | undefined;
cursor?: string | undefined;
limit?: number | undefined;
workspaceSlug?: string | undefined;
role?: string | undefined;
query?: string | undefined;
projectKey?: string | undefined;
}>;
export type ListRepositoriesToolArgsType = z.infer<typeof ListRepositoriesToolArgs>;
/**
* Schema for get-repository tool arguments
*/
export declare const GetRepositoryToolArgs: z.ZodObject<{
/**
* Workspace slug containing the repository
*/
workspaceSlug: z.ZodOptional<z.ZodString>;
/**
* Repository slug to retrieve
*/
repoSlug: z.ZodString;
}, "strip", z.ZodTypeAny, {
repoSlug: string;
workspaceSlug?: string | undefined;
}, {
repoSlug: string;
workspaceSlug?: string | undefined;
}>;
export type GetRepositoryToolArgsType = z.infer<typeof GetRepositoryToolArgs>;
/**
* Schema for get-commit-history tool arguments.
*/
export declare const GetCommitHistoryToolArgs: z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
cursor: z.ZodOptional<z.ZodString>;
workspaceSlug: z.ZodOptional<z.ZodString>;
repoSlug: z.ZodString;
revision: z.ZodOptional<z.ZodString>;
path: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
repoSlug: string;
path?: string | undefined;
cursor?: string | undefined;
limit?: number | undefined;
workspaceSlug?: string | undefined;
revision?: string | undefined;
}, {
repoSlug: string;
path?: string | undefined;
cursor?: string | undefined;
limit?: number | undefined;
workspaceSlug?: string | undefined;
revision?: string | undefined;
}>;
export type GetCommitHistoryToolArgsType = z.infer<typeof GetCommitHistoryToolArgs>;
/**
* Schema for create-branch tool arguments.
*/
export declare const CreateBranchToolArgsSchema: z.ZodObject<{
workspaceSlug: z.ZodOptional<z.ZodString>;
repoSlug: z.ZodString;
newBranchName: z.ZodString;
sourceBranchOrCommit: z.ZodString;
}, "strip", z.ZodTypeAny, {
repoSlug: string;
newBranchName: string;
sourceBranchOrCommit: string;
workspaceSlug?: string | undefined;
}, {
repoSlug: string;
newBranchName: string;
sourceBranchOrCommit: string;
workspaceSlug?: string | undefined;
}>;
export type CreateBranchToolArgsType = z.infer<typeof CreateBranchToolArgsSchema>;
/**
* Schema for clone-repository tool arguments.
*/
export declare const CloneRepositoryToolArgs: z.ZodObject<{
workspaceSlug: z.ZodOptional<z.ZodString>;
repoSlug: z.ZodString;
targetPath: z.ZodString;
}, "strip", z.ZodTypeAny, {
repoSlug: string;
targetPath: string;
workspaceSlug?: string | undefined;
}, {
repoSlug: string;
targetPath: string;
workspaceSlug?: string | undefined;
}>;
export type CloneRepositoryToolArgsType = z.infer<typeof CloneRepositoryToolArgs>;
/**
* Schema for get-file-content tool arguments.
*/
export declare const GetFileContentToolArgs: z.ZodObject<{
workspaceSlug: z.ZodOptional<z.ZodString>;
repoSlug: z.ZodString;
filePath: z.ZodString;
revision: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
repoSlug: string;
filePath: string;
workspaceSlug?: string | undefined;
revision?: string | undefined;
}, {
repoSlug: string;
filePath: string;
workspaceSlug?: string | undefined;
revision?: string | undefined;
}>;
export type GetFileContentToolArgsType = z.infer<typeof GetFileContentToolArgs>;
/**
* Schema for list-branches tool arguments
*/
export declare const ListBranchesToolArgs: z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
cursor: z.ZodOptional<z.ZodString>;
/**
* Workspace slug containing the repository
*/
workspaceSlug: z.ZodOptional<z.ZodString>;
/**
* Repository slug to list branches from
*/
repoSlug: z.ZodString;
/**
* Optional query to filter branches
*/
query: z.ZodOptional<z.ZodString>;
/**
* Optional sort parameter
*/
sort: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
repoSlug: string;
sort?: string | undefined;
cursor?: string | undefined;
limit?: number | undefined;
workspaceSlug?: string | undefined;
query?: string | undefined;
}, {
repoSlug: string;
sort?: string | undefined;
cursor?: string | undefined;
limit?: number | undefined;
workspaceSlug?: string | undefined;
query?: string | undefined;
}>;
export type ListBranchesToolArgsType = z.infer<typeof ListBranchesToolArgs>;