First-party app
GitLab

GitLab

Manage GitLab projects, issues, merge requests, files and releases on GitLab.com or a self-managed instance.

stable Developer ToolsVersion Control

About

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.

App id
io.w6w.gitlab
Version
0.1.2
Author
w6w
Licence
MIT
Categories
Developer Tools · Version Control

Overview

GitLab 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.

Build with GitLab

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.

Create File

file-create

Commit a new file to a branch. Fails if the file already exists.

Get File

file-get

Read a repository file's contents and blob SHA. Content comes back base64-encoded.

Update File

file-update

Commit changes to an existing file on a branch.

Close Issue

issue-close

Close an issue by its project-scoped IID.

Create Issue

issue-create

Open an issue on a project.

Edit Issue

issue-edit

Update an issue's title, description, labels, or state.

Get Issue

issue-get

Fetch one issue by its project-scoped IID.

Get Many Issues

issue-get-many

List a project's issues, optionally filtered by state, labels, or a search term.

Create Merge Request

merge-request-create

Open a merge request from a source branch into a target branch.

Get Merge Request

merge-request-get

Fetch one merge request by its project-scoped IID.

Get Many Merge Requests

merge-request-get-many

List a project's merge requests, optionally filtered by state or target branch.

Get Project

project-get

Fetch a project's metadata by id or path.

Get Many Projects

project-get-many

List projects the connected account is a member of, optionally filtered by search.

Create Release

release-create

Publish a release for a tag. Pass a ref to create the tag if it doesn't exist.

Get Many Releases

release-get-many

List a project's releases.

Get Current User

user-get-current

Fetch the profile of the authenticated user.

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>"
      }
    }
  ]
}

Here are some of the things you can do

  • Create File

    perform
    file-create
  • Get File

    read
    file-get
  • Update File

    perform
    file-update
  • Create Issue

    perform
    issue-create
  • Edit Issue

    perform
    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.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { 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);
Install the CLI
npm install -g @w6w/cli
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.

What the agent gets

Credentials it can't read

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.

A tool surface scoped to the caller

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.

A durable workflow in one call

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.

Health-aware discovery

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).

Request MCP access

Health checks

GitLab declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

GitLab platform status

status.io rollup for GitLab.com (status.gitlab.com), with per-component detail. Unauthenticated and unsigned.

quota

API rate-limit headroom

Per-minute request allowance remaining on this credential, read off GitLab's `RateLimit-*` response headers.