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.
15 functions 9 read 6 write API key auth
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.
Machine-Readable Metadata
- integration_slug
bitbucket- route_slug
bitbucket- package
bitbucket- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Bitbucket CLIHeadless setup and direct function calls. Bitbucket MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Bitbucket MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Bitbucket.
Claude Code Bitbucket MCP setup for Claude Code. Cursor Bitbucket MCP setup for Cursor. Codex Bitbucket MCP setup for Codex. OpenAI Agents Bitbucket MCP setup for OpenAI Agents SDK. Claude Agent SDK Bitbucket MCP setup for Claude Agent SDK. Vercel AI SDK Bitbucket MCP setup for Vercel AI SDK. LangChain Bitbucket MCP setup for LangChain. LangGraph Bitbucket MCP setup for LangGraph. CrewAI Bitbucket MCP setup for CrewAI. MCP clients Bitbucket MCP setup for Generic MCP Clients.
Bitbucket CLI Matrix
Use these pages for direct Bitbucket CLI workflows in scripts, CI, cron, and agent wrappers.
CI Bitbucket CLI for CI. Cron Jobs Bitbucket CLI for cron jobs. Shell Scripts Bitbucket CLI for shell scripts. Headless Automation Bitbucket CLI for headless automation. Coding Agents Bitbucket CLI for coding agents.
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. |