productivity
Bitbucket MCP, CLI, and Lua Integration for AI Agents
Bitbucket integration docs for AI agents: MCP gateway setup, Bitbucket CLI commands, Lua API reference, credentials, and function schemas.Bitbucket for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
bitbucket.bitbucket_list_repos | Read read | 4 | List repositories in a Bitbucket workspace. Supports sorting and pagination. |
bitbucket.bitbucket_get_repo | Read read | 2 | Get details for a specific Bitbucket repository by workspace and repo slug. |
bitbucket.bitbucket_create_repo | Write write | 5 | Create a new repository in a Bitbucket workspace. Optionally set description, visibility, and language. |
bitbucket.bitbucket_list_issues | Read read | 6 | List issues in a Bitbucket repository. Supports filtering by state, kind, and priority. |
bitbucket.bitbucket_get_issue | Read read | 3 | Get details for a specific issue in a Bitbucket repository. |
bitbucket.bitbucket_create_issue | Write write | 7 | Create a new issue in a Bitbucket repository. Requires a title; optionally set content, kind, priority, and assignee. |
bitbucket.bitbucket_update_issue | Write write | 8 | Update an existing issue in a Bitbucket repository. Can change title, content, state, priority, and assignee. |
bitbucket.bitbucket_list_pull_requests | Read read | 4 | List pull requests in a Bitbucket repository. Supports filtering by state and pagination. |
bitbucket.bitbucket_get_pull_request | Read read | 3 | Get details for a specific pull request in a Bitbucket repository. |
bitbucket.bitbucket_create_pull_request | Write write | 7 | Create a new pull request in a Bitbucket repository. Requires a title, source branch, and destination branch. |
bitbucket.bitbucket_merge_pull_request | Write write | 4 | Merge a Bitbucket pull request. Optionally provide a merge commit message. |
bitbucket.bitbucket_list_branches | Read read | 3 | List branches in a Bitbucket repository. Supports pagination. |
bitbucket.bitbucket_create_branch | Write write | 4 | Create a new branch in a Bitbucket repository. Requires a branch name and the target commit hash. |
bitbucket.bitbucket_list_commits | Read read | 5 | List commits in a Bitbucket repository. Supports filtering by revision and path. |
bitbucket.bitbucket_get_file | Read read | 4 | Get the raw content of a file from a Bitbucket repository at a specific revision. |