Skip to content

agentsctl connector and stand-in commands

These commands run the stand-ins an instance uses in place of a real MCP provider and a real GitHub, drive connector sign-in against them, and put a Mac app where the API gives it out. Every command here takes the flags that every agentsctl command takes, listed on agentsctl instance commands.

Starts the stand-in hosted MCP server and sign-in for this instance, and says its address.

Prints the address of the stand-in provider’s MCP server alone, for use in another command.

Lists what the stand-in provider was asked and the Authorization header each call carried.

Fields are method, tool, authorization, args. The output shows method, tool, authorization, args unless --fields names others.

Flag What it does
--where <value> Keep only rows with column=value, the columns being method, tool, authorization and args. Repeatable.
--newest <value> Keep only the last this many rows, after --where.
--every <value> Every row left must have the column starting with the text, as column=text. Repeatable.
--expect-rows <value> How many rows must be left.
--expect-refused <value> How many calls the provider must have refused with a 401 so far.
--fields <value> The fields to show, comma separated.

Makes the stand-in provider refuse a key from now on, as revoking it at the provider does. The argument all revokes every sign-in token.

Changes how the stand-in sign-in behaves. The names are refuseRefresh, omitPkce, omitIss and hangToken.

These commands take the flag --as <value>, which names who acts. It is one of ada (the default), ben, or a login.

Signs in to a connector at the stand-in provider as the browser does. It opens the provider’s page, takes its code to the callback, and reads the result.

Flag What it does
--scope <value> One of you (the default) or team.
--tamper-state Sends the callback a state that is not the one the person was given, as a forged callback would.
--expect-reason <value> Expect the sign-in to fail, with this text in the reason the app is told.

Also takes --as.

Opens a tool’s view on the frame origin, which the API serves from a socket of its own. It checks the status, headers and text of the page.

Flag What it does
--view <value> The id of the view result to open. The frames route gives a ticket for it first.
--address <value> A path on the frame origin to open as it is, such as /f/<ticket>, with no ticket asked for.
--expect <value> The status it must answer. The default is 200.
--expect-header <value> A header it must have with this text in its value, as name=text with the name in lowercase. Repeatable.
--expect-text <value> Text the page must hold.

Also takes --as.

Lists the files the API keeps connectors’ keys and sign-ins in, with each file’s mode. It also says which of them, the team’s Claude token file, the instance’s logs and the machine’s own files hold a text.

Fields are path, mode, holds. The output shows path, mode, holds unless --fields names others.

Flag What it does
--holding <value> A text to look for in each file, whose value no output repeats.
--where <value> Keep only rows with column=value, the columns being path, mode and holds. Repeatable.
--under <value> Keep only rows whose path starts with this, such as machine/ or connectors/.
--expect-rows <value> How many rows must be left.
--expect <value> A column=value that the first row left must have. Repeatable.
--fields <value> The fields to show, comma separated.

Puts a repo file where the API gives out the Mac app, by a copy and a rename as a release does, so the download is ready.

Flag What it does
--from <value> The repo file to give out as Agents.zip, a file that git tracks or one under test/fixtures.
--build <value> The build the file stands in for, the 12 digits of the minute it was made, written beside it as release.ts --publish writes it. Without it nothing says which build it is.

Takes the Mac app away from where the API gives it out, so the server has none to give.

Prints what the API says it gives out as the Mac app: its version, build, size and sha256. With --running, it also says whether a Mac on that build is offered it, decided by the same code the Mac app uses. A Mac is offered only a newer build.

Flag What it does
--running <value> The build a Mac runs, 12 digits.
--expect <value> The build a Mac on --running must be offered, or none. The command fails otherwise.
--as <value> Which person reads it, ada by default.

Prints the code waiting at the stand-in GitHub’s device page, which the app shows after Connect GitHub.

Enters a code at the stand-in GitHub’s device page and approves it as a GitHub account, as a person does on GitHub.

Flag What it does
--account <value> The GitHub account that approves, such as ada-gh.

Prints the organization the stand-in GitHub has, which its team token can see.

Prints the team token the stand-in GitHub takes for its organization, as an admin copies one from GitHub. It works only on this stand-in.

Posts a FAIL of a ship loop stage on an open pull request’s head at the stand-in GitHub, as GitHub’s Actions user, so the ship watch has a failure to see.

Flag What it does
--stage <value> The stage that failed: gates, review or verify.
--text <value> The findings the post holds.

Fails a check run on an open pull request’s head at the stand-in GitHub, on that commit alone, so the watch has a finished failure to see on a head the ship loop never posted on. The head an agent’s fix makes has no failure on it.

Flag What it does
--check <value> The check that failed, such as lint.
--summary <value> The check run’s summary, which the woken agent reads.

Posts a team member’s review on an open pull request’s head at the stand-in GitHub, 3 minutes old, so the ship watch’s next round is past its quiet window and wakes the task’s agent for it.

Flag What it does
--state <value> changes asks for changes, and commented only comments.
--text <value> The words the review holds.
--path <value> A file the review also comments a line on, in the same words.