Skip to main content
Glama

Bitbucket MCP Server

by pdogra1299

get_file_content

Retrieve content from specific files in Bitbucket repositories, with options for truncation, line selection, and full content extraction. Supports large files and custom branch or line ranges.

Instructions

Get file content from a repository with smart truncation for large files

Input Schema

NameRequiredDescriptionDefault
branchNoBranch name (optional, defaults to default branch)
file_pathYesPath to the file (e.g., "src/index.ts")
full_contentNoForce return full content regardless of size (optional, default: false)
line_countNoNumber of lines to return (optional, default varies by file size)
repositoryYesRepository slug (e.g., "my-repo")
start_lineNoStarting line number (1-based). Use negative for lines from end (optional)
workspaceYesBitbucket workspace/project key (e.g., "PROJ")

Input Schema (JSON Schema)

{ "properties": { "branch": { "description": "Branch name (optional, defaults to default branch)", "type": "string" }, "file_path": { "description": "Path to the file (e.g., \"src/index.ts\")", "type": "string" }, "full_content": { "description": "Force return full content regardless of size (optional, default: false)", "type": "boolean" }, "line_count": { "description": "Number of lines to return (optional, default varies by file size)", "type": "number" }, "repository": { "description": "Repository slug (e.g., \"my-repo\")", "type": "string" }, "start_line": { "description": "Starting line number (1-based). Use negative for lines from end (optional)", "type": "number" }, "workspace": { "description": "Bitbucket workspace/project key (e.g., \"PROJ\")", "type": "string" } }, "required": [ "workspace", "repository", "file_path" ], "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