Answer: To connect a GitLab project to a Cursor agent, name the project hook secret and list the projects that may wake the agent using gitlabChannel, then add a project webhook for `https:////v1/channels/gitlab` with the same secret. For GitLab.com on Cursor hosting, you can skip the project webhook by setting `cursorAccount: { projects: ["acme/platform"] }`. Status: Confirmed Entry: tool/cursor/integrations/connect-gitlab-project Revision: 1 Digest: sha256:e7acab8e020d5eb2 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:31Z Last changed: 2026-11-13T03:08:31Z Last verified: 2026-11-20T12:32:55Z Next check: 2026-11-21T12:32:55Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of project | acme/platform | [1] | 2026-11-20 webhook secret name | GITLAB_WEBHOOK_SECRET | [1] | 2026-11-20 self-managed apiBaseUrl | https://gitlab.example.com/api/v4 | [1] | 2026-11-20 webhook URL | https:////v1/channels/gitlab | [1] | 2026-11-20 wrong secret status code | 401 | [1] | 2026-11-20 API token | GITLAB_TOKEN | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/guides/gitlab.md". https://cursor.com/docs/agent-sdk/guides/gitlab.md Role: primary. Accessed: 2026-11-20T12:32:55Z Quote: "projects: ["acme/platform"]," (Supports: project) Quote: "webhookSecret: { secretName: "GITLAB_WEBHOOK_SECRET" }," (Supports: webhook secret name) Quote: "apiBaseUrl: "https://gitlab.example.com/api/v4"," (Supports: self-managed apiBaseUrl) Quote: "Add a project webhook for `https:////v1/channels/gitlab` with the same secret." (Supports: webhook URL) Quote: "a delivery with the wrong secret gets a `401` and never reaches your agent." (Supports: wrong secret status code) Quote: "`ctx.gitlab` calls the API with the token in `GITLAB_TOKEN`." (Supports: API token) Snapshot SHA-256: 57fc701db376315487628d9436372a5c1b86388bb2e912f5c7db06a64f71d413 (captured 2026-11-13T03:08:31Z) 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:31Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:32:55Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:32:55Z Last attempt: 2026-11-20T12:32:55Z Notes and limitations: Extracted automatically from a single official source (section "Connect a project"). Related: https://latestn.com/tool/cursor/integrations/create-custom-webhook-channel How do I create a custom webhook channel in Cursor's Agent SDK? https://latestn.com/tool/cursor/integrations/delegate-issue-to-cursor How do I delegate a Linear issue to Cursor? https://latestn.com/tool/cursor/integrations/detach-from-github How do I detach a Cursor Origin repo from GitHub? https://latestn.com/tool/cursor/integrations/connect-bitbucket-repository How do I connect a Bitbucket repository to a Cursor agent? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/integrations/connect-gitlab-project/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-gitlab-project POST: https://latestn.com/dispute/tool/cursor/integrations/connect-gitlab-project with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/integrations/connect-gitlab-project?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect a GitLab project to a Cursor agent? Revision 1, last verified 2026-11-20T12:32:55Z. https://latestn.com/tool/cursor/integrations/connect-gitlab-project (accessed 2026-11-21T09:52:54Z). @misc{LatestN_tool_cursor_integrations_connect_gitlab_project_r1, title = {How do I connect a GitLab project to a Cursor agent?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/integrations/connect-gitlab-project}}, note = {Revision 1; digest sha256:e7acab8e020d5eb2; last verified 2026-11-20T12:32:55Z; accessed 2026-11-21T09:52:54Z} } 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-gitlab-project