# How Does a Software Agency Write Its Weekly Client Update From GitLab? A Friday Draft per Client From Milestones and Merged Work

A software consultancy schedules an agent each Friday that reads each client's GitLab milestones and merged merge requests and drafts the weekly update email.

[Run this on Rush](https://cloud.getrush.ai/run/draft-weekly-client-progress-updates/gitlab/). Opens the console with this prompt ready to send. Connect GitLab there first.

## What the agent does

This is for a software consultancy that builds and maintains apps for a dozen clients, each in its own GitLab group. Every Friday each project manager writes the client an update: what shipped this week, what is in progress, what is blocked on the client, and how the current milestone is tracking. The facts are all in GitLab, spread across merge requests, work items and pipelines; collecting them means opening each project in turn, and the update a client reads rarely needs more than ten lines. The consultancy runs an agent that drafts those ten lines from GitLab and leaves the sending to the project manager.

The delivery lead connects GitLab's MCP server once with `POST /me/connections {"type": "mcp", "name": "gitlab-mcp", "url": "https://gitlab.com/api/v4/mcp", "auth": {"mode": "oauth"}}` and opens the `authorize_url`. GitLab's docs say the server signs in with OAuth and dynamic client registration, issues a token with the `mcp` scope, and is generally available on Free, Premium and Ultimate. The agent reads only what the lead's account can see, so the lead should be a member of every client group. No repository is cloned: the agent works from GitLab's records, not the code.

For each client group the request names, the agent calls `list_milestones` with `state` active to find the current milestone and its dates, then `list_merge_requests` with `state` merged for that group, keeping those merged since last Friday, and again with `state` opened for work in progress. It calls `list_work_items` for the group to find items labelled the way the consultancy marks client blockers, such as `waiting-on-client`, and `list_pipelines` on each project's default branch with `created_after` set to last Friday, then `get_pipeline` with its jobs for the newest successful one, to say whether this week's work reached production. It reads `get_merge_request` only for a merge request whose title alone does not say what changed.

It writes one draft per client in plain language, with no merge request numbers or branch names unless the client's technical lead asked for them: Shipped, In progress, Waiting on you, and Milestone, with the milestone's due date and how many of its items are closed. It links each line to the GitLab item so the project manager can check it in one click. It writes nothing in GitLab: no notes, no labels, no merge request changes.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "claude",
  "input": "Draft this week's client updates from GitLab, for 2026-11-13 to 2026-11-20. Use the gitlab-mcp connection. Client groups: acme-clients/northwind (client Northwind Foods, technical contact wants MR links), acme-clients/bellhop (client Bellhop Travel, non-technical). For each group: list_milestones state active and take the one with the nearest due date; list_merge_requests state merged and keep those merged in the date range; list_merge_requests state opened; list_work_items and keep open items labelled waiting-on-client; list_pipelines on each project's default branch with created_after 2026-11-13; for the newest successful one, call get_pipeline with its jobs and note whether a deploy job ran. Call get_merge_request only when a title does not say what changed. Write updates.md with one section per client: Shipped, In progress, Waiting on you, Milestone (title, due date, closed of total). Plain language for non-technical clients; add MR links only where noted. Link every line to its GitLab item at the bottom of each section. Read only: never call save_note, save_merge_request, save_work_item, save_pipeline or any other save, accept or apply tool.",
  "connections": [
    "gitlab-mcp"
  ]
}
```

1. **Get an API key.** In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
2. **Send the request.** POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
3. **Read what came back.** Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

## What comes back

`updates.md` holds a draft progress email per client from this week's GitLab work, each line linked to its source. The session lists the file as an artifact with a download link, and its answer in the session's `result` says which clients it covered and anything it could not read. The project manager pastes each section into their mail client, edits it for tone and sends it. The links at the bottom of each section let them check every line against GitLab before it goes out.

What the project manager checks: anything listed under Waiting on you, which a client reads closely and which must be fair; work that is merged but has no deploy job in a pipeline since, which the draft lists as merged and not yet live; and anything that happened outside GitLab, such as a call where the client changed the scope, which the agent cannot see. The draft never goes to a client without a person reading it.

## Run it on every Friday afternoon

In the console, a Project automation with a `schedule` trigger at `0 14 * * 5` in the consultancy's `timezone` runs a saved agent whose connections name `gitlab-mcp`, with the client list in its prompt. A schedule fills no dates into the prompt, so the saved prompt says "the seven days up to today" and the agent writes the range it used at the top of `updates.md`.

A consultancy that wants one session per client, so each project manager reads only their own, can call `POST /o/{org}/sessions` from its own scheduler instead, once per client group, with a `request_id` that is a UUID v5 of the group and the week.

## Why run it on Rush?

The GitLab sign-in stays in Rush's connection rather than in a personal access token on a project manager's laptop, and GitLab's docs say legacy personal tokens are refused by its MCP server anyway. Each run has its own computer and a record of every GitLab call it made, so when a client disputes that something shipped, the consultancy can open that Friday's session and see what the agent read.

Twelve clients is twelve sections of the same work, and the runs do not depend on anyone being at their desk on Friday. The session records its `total_cost_usd`, so the consultancy can see what each Friday's drafts cost.

## Frequently asked questions

### Does the agent need access to the code?

No. It reads milestones, merge requests, work items and pipelines through GitLab's MCP server and clones nothing. The request has no `resources`, so no repository is put in front of it.

### Does this work on GitLab Self-Managed?

GitLab's docs list the MCP server on GitLab.com, Self-Managed and Dedicated. A self-managed instance would connect its own server URL in place of gitlab.com's, if the instance is reachable from the internet.

### Can it send the update to the client?

Not in this setup. It has no mail connection, and the prompt makes it read only in GitLab. The project manager sends the email, which is where an update's tone and promises belong.

### How does it know what is blocked on the client?

From the label the consultancy already uses, such as `waiting-on-client`, which the prompt names. If the team tracks blockers another way, the prompt names that label or milestone instead.

## More GitLab jobs

- [Report Stale GitLab Merge Requests](https://getrush.ai/run/merge-request-report/gitlab/)
- [Find Flaky GitLab Pipeline Jobs](https://getrush.ai/run/pipeline-failure-report/gitlab/)
- [What Changed in This Release, in Words Support Can Use? A Payroll Software Company Briefs Its Support Team on Each GitLab Release](https://getrush.ai/run/brief-support-on-each-release/gitlab/)

## The same job in other apps

- [What Did We Ship for Each Client This Week? A Software Agency's Friday Updates Drafted From Linear](https://getrush.ai/run/draft-weekly-client-progress-updates/linear/)

## More jobs like this: Produce a report or file, no repo

- [Draft a Marketing Agency's Weekly Client Update From a monday.com Board](https://getrush.ai/run/draft-weekly-client-updates/monday/)
- [Write This Week's Customer Changelog From Linear: A Draft Every Thursday for a SaaS Product Team](https://getrush.ai/run/draft-weekly-customer-changelog/linear/)

## Keep reading

- [Connect GitLab to Rush: which of its connections a run names](https://getrush.ai/integrations/gitlab/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
