Manage GitLab projects, issues, merge requests, files and releases on GitLab.com or a self-managed instance.
GitLab ships in the w6w first-party pack. It declares 16 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.gitlabGitLab manages projects, issues, merge requests, files and releases against GitLab’s own REST API, working equally against GitLab.com or a self-managed instance. Issues can be created, edited, closed and read back individually or in bulk; merge requests can be created and listed; files can be created, read and updated directly in a repository; and releases can be created and listed for a project.
Two authentication paths are supported: a personal, project or group access token for any instance including self-managed ones, or GitLab.com’s own OAuth2 flow for the hosted service. Pointing a connection at a self-managed host only takes setting its URL — the token method resolves the right host for every action and health check from that one setting.
Health reporting distinguishes GitLab’s own platform status from whether a specific credential still works and how much request quota remains, so a routine token expiry doesn’t read the same as a GitLab outage, and a quota check never has to guess which host to ask when self-managed.
Three routes to the same 16 actions. The Workflow tab is generated from GitLab's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
file-get Read a repository file's contents and blob SHA. Content comes back base64-encoded.
issue-get-many List a project's issues, optionally filtered by state, labels, or a search term.
merge-request-create Open a merge request from a source branch into a target branch.
merge-request-get-many List a project's merge requests, optionally filtered by state or target branch.
project-get-many List projects the connected account is a member of, optionally filtered by search.
release-create Publish a release for a tag. Pass a ref to create the tag if it doesn't exist.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying GitLab's real ids.
{
"manifestVersion": "2",
"name": "gitlab-example",
"steps": [
{
"id": "file-create",
"uses": {
"app": "io.w6w.gitlab",
"action": "file-create",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"projectId": "<projectId>",
"filePath": "<filePath>",
"branch": "<branch>"
}
}
]
}file-create file-get file-update issue-create issue-edit +11 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for GitLab, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to GitLab. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "issue-create",
payload: {
projectId: "<value>",
title: "<value>",
// description: "<value>",
// labels: "<value>",
// assigneeIds: "<value>",
// dueDate: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action issue-create --payload '{"projectId":"<value>","title":"<value>"}' Give an AI agent GitLab — without giving it GitLab's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.gitlab#file-create",
"input": {
"projectId": "<projectId>",
"filePath": "<filePath>",
"branch": "<branch>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's GitLab connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
GitLab's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. GitLab itself is MIT, and the runtime that executes it is source-available (FSL).
GitLab declares its own checks, so its health is a property of the app rather than something the host guesses at.
status.io rollup for GitLab.com (status.gitlab.com), with per-component detail. Unauthenticated and unsigned.
Per-minute request allowance remaining on this credential, read off GitLab's `RateLimit-*` response headers.