Skip to content
Discussion options

You must be logged in to vote

Building on @cookesan — the 404 is the tell that the URL is a REST endpoint, not an MCP one. Two GitLab specifics:

  • Point Dify at GitLab's MCP endpoint, not the REST API. Recent GitLab ships an MCP server; use that MCP route (check your GitLab version's MCP docs for the exact path), not /api/v4/projects/.... A normal REST path has no MCP handshake → 404.
  • Token scope: "token errors" usually means wrong PAT scope — GitLab's MCP needs an api-scoped token; a read_api-only one authenticates but gets rejected. Pass it as Authorization: Bearer <PAT> in Dify's MCP provider config.

Quick isolation: curl the MCP URL with an initialize JSON-RPC body + bearer header — if that returns a proper MCP re…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by francinii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants