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

55 lines (54 loc) 1.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DiffstatResponseSchema = exports.DiffstatFileChangeSchema = exports.GetRawDiffParamsSchema = exports.GetDiffstatParamsSchema = void 0; const zod_1 = require("zod"); /** * Parameters for retrieving diffstat between two refs (branches, tags, or commit hashes) */ exports.GetDiffstatParamsSchema = zod_1.z.object({ workspace: zod_1.z.string().min(1, 'Workspace is required'), repo_slug: zod_1.z.string().min(1, 'Repository slug is required'), /** e.g., "main..feature" or "hashA..hashB" */ spec: zod_1.z.string().min(1, 'Diff spec is required'), pagelen: zod_1.z.number().int().positive().optional(), cursor: zod_1.z.number().int().positive().optional(), // Bitbucket page-based cursor topic: zod_1.z.boolean().optional(), }); exports.GetRawDiffParamsSchema = zod_1.z.object({ workspace: zod_1.z.string().min(1), repo_slug: zod_1.z.string().min(1), spec: zod_1.z.string().min(1), }); /** * Schema for a single file change entry in diffstat */ exports.DiffstatFileChangeSchema = zod_1.z.object({ status: zod_1.z.string(), old: zod_1.z .object({ path: zod_1.z.string(), type: zod_1.z.string().optional(), }) .nullable() .optional(), new: zod_1.z .object({ path: zod_1.z.string(), type: zod_1.z.string().optional(), }) .nullable() .optional(), lines_added: zod_1.z.number().optional(), lines_removed: zod_1.z.number().optional(), }); /** * Schema for diffstat API response (paginated) */ exports.DiffstatResponseSchema = zod_1.z.object({ pagelen: zod_1.z.number().optional(), values: zod_1.z.array(exports.DiffstatFileChangeSchema), page: zod_1.z.number().optional(), size: zod_1.z.number().optional(), next: zod_1.z.string().optional(), previous: zod_1.z.string().optional(), });