@atercates/bitbucket-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +347 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.js +35 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +11 -0
- package/dist/config.js +54 -0
- package/dist/config.js.map +1 -0
- package/dist/handlers/branching-model.d.ts +2 -0
- package/dist/handlers/branching-model.js +324 -0
- package/dist/handlers/branching-model.js.map +1 -0
- package/dist/handlers/commits.d.ts +2 -0
- package/dist/handlers/commits.js +78 -0
- package/dist/handlers/commits.js.map +1 -0
- package/dist/handlers/index.d.ts +17 -0
- package/dist/handlers/index.js +29 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/handlers/pipelines.d.ts +2 -0
- package/dist/handlers/pipelines.js +538 -0
- package/dist/handlers/pipelines.js.map +1 -0
- package/dist/handlers/pr-comments.d.ts +2 -0
- package/dist/handlers/pr-comments.js +509 -0
- package/dist/handlers/pr-comments.js.map +1 -0
- package/dist/handlers/pr-content.d.ts +2 -0
- package/dist/handlers/pr-content.js +332 -0
- package/dist/handlers/pr-content.js.map +1 -0
- package/dist/handlers/pr-tasks.d.ts +2 -0
- package/dist/handlers/pr-tasks.js +275 -0
- package/dist/handlers/pr-tasks.js.map +1 -0
- package/dist/handlers/pull-requests.d.ts +2 -0
- package/dist/handlers/pull-requests.js +902 -0
- package/dist/handlers/pull-requests.js.map +1 -0
- package/dist/handlers/refs.d.ts +2 -0
- package/dist/handlers/refs.js +225 -0
- package/dist/handlers/refs.js.map +1 -0
- package/dist/handlers/repositories.d.ts +2 -0
- package/dist/handlers/repositories.js +131 -0
- package/dist/handlers/repositories.js.map +1 -0
- package/dist/handlers/source.d.ts +2 -0
- package/dist/handlers/source.js +35 -0
- package/dist/handlers/source.js.map +1 -0
- package/dist/handlers/types.d.ts +42 -0
- package/dist/handlers/types.js +2 -0
- package/dist/handlers/types.js.map +1 -0
- package/dist/handlers/users.d.ts +2 -0
- package/dist/handlers/users.js +38 -0
- package/dist/handlers/users.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +3 -0
- package/dist/logger.js +60 -0
- package/dist/logger.js.map +1 -0
- package/dist/pagination.d.ts +32 -0
- package/dist/pagination.js +116 -0
- package/dist/pagination.js.map +1 -0
- package/dist/schemas.d.ts +21 -0
- package/dist/schemas.js +23 -0
- package/dist/schemas.js.map +1 -0
- package/dist/server.d.ts +33 -0
- package/dist/server.js +124 -0
- package/dist/server.js.map +1 -0
- package/dist/types.d.ts +296 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +18 -0
- package/dist/utils.js +17 -0
- package/dist/utils.js.map +1 -0
- package/docs/README.md +216 -0
- package/docs/TOOLS.md +464 -0
- package/docs/architecture/ARCHITECTURE.md +302 -0
- package/docs/guides/ENVIRONMENT_VARIABLES.md +306 -0
- package/docs/guides/GETTING_STARTED.md +267 -0
- package/docs/guides/GITHUB_ACTIONS_SETUP.md +148 -0
- package/docs/guides/NPM_DEPLOYMENT.md +266 -0
- package/docs/guides/PROJECT_STRUCTURE.md +317 -0
- package/package.json +84 -0
package/docs/TOOLS.md
ADDED
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
# Bitbucket MCP Tools Reference
|
|
2
|
+
|
|
3
|
+
Complete list of all available tools provided by the Bitbucket MCP server, organized by category.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Repositories](#repositories)
|
|
8
|
+
- [Pull Requests](#pull-requests)
|
|
9
|
+
- [PR Comments](#pr-comments)
|
|
10
|
+
- [PR Tasks](#pr-tasks)
|
|
11
|
+
- [PR Content](#pr-content)
|
|
12
|
+
- [Branches & Tags (Refs)](#branches--tags-refs)
|
|
13
|
+
- [Commits](#commits)
|
|
14
|
+
- [Pipelines](#pipelines)
|
|
15
|
+
- [Source Code](#source-code)
|
|
16
|
+
- [Users & Workspaces](#users--workspaces)
|
|
17
|
+
- [Branching Model](#branching-model)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Repositories
|
|
22
|
+
|
|
23
|
+
Manage repositories in Bitbucket workspaces.
|
|
24
|
+
|
|
25
|
+
### listRepositories
|
|
26
|
+
List all repositories in a workspace.
|
|
27
|
+
|
|
28
|
+
**Parameters:**
|
|
29
|
+
- `workspace` (string, required): Bitbucket workspace name
|
|
30
|
+
- `pagelen` (number): Page length (1-100, default 10)
|
|
31
|
+
- `page` (number): Page number
|
|
32
|
+
- `all` (boolean): Fetch all results (default false)
|
|
33
|
+
|
|
34
|
+
**Example:**
|
|
35
|
+
```
|
|
36
|
+
workspace: "my-workspace"
|
|
37
|
+
pagelen: 20
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### getRepository
|
|
41
|
+
Get details for a specific repository.
|
|
42
|
+
|
|
43
|
+
**Parameters:**
|
|
44
|
+
- `workspace` (string, required): Bitbucket workspace name
|
|
45
|
+
- `repo_slug` (string, required): Repository slug
|
|
46
|
+
|
|
47
|
+
### createRepository
|
|
48
|
+
Create a new repository.
|
|
49
|
+
|
|
50
|
+
**Parameters:**
|
|
51
|
+
- `workspace` (string, required): Bitbucket workspace name
|
|
52
|
+
- `name` (string, required): Repository name
|
|
53
|
+
- `description` (string): Repository description
|
|
54
|
+
- `is_private` (boolean): Private repository (default true)
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Pull Requests
|
|
59
|
+
|
|
60
|
+
Work with pull requests in repositories.
|
|
61
|
+
|
|
62
|
+
### getPullRequests
|
|
63
|
+
List pull requests for a repository.
|
|
64
|
+
|
|
65
|
+
**Parameters:**
|
|
66
|
+
- `workspace` (string, required): Bitbucket workspace name
|
|
67
|
+
- `repo_slug` (string, required): Repository slug
|
|
68
|
+
- `state` (string): Filter by state (OPEN, MERGED, DECLINED, SUPERSEDED)
|
|
69
|
+
- `pagelen` (number): Page length (1-100, default 10)
|
|
70
|
+
|
|
71
|
+
### getPullRequest
|
|
72
|
+
Get details for a specific pull request.
|
|
73
|
+
|
|
74
|
+
**Parameters:**
|
|
75
|
+
- `workspace` (string, required): Bitbucket workspace name
|
|
76
|
+
- `repo_slug` (string, required): Repository slug
|
|
77
|
+
- `pull_request_id` (string, required): Pull request ID
|
|
78
|
+
|
|
79
|
+
### createPullRequest
|
|
80
|
+
Create a new pull request.
|
|
81
|
+
|
|
82
|
+
**Parameters:**
|
|
83
|
+
- `workspace` (string, required): Bitbucket workspace name
|
|
84
|
+
- `repo_slug` (string, required): Repository slug
|
|
85
|
+
- `title` (string, required): PR title
|
|
86
|
+
- `description` (string, required): PR description
|
|
87
|
+
- `sourceBranch` (string, required): Source branch name
|
|
88
|
+
- `targetBranch` (string, required): Target branch name
|
|
89
|
+
- `reviewers` (array): List of reviewer UUIDs
|
|
90
|
+
- `draft` (boolean): Create as draft
|
|
91
|
+
- `close_source_branch` (boolean): Close source branch after merge (default true)
|
|
92
|
+
|
|
93
|
+
### updatePullRequest
|
|
94
|
+
Update an existing pull request.
|
|
95
|
+
|
|
96
|
+
**Parameters:**
|
|
97
|
+
- `workspace` (string, required)
|
|
98
|
+
- `repo_slug` (string, required)
|
|
99
|
+
- `pull_request_id` (string, required)
|
|
100
|
+
- `title` (string): New title
|
|
101
|
+
- `description` (string): New description
|
|
102
|
+
- `reviewers` (array): Updated reviewer list
|
|
103
|
+
- `close_source_branch` (boolean): Close branch on merge
|
|
104
|
+
|
|
105
|
+
### approvePullRequest
|
|
106
|
+
Approve a pull request.
|
|
107
|
+
|
|
108
|
+
**Parameters:**
|
|
109
|
+
- `workspace` (string, required)
|
|
110
|
+
- `repo_slug` (string, required)
|
|
111
|
+
- `pull_request_id` (string, required)
|
|
112
|
+
|
|
113
|
+
### declinePullRequest
|
|
114
|
+
Decline a pull request.
|
|
115
|
+
|
|
116
|
+
**Parameters:**
|
|
117
|
+
- `workspace` (string, required)
|
|
118
|
+
- `repo_slug` (string, required)
|
|
119
|
+
- `pull_request_id` (string, required)
|
|
120
|
+
|
|
121
|
+
### mergePullRequest
|
|
122
|
+
Merge a pull request.
|
|
123
|
+
|
|
124
|
+
**Parameters:**
|
|
125
|
+
- `workspace` (string, required)
|
|
126
|
+
- `repo_slug` (string, required)
|
|
127
|
+
- `pull_request_id` (string, required)
|
|
128
|
+
- `message` (string): Merge commit message
|
|
129
|
+
- `strategy` (string): Merge strategy (merge_commit, squash, fast_forward)
|
|
130
|
+
- `close_source_branch` (boolean): Close source branch after merge
|
|
131
|
+
|
|
132
|
+
### requestChanges
|
|
133
|
+
Request changes on a pull request.
|
|
134
|
+
|
|
135
|
+
**Parameters:**
|
|
136
|
+
- `workspace` (string, required)
|
|
137
|
+
- `repo_slug` (string, required)
|
|
138
|
+
- `pull_request_id` (string, required)
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## PR Comments
|
|
143
|
+
|
|
144
|
+
Manage comments on pull requests.
|
|
145
|
+
|
|
146
|
+
### getPullRequestComments
|
|
147
|
+
Get comments on a pull request.
|
|
148
|
+
|
|
149
|
+
**Parameters:**
|
|
150
|
+
- `workspace` (string, required)
|
|
151
|
+
- `repo_slug` (string, required)
|
|
152
|
+
- `pull_request_id` (string, required)
|
|
153
|
+
- `pagelen` (number): Page length
|
|
154
|
+
- `page` (number): Page number
|
|
155
|
+
|
|
156
|
+
### createPullRequestComment
|
|
157
|
+
Create a comment on a pull request.
|
|
158
|
+
|
|
159
|
+
**Parameters:**
|
|
160
|
+
- `workspace` (string, required)
|
|
161
|
+
- `repo_slug` (string, required)
|
|
162
|
+
- `pull_request_id` (string, required)
|
|
163
|
+
- `content` (string, required): Comment text
|
|
164
|
+
- `path` (string): File path for inline comment
|
|
165
|
+
- `to` (number): Line number in new version (for inline comments)
|
|
166
|
+
- `from` (number): Line number in old version (for inline comments)
|
|
167
|
+
|
|
168
|
+
### deletePullRequestComment
|
|
169
|
+
Delete a PR comment (DANGEROUS).
|
|
170
|
+
|
|
171
|
+
**Parameters:**
|
|
172
|
+
- `workspace` (string, required)
|
|
173
|
+
- `repo_slug` (string, required)
|
|
174
|
+
- `pull_request_id` (string, required)
|
|
175
|
+
- `comment_id` (string, required)
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## PR Tasks
|
|
180
|
+
|
|
181
|
+
Manage PR tasks (TODO items).
|
|
182
|
+
|
|
183
|
+
### getPullRequestTasks
|
|
184
|
+
Get tasks on a pull request.
|
|
185
|
+
|
|
186
|
+
**Parameters:**
|
|
187
|
+
- `workspace` (string, required)
|
|
188
|
+
- `repo_slug` (string, required)
|
|
189
|
+
- `pull_request_id` (string, required)
|
|
190
|
+
|
|
191
|
+
### createPullRequestTask
|
|
192
|
+
Create a task on a pull request.
|
|
193
|
+
|
|
194
|
+
**Parameters:**
|
|
195
|
+
- `workspace` (string, required)
|
|
196
|
+
- `repo_slug` (string, required)
|
|
197
|
+
- `pull_request_id` (string, required)
|
|
198
|
+
- `content` (string, required): Task description
|
|
199
|
+
|
|
200
|
+
### updatePullRequestTask
|
|
201
|
+
Update a PR task.
|
|
202
|
+
|
|
203
|
+
**Parameters:**
|
|
204
|
+
- `workspace` (string, required)
|
|
205
|
+
- `repo_slug` (string, required)
|
|
206
|
+
- `pull_request_id` (string, required)
|
|
207
|
+
- `task_id` (string, required)
|
|
208
|
+
- `state` (string): Task state (RESOLVED or UNRESOLVED)
|
|
209
|
+
|
|
210
|
+
### deletePullRequestTask
|
|
211
|
+
Delete a PR task (DANGEROUS).
|
|
212
|
+
|
|
213
|
+
**Parameters:**
|
|
214
|
+
- `workspace` (string, required)
|
|
215
|
+
- `repo_slug` (string, required)
|
|
216
|
+
- `pull_request_id` (string, required)
|
|
217
|
+
- `task_id` (string, required)
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## PR Content
|
|
222
|
+
|
|
223
|
+
Get detailed content from pull requests.
|
|
224
|
+
|
|
225
|
+
### getPullRequestDiff
|
|
226
|
+
Get the diff for a pull request.
|
|
227
|
+
|
|
228
|
+
**Parameters:**
|
|
229
|
+
- `workspace` (string, required)
|
|
230
|
+
- `repo_slug` (string, required)
|
|
231
|
+
- `pull_request_id` (string, required)
|
|
232
|
+
|
|
233
|
+
**Returns:** Unified diff format
|
|
234
|
+
|
|
235
|
+
### getPullRequestCommits
|
|
236
|
+
Get all commits in a pull request.
|
|
237
|
+
|
|
238
|
+
**Parameters:**
|
|
239
|
+
- `workspace` (string, required)
|
|
240
|
+
- `repo_slug` (string, required)
|
|
241
|
+
- `pull_request_id` (string, required)
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## Branches & Tags (Refs)
|
|
246
|
+
|
|
247
|
+
Manage repository branches and tags.
|
|
248
|
+
|
|
249
|
+
### listBranches
|
|
250
|
+
List all branches in a repository.
|
|
251
|
+
|
|
252
|
+
**Parameters:**
|
|
253
|
+
- `workspace` (string, required)
|
|
254
|
+
- `repo_slug` (string, required)
|
|
255
|
+
- `q` (string): Query filter
|
|
256
|
+
- `pagelen` (number): Page length
|
|
257
|
+
- `page` (number): Page number
|
|
258
|
+
- `all` (boolean): Fetch all
|
|
259
|
+
|
|
260
|
+
### createBranch
|
|
261
|
+
Create a new branch.
|
|
262
|
+
|
|
263
|
+
**Parameters:**
|
|
264
|
+
- `workspace` (string, required)
|
|
265
|
+
- `repo_slug` (string, required)
|
|
266
|
+
- `name` (string, required): Branch name
|
|
267
|
+
- `target` (object, required): `{ hash: "commit-hash" }`
|
|
268
|
+
|
|
269
|
+
### getBranch
|
|
270
|
+
Get a specific branch.
|
|
271
|
+
|
|
272
|
+
**Parameters:**
|
|
273
|
+
- `workspace` (string, required)
|
|
274
|
+
- `repo_slug` (string, required)
|
|
275
|
+
- `name` (string, required): Branch name
|
|
276
|
+
|
|
277
|
+
### deleteBranch
|
|
278
|
+
Delete a branch (DANGEROUS).
|
|
279
|
+
|
|
280
|
+
**Parameters:**
|
|
281
|
+
- `workspace` (string, required)
|
|
282
|
+
- `repo_slug` (string, required)
|
|
283
|
+
- `name` (string, required): Branch name
|
|
284
|
+
|
|
285
|
+
### listTags
|
|
286
|
+
List all tags in a repository.
|
|
287
|
+
|
|
288
|
+
**Parameters:**
|
|
289
|
+
- `workspace` (string, required)
|
|
290
|
+
- `repo_slug` (string, required)
|
|
291
|
+
- `q` (string): Query filter
|
|
292
|
+
- `pagelen` (number): Page length
|
|
293
|
+
- `page` (number): Page number
|
|
294
|
+
|
|
295
|
+
### createTag
|
|
296
|
+
Create a new tag.
|
|
297
|
+
|
|
298
|
+
**Parameters:**
|
|
299
|
+
- `workspace` (string, required)
|
|
300
|
+
- `repo_slug` (string, required)
|
|
301
|
+
- `name` (string, required): Tag name
|
|
302
|
+
- `target` (object, required): `{ hash: "commit-hash" }`
|
|
303
|
+
- `message` (string): Tag message
|
|
304
|
+
|
|
305
|
+
### getTag
|
|
306
|
+
Get a specific tag.
|
|
307
|
+
|
|
308
|
+
**Parameters:**
|
|
309
|
+
- `workspace` (string, required)
|
|
310
|
+
- `repo_slug` (string, required)
|
|
311
|
+
- `name` (string, required): Tag name
|
|
312
|
+
|
|
313
|
+
### deleteTag
|
|
314
|
+
Delete a tag (DANGEROUS).
|
|
315
|
+
|
|
316
|
+
**Parameters:**
|
|
317
|
+
- `workspace` (string, required)
|
|
318
|
+
- `repo_slug` (string, required)
|
|
319
|
+
- `name` (string, required): Tag name
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
## Commits
|
|
324
|
+
|
|
325
|
+
Work with repository commits.
|
|
326
|
+
|
|
327
|
+
### listCommits
|
|
328
|
+
List commits in a repository or branch.
|
|
329
|
+
|
|
330
|
+
**Parameters:**
|
|
331
|
+
- `workspace` (string, required)
|
|
332
|
+
- `repo_slug` (string, required)
|
|
333
|
+
- `branch` (string): Branch name
|
|
334
|
+
- `include` (string): Include refs
|
|
335
|
+
- `exclude` (string): Exclude refs
|
|
336
|
+
- `pagelen` (number): Page length
|
|
337
|
+
- `page` (number): Page number
|
|
338
|
+
- `all` (boolean): Fetch all
|
|
339
|
+
|
|
340
|
+
### getCommit
|
|
341
|
+
Get details for a specific commit.
|
|
342
|
+
|
|
343
|
+
**Parameters:**
|
|
344
|
+
- `workspace` (string, required)
|
|
345
|
+
- `repo_slug` (string, required)
|
|
346
|
+
- `sha` (string, required): Commit SHA
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## Pipelines
|
|
351
|
+
|
|
352
|
+
Manage Bitbucket Pipelines.
|
|
353
|
+
|
|
354
|
+
### listPipelineRuns
|
|
355
|
+
List pipeline runs for a repository.
|
|
356
|
+
|
|
357
|
+
**Parameters:**
|
|
358
|
+
- `workspace` (string, required)
|
|
359
|
+
- `repo_slug` (string, required)
|
|
360
|
+
- `status` (string): Filter by status (PENDING, IN_PROGRESS, SUCCESSFUL, FAILED, ERROR, STOPPED)
|
|
361
|
+
- `target_branch` (string): Filter by target branch
|
|
362
|
+
- `trigger_type` (string): Filter by trigger type (manual, push, pullrequest, schedule)
|
|
363
|
+
- `pagelen` (number): Page length
|
|
364
|
+
- `page` (number): Page number
|
|
365
|
+
|
|
366
|
+
### getPipelineRun
|
|
367
|
+
Get details for a specific pipeline run.
|
|
368
|
+
|
|
369
|
+
**Parameters:**
|
|
370
|
+
- `workspace` (string, required)
|
|
371
|
+
- `repo_slug` (string, required)
|
|
372
|
+
- `pipeline_uuid` (string, required): Pipeline UUID
|
|
373
|
+
|
|
374
|
+
### runPipeline
|
|
375
|
+
Trigger a new pipeline run.
|
|
376
|
+
|
|
377
|
+
**Parameters:**
|
|
378
|
+
- `workspace` (string, required)
|
|
379
|
+
- `repo_slug` (string, required)
|
|
380
|
+
- `target` (object, required): Target configuration
|
|
381
|
+
- `ref_type` (string, required): "branch", "tag", "bookmark", "named_branch"
|
|
382
|
+
- `ref_name` (string, required): Reference name
|
|
383
|
+
- `commit_hash` (string): Specific commit hash
|
|
384
|
+
- `selector_type` (string): "default", "custom", "branches", "tags", "bookmarks"
|
|
385
|
+
- `selector_pattern` (string): Pipeline selector pattern
|
|
386
|
+
- `variables` (array): Pipeline variables
|
|
387
|
+
|
|
388
|
+
### stopPipeline
|
|
389
|
+
Stop a running pipeline.
|
|
390
|
+
|
|
391
|
+
**Parameters:**
|
|
392
|
+
- `workspace` (string, required)
|
|
393
|
+
- `repo_slug` (string, required)
|
|
394
|
+
- `pipeline_uuid` (string, required): Pipeline UUID
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## Source Code
|
|
399
|
+
|
|
400
|
+
Access repository source code.
|
|
401
|
+
|
|
402
|
+
### getFileContent
|
|
403
|
+
Get the content of a file from a repository.
|
|
404
|
+
|
|
405
|
+
**Parameters:**
|
|
406
|
+
- `workspace` (string, required)
|
|
407
|
+
- `repo_slug` (string, required)
|
|
408
|
+
- `path` (string, required): File path
|
|
409
|
+
- `commit` (string): Commit SHA, branch, or tag (default: main branch)
|
|
410
|
+
|
|
411
|
+
**Returns:** File content as text
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## Users & Workspaces
|
|
416
|
+
|
|
417
|
+
Manage users and workspace information.
|
|
418
|
+
|
|
419
|
+
### getCurrentUser
|
|
420
|
+
Get details of the authenticated user.
|
|
421
|
+
|
|
422
|
+
**Returns:** User information including email, username, etc.
|
|
423
|
+
|
|
424
|
+
### listWorkspaces
|
|
425
|
+
List all workspaces for the authenticated user.
|
|
426
|
+
|
|
427
|
+
**Returns:** List of accessible workspaces
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
## Branching Model
|
|
432
|
+
|
|
433
|
+
Get repository branching model configuration.
|
|
434
|
+
|
|
435
|
+
### getRepositoryBranchingModel
|
|
436
|
+
Get the branching model for a repository.
|
|
437
|
+
|
|
438
|
+
**Parameters:**
|
|
439
|
+
- `workspace` (string, required)
|
|
440
|
+
- `repo_slug` (string, required)
|
|
441
|
+
|
|
442
|
+
**Returns:** Branching model configuration (branch types for development, production, etc.)
|
|
443
|
+
|
|
444
|
+
### getProjectBranchingModel
|
|
445
|
+
Get the branching model for a project.
|
|
446
|
+
|
|
447
|
+
**Parameters:**
|
|
448
|
+
- `workspace` (string, required)
|
|
449
|
+
- `project_key` (string, required): Project key
|
|
450
|
+
|
|
451
|
+
**Returns:** Project branching model configuration
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
## Dangerous Tools
|
|
456
|
+
|
|
457
|
+
The following tools are marked as dangerous and require `BITBUCKET_ALLOW_DANGEROUS=true` to use:
|
|
458
|
+
|
|
459
|
+
- `deletePullRequestComment`
|
|
460
|
+
- `deletePullRequestTask`
|
|
461
|
+
- `deleteBranch`
|
|
462
|
+
- `deleteTag`
|
|
463
|
+
|
|
464
|
+
These operations cannot be undone and should be used with caution.
|