Does the Slack integration work with GitLab

Hi! Does the Slack integration work with GitLab (specifically cloud, not self-hosted)?

I can’t get it to work and could not find a definitive answer in the docs/forum whether this is even possible or only works with GitHub so far.

If it’s not available - is there any chance you could let me know if this is planned at all and if yes, when we might roughly expect it to be available?

Thanks so much in advance!

Hey @RB_360vier!

Gitlab is supported!

If you wan to ask the Cursor agent to spin up a cloud agent, you can send slack messages like:

@Cursor [repo=gitlab.com/owner/repo] fix the bug
@Cursor [repo=https://gitlab.com/group/subgroup/repo] your task

To omit the repo, you have to set a default repo under https://cursor.com/dashboard?tab=cloud-agents.

Hey Colin,

Thanks for the info - I tried this but cannot get it to work. I am an admin in the Cursor Team account and Maintainer in the repo, I see the repo in the dropdown and also was able to set it as default repo.

Neither notation (i.e. just gitlab/… or https://gitlab) and also not telling it to access default repo work.

Could you check if we’re still doing something wrong or if there’s a bug?
Request IDs:
serverGenReqId_0a8d5645-be9e-4071-a7d6-88cd9f6e2508
serverGenReqId_c720e22a-bdc6-4d24-be8f-d3e5458d0932
serverGenReqId_67b747bb-0fbb-4dc6-9a41-ce1bc43c3d5d

Thanks so much for the help!

Hey Robert,

Checked the logs for those request IDs. The error coming back from GitLab is:

400 Bad request - User does not have permission to create project access token

Cursor’s Slack integration needs to create a Project Access Token to work with GitLab repos. A few things that could cause this:

  1. GitLab tier. Project Access Tokens require Premium or Ultimate on GitLab.com. They’re not available on Free.
  2. Group settings. Your GitLab admin may have disabled project token creation at the group level.
  3. Role. Creating project access tokens requires at least Maintainer role on the project.

Can you confirm:

  • What GitLab tier you’re on?
  • If Premium/Ultimate, is the group setting for token creation enabled?
  • Do you have Maintainer (or Owner) role on the specific project (you already said yes, but worth double checking)

Hey Colin,

just checked with the admin and it’s indeed a Free Gitlab so that explains it! Thanks for clarifying. Will try again once the space is upgraded!

Just fyi - the Cursor Help Agent in the Docs also does not know about this yet :sweat_smile: Probably a simple addition to the docs!

Thanks for the help!

1 Like

Great feedback. Let me make a PR to the docs. :folded_hands:

1 Like