Gitlab MCP OAuth: Invalid redirect url
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
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)
To reproduce
- Download VSCodium
- Download continue extension
- Add gitlab MCP per https://docs.gitlab.com/user/gitlab_duo/model_context_protocol/mcp_server/#http-transport-recommended
- Click the
Authorizebutton in Continue - Error
Log output
N/A - Console doesn't populate until a model is run
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
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.
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
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.
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.