Skip to content
MCP server

Patchlit for your coding agent

Patchlit runs a remote Model Context Protocol server. Connect it to Claude Code, Cursor, VS Code or any MCP client, and ask in plain words: which dependency PRs are red, what Purrfix changed and why, retry this one, fix that one. Your CI still decides; nothing is merged without you.

Server address
https://patchlit.dev/mcp

Quickstart

  1. You need a Patchlit account with at least one repository connected through the GitHub App (sign in, then install the app).
  2. Add the server to your agent. For Claude Code: claude mcp add --transport http patchlit https://patchlit.dev/mcp, then run /mcp and sign in. Other agents: Connect your agent.
  3. On Patchlit’s consent page, check the app and the address it sends you back to, choose read only or read and start fixes, and Allow.
  4. Ask your agent: “Which of my dependency PRs need me, and why?”

Signing in

OAuth (recommended)

Your agent finds Patchlit’s sign-in on its own (OAuth 2.1 with PKCE, discovered through the server’s protected-resource metadata) and opens the consent page in your browser. You sign in with GitHub if you are not already, and choose what the agent may do. Access tokens last an hour and renew themselves for up to 30 days of use; each renewal replaces the old token, and a stolen old token used again ends the connection.

API key

For CI, scripts and agents without a browser, create a key under Settings, API keys and send it as Authorization: Bearer <key>. A key has full access (read and write), so keep it in an environment variable or a secret store, never in a repository. A key unused for 90 days stops working.

An API key acts as you with full access. Prefer OAuth for anything a person uses, so you choose the permission and can disconnect the app on its own.

Tools

Write tools need the “start and stop fixes” permission and are recorded in your audit log. Every tool returns JSON text and the same data as structured content.

ToolAccessArgumentsWhat it does
patchlit_whoamiReadnoneThe account this connection acts as, its plan and usage, and what the connection may do.
patchlit_list_repositoriesReadnoneRepositories connected through the GitHub App, whether Purrfix is active, and each one's fix record.
patchlit_list_fixesReadrepository, filter (needs_you | working | done | all), limit, offsetDependency PRs Purrfix worked on in a repository: status, attempts, what happens next. Paginated with has_more and next_offset.
patchlit_get_fixReadfix_id, include_diffOne fix in full: the diagnosis, a plain-English explanation, each commit with its CI result and files, and optionally the diffs (long patches are cut).
patchlit_list_waiting_prsReadrepositoryOpen PRs whose CI is red and that Purrfix has not touched yet.
patchlit_get_insightsReadrepository (optional), range (1h … all)Opened, green, given up, merged, green rate and median time to green, for a repository or the whole account.
patchlit_get_activityReadrepository (optional), limitThe newest events across the account or one repository.
patchlit_retry_fixWritefix_idGive a red fix a fresh attempt, the same as commenting @purrfix retry. At most 3 a day per PR.
patchlit_fix_prWriterepository, pr_numberStart Purrfix on a PR from patchlit_list_waiting_prs: adds the opt-in label, then Purrfix pushes a fix to the PR branch for your CI to judge.
patchlit_pause_repositoryWriterepositoryStop Purrfix starting new fixes on a repository.
patchlit_resume_repositoryWriterepositorySwitch Purrfix back on for a paused repository.

Repository arguments take owner/name or the id from patchlit_list_repositories. Fixes take a few minutes: the agent should check patchlit_get_fix rather than retry.

Limits

  • At most 120 tool calls a minute per account, across every connected agent and key.
  • Retry and Fix it share the dashboard’s limit of 3 a day per pull request, and a fix counts against your plan only when CI goes green on it.
  • Requests are limited to 256 KB; long patches in patchlit_get_fix are cut, with a link to the full diff on GitHub.

What an agent cannot do

  • Merge a pull request, or turn on any risky option (pushing when CI uses secrets, merging from the dashboard). Those need a person in the dashboard and leave a consent receipt.
  • Change account settings, billing, API keys or two-step sign-in.
  • See repositories you have not connected to Patchlit, or anyone else’s.
  • Bypass the guards on every fix: CI is the only judge, tests and CI config are never edited, and repositories whose CI uses secrets are skipped unless you allowed it (Security).
PR titles, CI logs and diagnoses are written by other people and by models. Patchlit tells agents to treat them as data, and the write tools only act on your own repositories, but keep your client’s tool approval on for write tools, especially next to other MCP servers.

Questions

Does the agent act as me?

Yes. A connected agent acts as the Patchlit account that signed in, within what you allowed on the consent page: reading only, or reading plus starting and stopping fixes. It sees only the repositories you connected to Patchlit.

Can an agent merge a PR or change risky settings?

No. Merging, pushing when CI uses secrets, and the other risky options need a person to tick each warning in the dashboard and leave a consent receipt, so they are not tools. Account settings, billing and API keys are not tools either.

OAuth or an API key?

OAuth for anything a person uses: you sign in once, pick what the agent may do, and can disconnect it any time. An API key for CI or a headless agent; a key has full access (read and write) and stops working after 90 days unused.

How do I disconnect an agent?

Settings, Connected apps, Disconnect. It stops at once. Signing out everywhere disconnects every app too. For an API key, revoke it under Settings, API keys.

Does it cost anything?

Connecting is free. A fix started through MCP counts against your plan exactly like one started from the dashboard: only when CI goes green on it.

See also Data, privacy and terms and the REST API.