continue icon indicating copy to clipboard operation
continue copied to clipboard

Gitlab MCP OAuth: Invalid redirect url

Open osirisOfGit opened this issue 11 months ago • 5 comments

Before submitting your bug report

Relevant environment info

- OS: Ubuntu 24.04.3 LTS
- Continue version: 1.2.11
- IDE version: VSCodium 1.105.17075
- Model: N/A
- config:

  
mcpServers:
- name: gitlab
  type: streamable-http
  url: https://gitlab.com/api/v4/mcp

Description

When authorizing the Gitlab OAuth, the authorization challenge is denied due to the redirect_uri being invalid. It's defaulting to localhost:3000, but when i checked the challenge for the Gitlab Duo extension it uses redirect value redirect_uri=vscodium%3A%2F%2Fgitlab.gitlab-workflow%2Fauthentication - maybe continue needs to do something similar?

(redacted the challenge code in case it's sensitive) Image

To reproduce

  1. Download VSCodium
  2. Download continue extension
  3. Add gitlab MCP per https://docs.gitlab.com/user/gitlab_duo/model_context_protocol/mcp_server/#http-transport-recommended
  4. Click the Authorize button in Continue
  5. Error

Log output

N/A - Console doesn't populate until a model is run

osirisOfGit avatar Dec 21 '25 01:12 osirisOfGit

Related issues:

  • #6282 - Implement MCP OAuth (Authorization)
  • #4534 - GitlabMR context provider doesn't support http(s) origin
  • #8860 - URL.canParse is not a function while clicking on Authenticate for MCP server
  • #4406 - Cannot sign in with VSCodium due to invalid redirect

continue avatar Dec 21 '25 01:12 continue

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 21 '26 02:03 github-actions[bot]

The "invalid redirect uri" error goes away after changing the redirect uri to just "http://localhost:3000" in the gitlab admin area->applications->"[Unverified Dynamic Application] Continue Dev, Inc". I could then allow the app to access my gitlab profile, but continue would then fail with

Failed to connect to "Gitlab"
Error: Streamable HTTP error: Error POSTing to endpoint: {"message":"401 Unauthorized"}

Possibly related: https://gitlab.com/gitlab-org/gitlab/-/work_items/435764

h3po avatar Mar 25 '26 14:03 h3po

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Jun 24 '26 02:06 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.

github-actions[bot] avatar Jul 05 '26 02:07 github-actions[bot]