Skip to main content
Glama

Bitbucket MCP Server

by pdogra1299

get_pull_request_diff

Retrieve and filter pull request diffs by specifying context lines, file paths, or inclusion/exclusion patterns to streamline code review and change analysis.

Instructions

Get the diff/changes for a pull request with optional filtering

Input Schema

NameRequiredDescriptionDefault
context_linesNoNumber of context lines around changes (optional, default: 3)
exclude_patternsNoArray of glob patterns to exclude (e.g., ["*.lock", "*.svg"]) (optional)
file_pathNoSpecific file path to get diff for (e.g., "src/index.ts") (optional)
include_patternsNoArray of glob patterns to include (e.g., ["*.res", "src/**/*.js"]) (optional)
pull_request_idYesPull request ID
repositoryYesRepository slug (e.g., "my-repo")
workspaceYesBitbucket workspace/project key (e.g., "PROJ")

Input Schema (JSON Schema)

{ "properties": { "context_lines": { "description": "Number of context lines around changes (optional, default: 3)", "type": "number" }, "exclude_patterns": { "description": "Array of glob patterns to exclude (e.g., [\"*.lock\", \"*.svg\"]) (optional)", "items": { "type": "string" }, "type": "array" }, "file_path": { "description": "Specific file path to get diff for (e.g., \"src/index.ts\") (optional)", "type": "string" }, "include_patterns": { "description": "Array of glob patterns to include (e.g., [\"*.res\", \"src/**/*.js\"]) (optional)", "items": { "type": "string" }, "type": "array" }, "pull_request_id": { "description": "Pull request ID", "type": "number" }, "repository": { "description": "Repository slug (e.g., \"my-repo\")", "type": "string" }, "workspace": { "description": "Bitbucket workspace/project key (e.g., \"PROJ\")", "type": "string" } }, "required": [ "workspace", "repository", "pull_request_id" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdogra1299/bitbucket-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server