Skip to content

Commit 8eb63ed

Browse files
committed
docs(bitbucket): add workspace and repo listing documentation
Document workspace list and repo list CLI commands with --all and --format options, MCP tool definitions, and workspace read permission.
1 parent 85bd36f commit 8eb63ed

2 files changed

Lines changed: 88 additions & 0 deletions

File tree

.claude/context/bitbucket.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,53 @@ mcptools atlassian bitbucket pr create --repo "myworkspace/myrepo" "Fix login bu
8383
- `--close-source-branch`: Close source branch after merge
8484
- `--json`: Output as JSON
8585

86+
### List Workspaces
87+
88+
```bash
89+
# List all accessible workspaces
90+
mcptools atlassian bitbucket workspace list
91+
92+
# Fetch all workspaces (auto-paginate)
93+
mcptools atlassian bitbucket workspace list --all
94+
95+
# Limit results per page
96+
mcptools atlassian bitbucket workspace list --limit 20
97+
98+
# Pagination
99+
mcptools atlassian bitbucket workspace list --next-page "https://api.bitbucket.org/2.0/..."
100+
101+
# Output as JSON
102+
mcptools atlassian bitbucket workspace list --format json
103+
104+
# Output as CSV
105+
mcptools atlassian bitbucket workspace list --format csv
106+
```
107+
108+
### List Repositories
109+
110+
```bash
111+
# List repos in a workspace
112+
mcptools atlassian bitbucket repo list --workspace "myworkspace"
113+
114+
# Short flag
115+
mcptools atlassian bitbucket repo list -w "myworkspace"
116+
117+
# Fetch all repos (auto-paginate)
118+
mcptools atlassian bitbucket repo list -w "myworkspace" --all
119+
120+
# Limit results per page
121+
mcptools atlassian bitbucket repo list -w "myworkspace" --limit 20
122+
123+
# Pagination
124+
mcptools atlassian bitbucket repo list -w "myworkspace" --next-page "https://api.bitbucket.org/2.0/..."
125+
126+
# Output as JSON
127+
mcptools atlassian bitbucket repo list -w "myworkspace" --format json
128+
129+
# Output as CSV
130+
mcptools atlassian bitbucket repo list -w "myworkspace" --format csv
131+
```
132+
86133
## MCP Tools
87134

88135
### bitbucket_pr_list
@@ -159,6 +206,44 @@ mcptools atlassian bitbucket pr create --repo "myworkspace/myrepo" "Fix login bu
159206

160207
**Note:** Unlike the CLI, MCP requires `sourceBranch` explicitly (no git detection).
161208

209+
### bitbucket_workspace_list
210+
211+
```json
212+
{
213+
"method": "tools/call",
214+
"params": {
215+
"name": "bitbucket_workspace_list",
216+
"arguments": {
217+
"limit": 10
218+
}
219+
}
220+
}
221+
```
222+
223+
**Arguments:**
224+
- `limit` (optional): Max results per page (default: 10)
225+
- `nextPage` (optional): Pagination URL for next page
226+
227+
### bitbucket_repo_list
228+
229+
```json
230+
{
231+
"method": "tools/call",
232+
"params": {
233+
"name": "bitbucket_repo_list",
234+
"arguments": {
235+
"workspace": "myworkspace",
236+
"limit": 10
237+
}
238+
}
239+
}
240+
```
241+
242+
**Arguments:**
243+
- `workspace` (required): Workspace slug
244+
- `limit` (optional): Max results per page (default: 10)
245+
- `nextPage` (optional): Pagination URL for next page
246+
162247
## Environment Variables
163248

164249
| Variable | Description |
@@ -172,3 +257,4 @@ mcptools atlassian bitbucket pr create --repo "myworkspace/myrepo" "Fix login bu
172257
Required permissions:
173258
- Repositories: Read
174259
- Pull requests: Read, Write
260+
- Workspaces: Read (for workspace listing)

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ mcptools atlassian confluence search "text ~ 'deployment'"
103103
mcptools atlassian bitbucket pr list --repo "workspace/repo"
104104
mcptools atlassian bitbucket pr read --repo "workspace/repo" 123
105105
mcptools atlassian bitbucket pr create --repo "workspace/repo" "Fix login bug" --source feature-branch
106+
mcptools atlassian bitbucket workspace list
107+
mcptools atlassian bitbucket repo list -w "my-workspace" --all
106108
```
107109

108110
### HackerNews

0 commit comments

Comments
 (0)