Need help configuring GitLab MCP server (Getting 404 and Token errors) #38053
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.Hello Dify team and community! I am currently trying to configure a GitLab MCP tool in my Dify instance (hosted on AWS), but I'm struggling with the connection and authentication. My Setup:
What I have tried:
The Errors:
My Question: Could someone guide me on the correct architecture for this?
Any examples or guidance on how to properly set up the GitLab MCP bridge for a cloud-hosted Dify instance would be greatly appreciated! Thank you! 2. Additional context or commentsSome images about my current set up
|
Replies: 2 comments
|
Do not point Dify at the GitLab REST API URL as the MCP server. Dify's MCP provider stores a server URL plus optional headers/OAuth credentials, validates that URL as HTTP(S), then connects with its MCP client and calls For the architecture you described, run a GitLab MCP bridge somewhere your AWS-hosted Dify instance can reach, configure that bridge with the GitLab PAT if the bridge is the component calling GitLab, then set Dify's Server URL to the bridge's MCP HTTP/SSE endpoint. Only put an |
|
Building on @cookesan — the 404 is the tell that the URL is a REST endpoint, not an MCP one. Two GitLab specifics:
Quick isolation: |



Building on @cookesan — the 404 is the tell that the URL is a REST endpoint, not an MCP one. Two GitLab specifics:
/api/v4/projects/.... A normal REST path has no MCP handshake → 404.api-scoped token; aread_api-only one authenticates but gets rejected. Pass it asAuthorization: Bearer <PAT>in Dify's MCP provider config.Quick isolation:
curlthe MCP URL with aninitializeJSON-RPC body + bearer header — if that returns a proper MCP re…