@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
93 lines (92 loc) • 3.05 kB
TypeScript
import { z } from 'zod';
/**
* Output format options for API responses
* - toon: Token-Oriented Object Notation (default, more token-efficient for LLMs)
* - json: Standard JSON format
*/
export declare const OutputFormat: z.ZodOptional<z.ZodEnum<{
toon: "toon";
json: "json";
}>>;
/**
* Schema for bb_get tool arguments (GET requests - no body)
*/
export declare const GetApiToolArgs: z.ZodObject<{
path: z.ZodString;
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
jq: z.ZodOptional<z.ZodString>;
outputFormat: z.ZodOptional<z.ZodEnum<{
toon: "toon";
json: "json";
}>>;
}, z.core.$strip>;
export type GetApiToolArgsType = z.infer<typeof GetApiToolArgs>;
/**
* Schema for requests with body (POST, PUT, PATCH)
*/
export declare const RequestWithBodyArgs: z.ZodObject<{
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
path: z.ZodString;
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
jq: z.ZodOptional<z.ZodString>;
outputFormat: z.ZodOptional<z.ZodEnum<{
toon: "toon";
json: "json";
}>>;
}, z.core.$strip>;
export type RequestWithBodyArgsType = z.infer<typeof RequestWithBodyArgs>;
/**
* Schema for bb_post tool arguments (POST requests)
*/
export declare const PostApiToolArgs: z.ZodObject<{
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
path: z.ZodString;
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
jq: z.ZodOptional<z.ZodString>;
outputFormat: z.ZodOptional<z.ZodEnum<{
toon: "toon";
json: "json";
}>>;
}, z.core.$strip>;
export type PostApiToolArgsType = RequestWithBodyArgsType;
/**
* Schema for bb_put tool arguments (PUT requests)
*/
export declare const PutApiToolArgs: z.ZodObject<{
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
path: z.ZodString;
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
jq: z.ZodOptional<z.ZodString>;
outputFormat: z.ZodOptional<z.ZodEnum<{
toon: "toon";
json: "json";
}>>;
}, z.core.$strip>;
export type PutApiToolArgsType = RequestWithBodyArgsType;
/**
* Schema for bb_patch tool arguments (PATCH requests)
*/
export declare const PatchApiToolArgs: z.ZodObject<{
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
path: z.ZodString;
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
jq: z.ZodOptional<z.ZodString>;
outputFormat: z.ZodOptional<z.ZodEnum<{
toon: "toon";
json: "json";
}>>;
}, z.core.$strip>;
export type PatchApiToolArgsType = RequestWithBodyArgsType;
/**
* Schema for bb_delete tool arguments (DELETE requests - no body)
*/
export declare const DeleteApiToolArgs: z.ZodObject<{
path: z.ZodString;
queryParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
jq: z.ZodOptional<z.ZodString>;
outputFormat: z.ZodOptional<z.ZodEnum<{
toon: "toon";
json: "json";
}>>;
}, z.core.$strip>;
export type DeleteApiToolArgsType = GetApiToolArgsType;