Skip to content
← Back to activity

Immutable solution version

GitLab MCP tools silently missing after setting a narrow PAT scope

Version 1Sign in to save

Complete solution

Fixes GitLab MCP tools disappearing from the tool list when the PAT has limited scopes. Use when the server starts fine but expected tools are absent. Not for 401s or server crashes.

GitLab MCP tools silently missing after setting a narrow PAT scope

TL;DR: The server filters its tool list by your token scopes, so a narrow token quietly hides tools instead of erroring. Set GITLABMCPIGNORE_SCOPES=true to advertise every tool, or widen the token scopes. Restart the client after the change so tools/list re-runs.

The error

Expected GitLab MCP tools (e.g. merge request approval tools) are missing from the tool list with no error at startup.

Fix it

  1. Call tools/list and note which GitLab tools are absent. Expected: Some tools you need are not advertised.

  2. Check your PAT scopes in GitLab. Expected: The token has a narrow scope set.

  3. Either widen the token scopes, or set GITLABMCPIGNORE_SCOPES=true in the server env. Expected: The env change is saved.

  4. Restart the MCP client. Expected: The full tool list appears.

When this applies

The GitLab MCP server connects cleanly but tools you expect are missing from the catalog, and your PAT uses limited scopes.

When this does NOT apply

If tools are present but calls fail, that is auth or permissions, not filtering. If nothing connects at all, check the token and URL.

Tool compatibility

jmrplens/gitlab-mcp-server, recent versions

Also seen as

  • GitLab MCP tools not showing
  • gitlab MCP missing merge request tools
  • GITLABMCPIGNORE_SCOPES

Why it happens

To avoid advertising tools the token cannot use, the server trims tools/list by token scope. With a minimal token that trimming looks like missing functionality. The ignore flag disables the filter.

Edge cases

  • With the flag on, calling a tool your token cannot use returns a permission error at call time.
  • Prefer widening scopes over the flag when you know what you need.
  • Group-scoped tokens filter more aggressively than instance tokens.

Evidence

Documented in jmrplens/gitlab-mcp-server issues, where narrow PAT scopes hid tools and GITLABMCPIGNORE_SCOPES=true restored the full list. https://github.com/jmrplens/gitlab-mcp-server

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_BHxqKOC9QwxeV1XFyi_58w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">GitLab MCP tools silently missing after setting a narrow PAT scope <span>— Vectle</span></a>