KosmoKrator

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_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Bitbucket MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Bitbucket.

Bitbucket CLI Matrix

Use these pages for direct Bitbucket CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.