@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
201 lines (200 loc) • 5.23 kB
TypeScript
import { z } from 'zod';
/**
* Schema for list-pull-requests tool arguments
*/
export declare const ListPullRequestsToolArgs: z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
cursor: z.ZodOptional<z.ZodString>;
/**
* Workspace slug containing the repository
*/
workspaceSlug: z.ZodString;
/**
* Repository slug containing the pull requests
*/
repoSlug: z.ZodString;
/**
* Filter by pull request state
*/
state: z.ZodOptional<z.ZodEnum<["OPEN", "MERGED", "DECLINED", "SUPERSEDED"]>>;
/**
* Filter query for pull requests
*/
query: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
workspaceSlug: string;
repoSlug: string;
cursor?: string | undefined;
limit?: number | undefined;
state?: "OPEN" | "MERGED" | "DECLINED" | "SUPERSEDED" | undefined;
query?: string | undefined;
}, {
workspaceSlug: string;
repoSlug: string;
cursor?: string | undefined;
limit?: number | undefined;
state?: "OPEN" | "MERGED" | "DECLINED" | "SUPERSEDED" | undefined;
query?: string | undefined;
}>;
export type ListPullRequestsToolArgsType = z.infer<typeof ListPullRequestsToolArgs>;
/**
* Schema for get-pull-request tool arguments
*/
export declare const GetPullRequestToolArgs: z.ZodObject<{
/**
* Workspace slug containing the repository
*/
workspaceSlug: z.ZodString;
/**
* Repository slug containing the pull request
*/
repoSlug: z.ZodString;
/**
* Pull request identifier
*/
prId: z.ZodString;
}, "strip", z.ZodTypeAny, {
workspaceSlug: string;
repoSlug: string;
prId: string;
}, {
workspaceSlug: string;
repoSlug: string;
prId: string;
}>;
export type GetPullRequestToolArgsType = z.infer<typeof GetPullRequestToolArgs>;
/**
* Schema for list-pr-comments tool arguments
*/
export declare const ListPullRequestCommentsToolArgs: z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
cursor: z.ZodOptional<z.ZodString>;
/**
* Workspace slug containing the repository
*/
workspaceSlug: z.ZodString;
/**
* Repository slug containing the pull request
*/
repoSlug: z.ZodString;
/**
* Pull request identifier
*/
prId: z.ZodString;
}, "strip", z.ZodTypeAny, {
workspaceSlug: string;
repoSlug: string;
prId: string;
cursor?: string | undefined;
limit?: number | undefined;
}, {
workspaceSlug: string;
repoSlug: string;
prId: string;
cursor?: string | undefined;
limit?: number | undefined;
}>;
export type ListPullRequestCommentsToolArgsType = z.infer<typeof ListPullRequestCommentsToolArgs>;
/**
* Schema for add-pr-comment tool arguments
*/
export declare const AddPullRequestCommentToolArgs: z.ZodObject<{
/**
* Workspace slug containing the repository
*/
workspaceSlug: z.ZodString;
/**
* Repository slug containing the pull request
*/
repoSlug: z.ZodString;
/**
* Pull request identifier
*/
prId: z.ZodString;
/**
* Comment content
*/
content: z.ZodString;
/**
* Optional inline location for the comment
*/
inline: z.ZodOptional<z.ZodObject<{
path: z.ZodString;
line: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
path: string;
line: number;
}, {
path: string;
line: number;
}>>;
}, "strip", z.ZodTypeAny, {
workspaceSlug: string;
content: string;
repoSlug: string;
prId: string;
inline?: {
path: string;
line: number;
} | undefined;
}, {
workspaceSlug: string;
content: string;
repoSlug: string;
prId: string;
inline?: {
path: string;
line: number;
} | undefined;
}>;
export type AddPullRequestCommentToolArgsType = z.infer<typeof AddPullRequestCommentToolArgs>;
/**
* Arguments schema for the pull_requests_create tool
*/
export declare const CreatePullRequestToolArgs: z.ZodObject<{
/**
* Workspace slug containing the repository
*/
workspaceSlug: z.ZodString;
/**
* Repository slug to create the pull request in
*/
repoSlug: z.ZodString;
/**
* Title of the pull request
*/
title: z.ZodString;
/**
* Source branch name
*/
sourceBranch: z.ZodString;
/**
* Destination branch name
*/
destinationBranch: z.ZodOptional<z.ZodString>;
/**
* Description for the pull request
*/
description: z.ZodOptional<z.ZodString>;
/**
* Whether to close the source branch after merge
*/
closeSourceBranch: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
workspaceSlug: string;
repoSlug: string;
title: string;
sourceBranch: string;
description?: string | undefined;
destinationBranch?: string | undefined;
closeSourceBranch?: boolean | undefined;
}, {
workspaceSlug: string;
repoSlug: string;
title: string;
sourceBranch: string;
description?: string | undefined;
destinationBranch?: string | undefined;
closeSourceBranch?: boolean | undefined;
}>;
export type CreatePullRequestToolArgsType = z.infer<typeof CreatePullRequestToolArgs>;