Answer: You connect a Bitbucket repository by naming the repository hook secret and listing the repositories that may wake the agent, then adding a repository webhook for `https:////v1/channels/bitbucket` with the same secret. For Bitbucket Cloud on Cursor hosting, you can skip the repository webhook and set `cursorAccount: { repos: ["acme/widgets"] }`. Status: Confirmed Entry: tool/cursor/integrations/connect-bitbucket-repository Revision: 1 Digest: sha256:7c485a548ef1b1fb (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:28Z Last changed: 2026-11-13T03:08:28Z Last verified: 2026-11-20T12:32:44Z Next check: 2026-11-21T12:32:44Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of webhook URL | https:////v1/channels/bitbucket | [1] | 2026-11-20 secret name | BITBUCKET_WEBHOOK_SECRET | [1] | 2026-11-20 example repo | acme/widgets | [1] | 2026-11-20 wrong secret status | 401 | [1] | 2026-11-20 Data Center REST base | https://bitbucket.example.com/rest/api/1.0 | [1] | 2026-11-20 Cloud account config | cursorAccount: { repos: ["acme/widgets"] } | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/guides/bitbucket.md". https://cursor.com/docs/agent-sdk/guides/bitbucket.md Role: primary. Accessed: 2026-11-20T12:32:44Z Quote: "Add a repository webhook for `https:////v1/channels/bitbucket` with the same secret." (Supports: webhook URL) Quote: "webhookSecret: { secretName: "BITBUCKET_WEBHOOK_SECRET" }," (Supports: secret name) Quote: "repos: ["acme/widgets"]," (Supports: example repo) Quote: "On Cursor hosting, a delivery with the wrong secret gets a `401` and never reaches your agent." (Supports: wrong secret status) Quote: "apiBaseUrl: "https://bitbucket.example.com/rest/api/1.0"," (Supports: Data Center REST base) Quote: "Set `cursorAccount: { repos: ["acme/widgets"] }`, and events and `ctx.bitbucket` calls go through your signed-in Cursor account." (Supports: Cloud account config) Snapshot SHA-256: ae7423e2e9bae110cb53e46e03a30cc55afd1cde765e813fdafa1f939145848d (captured 2026-11-13T03:08:28Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:28Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:32:44Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:32:44Z Last attempt: 2026-11-20T12:32:44Z Notes and limitations: Extracted automatically from a single official source (section "Connect a repository"). Related: https://latestn.com/tool/cursor/integrations/connect-github How do I connect GitHub to Cursor for Cloud Agents? https://latestn.com/tool/cursor/integrations/connect-github-repos-for-agents How do I connect GitHub repositories to a Cursor agent so it can respond to repo events? https://latestn.com/tool/cursor/integrations/connect-gitlab-project How do I connect a GitLab project to a Cursor agent? https://latestn.com/tool/cursor/integrations/configure-otel-export How do I configure Cursor Agent SDK to send OpenTelemetry traces, metrics, and logs to an OTLP collector? https://latestn.com/tool/cursor/integrations/confirm-user-identity How do I confirm a user's Cursor identity and handle the callback in Origin? https://latestn.com/tool/cursor/integrations/connect-bitbucket-account How do I connect my Bitbucket account to Cursor? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:28Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/integrations/connect-bitbucket-repository/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/integrations/connect-bitbucket-repository POST: https://latestn.com/dispute/tool/cursor/integrations/connect-bitbucket-repository with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/integrations/connect-bitbucket-repository?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect a Bitbucket repository to a Cursor agent? Revision 1, last verified 2026-11-20T12:32:44Z. https://latestn.com/tool/cursor/integrations/connect-bitbucket-repository (accessed 2026-11-21T09:57:59Z). @misc{LatestN_tool_cursor_integrations_connect_bitbucket_repository_r1, title = {How do I connect a Bitbucket repository to a Cursor agent?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/integrations/connect-bitbucket-repository}}, note = {Revision 1; digest sha256:7c485a548ef1b1fb; last verified 2026-11-20T12:32:44Z; accessed 2026-11-21T09:57:59Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/integrations/connect-bitbucket-repository