Atlassian Bitbucket MCP Server

by aashari
Verified

get-repository

Retrieve detailed metadata for a specific Bitbucket repository, including branches, settings, permissions, and clone links. Use to gather comprehensive repository information for operations requiring context, such as pull requests or branch management.

Instructions

Get detailed information about a specific Bitbucket repository.

PURPOSE: Retrieves comprehensive repository metadata including branches, settings, permissions, and more.

WHEN TO USE:

  • When you need detailed information about a specific repository
  • When you need repository URLs, clone links, or other reference information
  • When you need to check repository settings or permissions
  • After using list-repositories to identify the relevant repository
  • Before performing operations that require repository context (PRs, branches)

WHEN NOT TO USE:

  • When you don't know which repository to look for (use list-repositories first)
  • When you just need basic repository information
  • When you're looking for pull request details (use list-pullrequests instead)
  • When you need content from multiple repositories (use list-repositories instead)

RETURNS: Detailed repository information including slug, name, description, URLs, branch information, and settings.

EXAMPLES:

  • Get repository: {workspace: "myteam", repoSlug: "project-api"}

ERRORS:

  • Repository not found: Verify workspace and repository slugs
  • Permission errors: Ensure you have access to the requested repository
  • Rate limiting: Cache repository information when possible

Input Schema

NameRequiredDescriptionDefault
includeBranchesNoWhen true, includes information about repository branches in the response. If omitted, defaults to false.
includeCommitsNoWhen true, includes recent commits information in the response. If omitted, defaults to false.
includePullRequestsNoWhen true, includes open pull requests information in the response. If omitted, defaults to false.
repoSlugYesRepository slug to retrieve. This must be a valid repository in the specified workspace. Example: "project-api"
workspaceYesWorkspace slug containing the repository. Must be a valid workspace slug from your Bitbucket account. Example: "myteam"

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "includeBranches": { "description": "When true, includes information about repository branches in the response. If omitted, defaults to false.", "type": "boolean" }, "includeCommits": { "description": "When true, includes recent commits information in the response. If omitted, defaults to false.", "type": "boolean" }, "includePullRequests": { "description": "When true, includes open pull requests information in the response. If omitted, defaults to false.", "type": "boolean" }, "repoSlug": { "description": "Repository slug to retrieve. This must be a valid repository in the specified workspace. Example: \"project-api\"", "minLength": 1, "type": "string" }, "workspace": { "description": "Workspace slug containing the repository. Must be a valid workspace slug from your Bitbucket account. Example: \"myteam\"", "minLength": 1, "type": "string" } }, "required": [ "workspace", "repoSlug" ], "type": "object" }

You must be authenticated.

Other Tools from Atlassian Bitbucket MCP Server

Related Tools

ID: d3mfwp6ce5