Skip to main content
Glama

Atlassian Bitbucket MCP Server

by aashari

bb_get_file

Retrieve file content from a Bitbucket repository by specifying the workspace, repository, file path, and optional revision. Returns raw text for direct access and integration needs.

Instructions

Retrieves the content of a file from a Bitbucket repository identified by workspaceSlug and repoSlug. Specify the file to retrieve using the filePath parameter. Optionally, you can specify a revision (branch name, tag, or commit hash) to retrieve the file from - if omitted, the repository's default branch is used. Returns the raw content of the file as text. Requires Bitbucket credentials.

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the file within the repository. Example: "README.md" or "src/main.js"
repoSlugYesRepository slug containing the file. Example: "project-api"
revisionNoOptional branch name, tag, or commit hash to retrieve the file from. If omitted, uses the default branch.
workspaceSlugNoWorkspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam"

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filePath": { "description": "Path to the file within the repository. Example: \"README.md\" or \"src/main.js\"", "minLength": 1, "type": "string" }, "repoSlug": { "description": "Repository slug containing the file. Example: \"project-api\"", "minLength": 1, "type": "string" }, "revision": { "description": "Optional branch name, tag, or commit hash to retrieve the file from. If omitted, uses the default branch.", "type": "string" }, "workspaceSlug": { "description": "Workspace slug containing the repository. If not provided, the system will use your default workspace. Example: \"myteam\"", "type": "string" } }, "required": [ "repoSlug", "filePath" ], "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/aashari/mcp-server-atlassian-bitbucket'

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