UNPKG

@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

66 lines (65 loc) 2.45 kB
import { z } from 'zod'; /** * Bitbucket search tool arguments * Specifies what to search for and how to filter results */ export declare const SearchToolArgs: z.ZodObject<z.objectUtil.extendShape<{ /** * Workspace slug containing the content to search. * Must be a valid workspace slug from your Bitbucket account. * Example: "myteam" */ workspaceSlug: z.ZodString; /** * Repository slug to search within. * This is required when searching for pull requests. * Optional for code search; if provided, limits code search to the specified repo. * Example: "backend-api" */ repoSlug: z.ZodOptional<z.ZodString>; /** * Search query to filter results by name, description, or code content. * Required for code search. * Use this to find specific content matching certain terms. */ query: z.ZodOptional<z.ZodString>; /** * Scope of the search. Options include: * - "repositories" (search only repositories) * - "pullrequests" (search only pull requests) * - "commits" (search only commits) * - "code" (search file content) * - "all" (search repositories and pull requests) * Defaults to "all" if not specified. */ scope: z.ZodOptional<z.ZodEnum<["repositories", "pullrequests", "commits", "code", "all"]>>; }, { /** * Maximum number of items to return (1-100). * Use this to control the response size. * Useful for pagination or when you only need a few results. */ limit: z.ZodOptional<z.ZodNumber>; /** * Pagination cursor for retrieving the next set of results. * For repositories and pull requests, this is a cursor string. * For code search, this is a page number. * Use this to navigate through large result sets. */ cursor: z.ZodOptional<z.ZodString>; }>, "strip", z.ZodTypeAny, { workspaceSlug: string; cursor?: string | undefined; limit?: number | undefined; query?: string | undefined; repoSlug?: string | undefined; scope?: "code" | "repositories" | "pullrequests" | "commits" | "all" | undefined; }, { workspaceSlug: string; cursor?: string | undefined; limit?: number | undefined; query?: string | undefined; repoSlug?: string | undefined; scope?: "code" | "repositories" | "pullrequests" | "commits" | "all" | undefined; }>; export type SearchToolArgsType = z.infer<typeof SearchToolArgs>;