Usage Examples
These examples show how to interact with the Bitbucket MCP Server using natural language in VS Code Copilot, Cursor, or Claude Code.
Repository Discovery
Section titled “Repository Discovery”List all my accessible workspacesBrowse the root directory of myworkspace/myrepoBrowse the tests directory in feature/deployment-fixes branchSearch for repositories containing 'keycloak' in myworkspaceFile Operations
Section titled “File Operations”Read lines 100–200 of src/app.py from myworkspace/myrepoGet the first 50 lines of README.mdShow me the package.json file from develop branchGet the commit history for src/components/Header.tsxCode Search
Section titled “Code Search”Search for 'authentication' code in myworkspace/myrepoFind all functions containing 'validate' in myworkspace/myrepoSearch for TypeScript interfaces in myworkspace/myrepoLook for 'TODO' comments in myworkspace/myrepoPull Requests & Comments
Section titled “Pull Requests & Comments”Show open pull requests for myworkspace/myrepoGet details for PR #123 in myworkspace/myrepoList all comments on PR #123Get comment #12345678 from PR #123 in myworkspace/myrepoGet the comment thread for comment #12345678 on PR #123Show me the diff for PR #123Get build statuses for PR #123Branches & Commits
Section titled “Branches & Commits”List all branches in myworkspace/myrepoGet details for the develop branchShow recent commits on main branch of myworkspace/myrepoGet commit details for abc123deFind the merge base between develop and mainShow the diff between commits abc123 and def456Tags & Releases
Section titled “Tags & Releases”List all tags in myworkspace/myrepoGet details for tag v1.0.0CI/CD Pipelines
Section titled “CI/CD Pipelines”List recent pipeline runs for myworkspace/myrepoShow the steps for the latest pipeline runGet the build log for the failing stepWho am I logged in as?Get profile for user johndoeTips for Better Results
Section titled “Tips for Better Results”- Be specific about workspace and repo slug:
myworkspace/myrepo - For large responses, ask for TOON format: “…in toon format”
- Use line ranges for large files: “lines 200–300 of src/server.ts”
- Specify branch explicitly when not working on the default branch: “from the feature/new-auth branch”