-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Integration - Bitbucket MCP
-
None
-
1
-
Severity 3 - Minor
-
14
Issue Summary
The getBitbucketRepoFileContent operation of the Atlassian Rovo MCP Server returns a paginated directory listing (10 entries per page, with a next URL containing an opaque ?page=<token>), but the operation exposes no input for retrieving subsequent pages. Directories containing more than 10 entries therefore cannot be fully enumerated through the MCP server, so repository discovery by AI agents and other MCP clients is incomplete. The behavior was reported on both MCP v1 and v2. The reporter states that on v1, appending ?page=<token> to path previously returned the next page and no longer does. Reads of an exact file path are not affected.
Steps to Reproduce
- Connect an MCP client (for example Postman) to the Atlassian Rovo MCP Server (v2) with access to a Bitbucket Cloud repository that has a directory containing more than 10 entries.
- Discover the getBitbucketRepoFileContent operation and note that the exposed inputs are workspaceId, repoId, referenceOrSha, path and format.
- Invoke executeRead with the following request:
{ "name": "getBitbucketRepoFileContent", "inputs": { "workspaceId": "<workspace>", "repoId": "<repository>", "referenceOrSha": "<commit-sha>", "path": "<directory-containing-more-than-10-entries>" }, "responseFields": ["values.path", "next", "page", "pagelen"] } - Note that the response contains 10 entries, pagelen: 10 and a next URL containing ?page=<token>.
- Attempt to retrieve the second page by (a) adding page, pagelen or next to inputs, (b) appending ?page=<token> to path, (c) passing the next URL, or its repository-relative path and query string, as path, and (d) URL-encoding or otherwise varying the path.
Expected Results
A documented way to follow the returned continuation, either through an explicit continuation input (for example page) or through automatic pagination, so that all entries of a directory can be retrieved.
Actual Results
- Supplying page, pagelen or next inside inputs returns the same first page of 10 entries.
- Supplying the continuation URL, or its repository-relative path and query string, as path returns a 404.
- Encoding and path-segment variations also fail to advance pagination.
Workaround
Call the Bitbucket Cloud REST API directly, using credentials that can read the repository. The source listing endpoint returns a next URL on every page except the last, so the full directory is retrieved by requesting it and following next until it is no longer returned:
GET https://api.bitbucket.org/2.0/repositories/<workspace>/<repository>/src/<commit-sha>/<directory>/