Reference
MCP server
Connect Claude, Claude Code or Cursor to Porro, so your agent can find what needs fixing on a client's site, fix it in the repo and check the fix landed.
Your agent knows the code. Porro knows the site. Porro's MCP server gives an agent working in a client's repo what Porro knows about the live site, so it can:
- find what needs fixing on the site;
- fix it in the repo, within Porro's rules, never across a major version;
- verify on the live site, through the connector, that the fix landed.
The client's report then credits the fix on its own, because it's built from the lock file changes the connector reports.
The server is at https://app.porro.dev/mcp. It's remote, so there's nothing to install, and it's on Agency and Enterprise, the same as the API.
Connecting
Claude.ai and Claude Desktop
- Go to Settings → Connectors → Add custom connector.
- Enter
https://app.porro.dev/mcp. - Claude opens Porro to sign in. See Allowing access.
Claude Code
claude mcp add --transport http porro https://app.porro.dev/mcp
Then run /mcp and pick porro to sign in. Or install the skills plugin, which sets up the server for you.
Cursor
Add Porro to .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project:
{ "mcpServers": { "porro": { "url": "https://app.porro.dev/mcp" } } }
Cursor opens Porro to sign in the first time it uses a tool.
With a token instead
For CI, or anywhere without a browser, send a personal access token as a header instead of signing in:
{ "mcpServers": { "porro": { "type": "http", "url": "https://app.porro.dev/mcp", "headers": { "Authorization": "Bearer ${PORRO_TOKEN}" } } } }
The token's abilities decide what the agent can do. Keep it in an environment variable, never in the repo.
Allowing access
When an app connects, Porro shows a consent screen with the app's name and where it'll send you back to. You need to be signed in, with two-factor on.
- Pick a workspace. The connection works in that one workspace only. Connect again to use another; each connection is separate.
- Tick what the app can do. The read abilities start ticked.
findings:writeandupdates:writestart unticked, so tick them only if you want the agent to write to Porro. Sending client reports isn't offered. - Click Allow access.
The app can never do more than your role allows. If your role changes, so does what the app can do, straight away. Workspaces on a plan without the MCP server show an upgrade prompt instead.
Access lasts an hour at a time and renews itself. A connection unused for 30 days has to sign in again.
Abilities
| Ability | Lets the agent |
|---|---|
sites:read |
Read sites, clients, care plans, packages and what's running live |
findings:read |
Read findings, fix briefs and Needs attention |
updates:read |
Read waiting updates, pull requests and care plan rounds |
reports:read |
Read past reports and previews |
advisories:read |
Read security advisories and check lock files against them |
servers:read |
Read servers and their read-only host data |
findings:write |
Acknowledge, snooze and add notes to findings |
updates:write |
Ask Porro to open update pull requests, never across a major version |
If a tool needs an ability you didn't tick, it says which. Disconnect and connect again with it ticked.
Tools
Lists take cursor and return next_cursor, 25 at a time. Errors come back with the same code as the API's errors.
Read
| Tool | Ability | What it does |
|---|---|---|
whoami |
any | The workspace, you, and the abilities the connection has |
list-clients |
sites:read |
Your clients |
list-sites |
sites:read |
Your sites. q searches the site's address |
get-site |
sites:read |
One site, with its platform and versions |
list-findings |
findings:read |
Findings, filtered by site, client or state |
get-finding |
findings:read |
One finding |
get-fix-brief |
findings:read |
Everything needed to fix a finding in the repo. See below |
needs-attention |
findings:read |
The Needs attention list, worst first |
coming-up |
sites:read |
The Coming up list: rounds, advisories, expiries and end of life |
list-waiting-updates |
updates:read |
A site's waiting updates |
get-care-plan-usage |
updates:read |
A site's update rounds used and left this year |
search-advisories |
advisories:read |
Search security advisories |
check-package |
advisories:read |
Advisories affecting one package at one version |
get-eol |
any | End-of-life dates for PHP, Node, frameworks and CMSs |
get-fix-brief is the one to call before changing a client's repo. It's the fix brief from the API: actions to apply, blocked changes that need a new major (with the upgrade guide), what to run to verify, and how to name the branch and pull request. Agents are told to apply only actions, never attempt anything in blocked, and tell you about blocked items instead.
Write
| Tool | Ability | What it does |
|---|---|---|
acknowledge-finding |
findings:write |
Acknowledges a finding as you. Doing it twice changes nothing |
snooze-finding |
findings:write |
Snoozes a finding for 30m or 1h, until tomorrow or for a week, or ends a snooze with clear |
add-finding-note |
findings:write |
Adds a note to a finding's history |
open-update-pr |
updates:write |
Has Porro open an update pull request on the site's repository, and says what allowance it used |
None of these deletes anything. Each checks your plan, and a read-only workspace can't write. open-update-pr follows the care plan, never crosses a major, and opens one at a time per site: it refuses while one is still open.
Connector
These use what the site's Porro connector already reports, so there's nothing extra to install or collect. On a site without the connector, they answer no_connector with a link to install it.
| Tool | Ability | What it does |
|---|---|---|
get-site-runtime |
sites:read |
What's running live: platform, PHP or Node, environment, health checks, the scheduler, failed jobs, the server's OS |
compare-lockfile |
sites:read |
Compares the repo's lock file with the live site's: what differs, what's only_local and what's only_live |
check-lockfile |
advisories:read |
Checks the repo's lock file for advisories and end-of-life versions, before deploy |
find-sites-with-package |
sites:read |
Which sites run a package, optionally below a version or for one client |
verify-fix |
sites:read |
After deploy, whether the versions applied are running live |
compare-lockfile, check-lockfile and verify-fix take package names and versions only, never file contents: from composer.lock, each entry in packages and packages-dev; from package-lock.json, each node_modules/… entry in packages.
verify-fix checks every copy of each package on the live site, since npm can install several, and answers for each:
| Result | Means |
|---|---|
landed |
Every copy is at or above the version applied |
partial |
Some copies are still below |
not_yet |
None are yet |
missing |
The package isn't installed on the live site at all |
Pass a finding too, with findings:read, and it adds the finding's state. A fix that's landed on a finding that's still open clears at Porro's next evaluation.
Prompts
Prompts are ready-made starting points your app shows, often as slash commands.
| Prompt | What it does |
|---|---|
fix-site(site?) |
Works out the site, lists its open findings worst first, applies each fix brief's actions, opens a pull request, then verifies after deploy |
triage(client?) |
Goes through Needs attention and suggests fix, acknowledge or snooze for each item, writing only when you agree |
client-summary(client, month?) |
A plain-English month for a client, from its findings and updates. It doesn't send anything |
Skills plugin
For Claude Code there's a plugin with the server and five skills, step-by-step workflows that use it:
| Skill | What it does |
|---|---|
porro-fix |
Fixes a site's findings from the fix brief, runs the checks and tests, and opens a pull request |
porro-verify |
After deploy, checks the fix is running on the live site |
porro-drift |
Compares the repo's lock files with the live site's and explains what differs |
porro-sweep |
Takes one advisory across every affected site and repo, one pull request each |
porro-triage |
Goes through Needs attention, proposing fix, acknowledge or snooze for each item |
/plugin marketplace add porrodev/porro-agent-kit /plugin install porro@porro
To tell the skills which site a repo is, add .porro.json to the repo root:
{ "site": "acme-legal" }
Without it, they look the site up by the repo's domain, or ask.
Pull requests from the skills put Porro-Finding: <id> at the end of their description, as the fix brief's pr.body_footer says.
Guardrails
Porro enforces these itself, so no agent or prompt can get round them:
- No major upgrades. Fix briefs and update pull requests stay within the installed major. Anything that needs a new one goes in
blocked, with the upgrade guide, for a person to do. - Nothing runs on your servers. Site and server data are read-only. No tool runs a command on a host or through the connector.
- No reports are sent. Client reports can't be sent over MCP, and care plan allowances can't be overridden.
- Untrusted text is labelled. Site names, notes, changelogs, failed-job messages and advisory text come from customers and third parties. They come back only in fields listed under
untrusted, capped at 500 characters, and agents are told to treat them as data, never as instructions. Failed-job messages are left out unless asked for.
The audit log shows each write as coming from the app that made it, such as mcp:claude.
Plans
The MCP server is on Agency and Enterprise, the same as the API. If a workspace moves to a plan without it, its connections are kept, but tools answer plan_limit with an upgrade link until it moves back.
Disconnecting
Go to the workspace's Settings → API tokens → Connected apps. Each connection shows the app, the workspace, its abilities and when it was last used. Click Disconnect to end it, and every token it was given stops working straight away.
Removing someone from the workspace disconnects their apps too.