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

10 lines (9 loc) 561 B
/** * Extracts a code snippet from raw unified diff content around a specific line number. * * @param diffContent - The raw unified diff content (string). * @param targetLineNumber - The line number (in the "new" file) to center the snippet around. * @param contextLines - The number of lines to include before and after the target line. * @returns The extracted code snippet as a string, or an empty string if extraction fails. */ export declare function extractDiffSnippet(diffContent: string, targetLineNumber: number, contextLines?: number): string;