Skip to content

v3.8.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:03
· 27 commits to main since this release
Immutable release. Only release title and notes can be modified.
v3.8.0
8ac498b

Summary

3.8.0 is recorded against GitLab 19.6.1, so on a GitLab 19.6 instance a fine-grained token's grant decides 41 more actions (#1892 to #1896), and HTTP mode no longer fails a first request whose body arrives while the server waits on GitLab (#1868). Two changes refuse calls that worked, as the Breaking changes below say: project.list_user_contributed no longer offers the 23 filters its GitLab route never read (#1874), and project.pull_mirror_configure asks before auth_user re-aims a mirror that overwrites diverged branches from an SSH path that starts with ~ (#1872).

  • The REST record, the fine-grained permission table and the release GraphQL schema are recorded from GitLab 19.6.1, and the gitlab.com GraphQL schema is pinned at 19.7.0-pre (#1892, #1893, #1896). On a GitLab 19.6 instance a fine-grained token's grant now decides 41 actions that GitLab 19.5 refused or emptied for every fine-grained token, the epic, work item, saved view and achievement actions and the target branch rules among them, since 19.6 declares the types they go through; 14 actions of 1106 remain out of every fine-grained token's reach, the CI/CD catalog, branch rule, security attribute and category, security finding, scan profile and two vulnerability summary actions.
  • user.create_personal_access_token takes granular_scopes in place of scopes, exactly one of the two, so an administrator creates a fine-grained personal access token for another user on GitLab 19.6 and later (#1895). An older instance requires classic scopes on that route, and its refusal of a grant now says so.
  • admin.metadata_get publishes the instance's plan, and server.status and server.health_check publish it as gitlab_plan, from GitLab 19.6, which sends it on GET /metadata (#1894).
  • The keys GitLab 19.6 added to its answers are published where an action reads them: the Code Review Flow depth settings of groups and projects, a project's Duo scheduled automations, a group's Duo remote flows setting and lock and its ancestors' two-factor requirement, a runner's uuid, a board list's status, the too_large of the three group activity counts, nine plan limits, three member role permissions, an attestation's signing_method, and the granular_scopes and warnings an application create answers with and the warnings of a release create (#1892).
  • A fine-grained session whose epic note, thread or reply creation GitLab answers without the note is told the note was probably created, rather than that none came back, since from GitLab 19.6 such a grant can create the note without being granted its read (#1896).
  • In HTTP mode, the 30-second read deadline and the 60-second write deadline of a request to the MCP endpoint are held while the server verifies a new credential and builds its entry on GitLab, and start again, each counted from that moment, when the request's body is first read or its answer written (#1868). A first POST whose body was still arriving failed with failed to read body: i/o timeout once that wait passed 30 seconds, as the first build can on GitLab.com, and under --json-response the server cut its own first answer. It holds over HTTP/1.1 and over HTTP/2.
  • From GitLab 19.5, a fine-grained token's grant is read from the answer of GET /personal_access_tokens/self, the request every session already makes, and the server no longer asks GET /personal_access_tokens/:id for it; an instance whose answer does not carry the grant keeps the read by id (#1857, #1861). In HTTP mode that self read is made under the slot the credential probe took, so builds for distinct credentials read and decode at most 16 token answers at once, and no build waits longer than before (#1887).
  • Every GitLab client the server builds sends no body for a write client-go makes without options, where client-go sent null. No action sends such a write today; the option keeps the next one from doing so (#1859).
  • Four lines the server writes about a pooled credential in HTTP mode outside the pool (a configuration shape that failed to register, a refused subscriptions/listen, a failed server creation and an unavailable token verification) name it by its keyed handle, credential_hash, as the pool's own lines do. Exported telemetry carries neither the field nor the handle (#1869).
  • project.pull_mirror_configure asks before auth_user re-aims a mirror that overwrites diverged branches (#1872). Over SSH, a path that starts with ~ is resolved in the home of the account GitLab logs in as, and GitLab logs in with auth_user in place of the URL's own login, so sending auth_user alone pointed the overwrite at another account's repository unasked. Such a call is now asked, an empty auth_user included, and every question about a home-relative SSH source names auth_user as its login, the account whose home GitLab pulls from. Over HTTPS, and over SSH with an absolute path, auth_user stays an ordinary credential and asks nothing where the token can read the mirror; where it cannot, the call is asked, as the Breaking changes say.
  • The pull mirror params of project.update, project.create and project.create_for_user say that GitLab deprecated them on those routes and name project.pull_mirror_configure, and mirror_user_id says it is the only way to run the mirror as another user. Every one of them keeps working (#1873).
  • project.list_user_contributed offers the params GitLab's route reads, and no others (#1874, #1875). The route builds its finder without params, so 23 of the project filters it offered never filtered anything; it reads four more without declaring them, which the action keeps, and reads a false sent to them as true, so it sends them only when true.
  • With GITLAB_MCP_META_PARAM_SCHEMA=full, a meta call that gives none of the parameters an action asks one of, or two that exclude each other, is refused by the action in words that name them (#1886). Such a call, to a snippet create, an LDAP group link, a token create that takes scopes or granular_scopes or any other action that asks for one of several parameters, was refused before the action ran with the schema validator's oneOf: did not validate against any of [<anonymous schema> <anonymous schema>] or its anyOf twin, which names none. As under opaque and compact, a destructive one of them is asked for confirmation before that refusal.
  • The documentation site publishes a markdown twin of every page, at the page's path with index.md appended, which the site serves to a request that asks for text/markdown; each page announces its twin, and a page's date follows the data it prints (#1890, #1898). Six page titles render the code they name, among them the --public-url cautions of the HTTP server page, which named the flag with a dash (#1899). The getting started page starts the server under the name its own install steps give it (#1866), and the meta-tools page's counts are held to the catalog and corrected to it (#1854).
  • For contributors: make test-e2e-docs runs the shell blocks the documentation marks as runnable against an ephemeral GitLab (#1865, #1866); the Orbit fixture setup and the indexer wait are the Go command cmd/orbit_fixtures, which merges the fixture merge request the shell script never merged and reads its settings from the command line, then the environment, then .env (#1877, #1878, #1879); ten request bounds are declared in the tenant policy register, with no value changed (#1858); the keep-alive test is timed on a synctest clock (#1856); and the Codex compatibility profile's comment names Codex 0.163.0 as the first release built on the fix (#1860).

Breaking changes

client-go stays on its v3 major, so the server's major stays at 3. The withdrawals from project.list_user_contributed below are the versioning policy's withdrawal row: params its GitLab route never read, which a call sent and got the unfiltered list back for. The project.pull_mirror_configure question (#1872) closes the unasked overwrite the Security section describes.

  • project.list_user_contributed no longer offers 23 of the 27 project filters it accepted before (search, visibility, archived, topic, topic_id, min_access_level, owned, starred, membership, last_activity_after, last_activity_before, updated_after, updated_before, id_after, id_before, custom_attributes and the rest), and a call that sends one is refused as a field the input does not have. GitLab's route declares only order_by, sort, simple, page and per_page, and builds its finder without params, so it never read any of them: a call that sent one got the whole list back, unfiltered, with no error. The action takes user_id, order_by, sort, simple, page, per_page and the four the route reads without declaring them, statistics, imported, with_programming_language and with_custom_attributes (#1874).
  • On project.list_user_contributed, statistics, imported and with_custom_attributes are sent only when true. GitLab reads them there as the text sent, so false read as true: statistics: false returned the statistics and imported: false returned only the projects the caller imported. Sent false, they now leave the list as it is without them (#1874).
  • project.list_user_contributed no longer offers similarity as an order_by value, which GitLab's route declares but answers alone with a 500 Internal Server Error, since it orders by similarity only beside a search it does not read. The other project lists keep it (#1874).
  • The fine-grained permission table is recorded from GitLab 19.6.1, and a fine-grained token's grant is judged only on an instance that reports a 19.6 release, or for the listing on GitLab.com's 19.7.0-pre (#1896). A self-managed GitLab 19.5 instance falls back, as an instance on any other release does: its fine-grained sessions are withheld only what no fine-grained token reaches at 19.6.1, every other call is passed to GitLab, and GitLab's own refusal is quoted. The epic, work item, saved view and achievement actions are among those passed there, and GitLab 19.5 answers them empty or null for every fine-grained token. Until this release they were withheld there with a reason; now a read emptied that way carries no note that empty may not mean there is nothing, since the note reads the 19.6.1 table, and a write answered without its object is still reported as probably committed. GitLab.com sessions are listed by their grant while GitLab.com reports 19.7.0-pre, where they were while it reported 19.6.0-pre.
  • project.pull_mirror_configure with auth_user, an empty one included, on a mirror that overwrites diverged branches and pulls an SSH path that starts with ~, is refused without confirm: true from a client that cannot elicit, and asked through elicitation otherwise. It went out unasked before (#1872).
  • The question about a home-relative SSH source names auth_user as the URL's login where the call sends it, and no login for an empty one, where it named the login written in the URL. A call that sends auth_user without a URL is asked about the source the mirror has, with that login, where it was asked about "its configured mirror source". The question's key, project_pull_mirror_overwrite, does not change (#1872).
  • One more read on some calls, made only when neither confirm: true nor YOLO mode is set: a project.pull_mirror_configure that sends auth_user reads the mirror (GET /projects/:id/mirror/pull) to tell whether the login picks the repository, also when it sends no other mirror setting, where it read nothing before. A read that fails for any reason but a project that is not mirrored, a 403 included, is answered by asking, so a token that cannot read the mirror is now asked about such a call even on an HTTPS mirror, which went straight through before. A fine-grained token needs Pull Mirror: Read for it (#1872).

Upgrading

  1. A client or script that sends project.list_user_contributed a filter it no longer offers drops it and filters the list it gets back, since GitLab answered the same unfiltered list with the filter as without it. project.list_user_projects and project.list_user_starred take the project filters and apply them. statistics, imported, with_programming_language and with_custom_attributes stay, and work as they did, but for the false above. A call that ordered by similarity picks another order_by value.
  2. A fine-grained token used against a self-managed GitLab 19.5 instance is judged by GitLab rather than by its grant from this release on, as the fine-grained tokens page describes; upgrading the instance to GitLab 19.6 restores the grant check, and a classic token reaches the epic and work item actions there in the meantime.
  3. A client or script that sends auth_user to project.pull_mirror_configure without a person to answer sends confirm: true once the call is approved when the mirror overwrites diverged branches and pulls an SSH path that starts with ~, or runs with GITLAB_MCP_YOLO_MODE=true where nothing should ask.
  4. A token used for project.pull_mirror_configure with auth_user holds read access to the pull mirror (Pull Mirror: Read for a fine-grained token), or such a call is asked unless it sends confirm: true or YOLO mode is set.

Security

  • Before this release, project.pull_mirror_configure sent with auth_user alone could point a mirror that overwrites diverged branches at another account's repository without asking, where the mirror pulls an SSH path that starts with ~, and a question about such a source named the URL's own login rather than the one GitLab uses. Such a call now asks for confirmation through elicitation or confirm: true, and the question names auth_user as the login (#1872).
  • In HTTP mode, the token description a pool build reads, which carries a fine-grained grant of up to 1 MiB from GitLab 19.5, is read under one of the 16 credential probe slots, so concurrent builds for distinct credentials no longer each decode one without a bound across builds. Only a credential GitLab had already accepted reached that read (#1887). No advisory was published for it.
  • Dependencies: no Go module changes, and the image's Dockerfile does not change. In the documentation site's build tooling, which ships in no artifact, the picomatch advisory GHSA-fc5q-39xc-vjpf, which named no fixed release, was set aside as not exploitable there (#1871), and the entry was removed once GitHub withdrew the advisory (#1888).

Changelog

✨ Features

🐛 Bug Fixes

📚 Documentation

🚧 Maintenance


Full changelog: v3.7.0...v3.8.0

Verify the assets

All binaries, and the OpenVEX document gitlab-mcp-server.openvex.json, are listed in checksums.txt, signed keylessly with cosign:

cosign verify-blob \
  --bundle checksums.txt.sigstore.json \
  --certificate-identity "https://github.com/jmrplens/gitlab-mcp-server/.github/workflows/release.yml@refs/tags/v3.8.0" \
  --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
  checksums.txt
sha256sum --check --ignore-missing checksums.txt

Every file in checksums.txt and every Claude Desktop bundle also carries SLSA build provenance, attached as gitlab-mcp-server.intoto.jsonl. Verify a file against it, without signing in to GitHub:

gh attestation verify gitlab-mcp-server-linux-amd64 \
  --bundle gitlab-mcp-server.intoto.jsonl \
  --repo jmrplens/gitlab-mcp-server \
  --cert-identity "https://github.com/jmrplens/gitlab-mcp-server/.github/workflows/release.yml@refs/tags/v3.8.0"