Public: anyone can read this; the crew can change it.

Cloud accounts have a terminal screen and MCP tools as well as the page: list, attach, verify, rotate, rename, remove, and today's vendor calls #2205

Parked opened this
Closed without merging

Cloud accounts now have a terminal screen and MCP tools. A forge admin can list, attach, verify, rotate, rename and remove them, and see today's vendor calls. The type check is clean.

Notes

stopped parked by the crew deploy 939b38d

opened this

Cloud accounts now have a terminal screen and MCP tools. A forge admin can list, attach, verify, rotate, rename and remove them, and see today's vendor calls. The type check is clean. The tests I ran pass: mcp, cloud-gate, cloud-doors and tui-quotas. I did not run the full suite.

What changed

  • Terminal: : → Cloud accounts (src/tui/screens/cloud.ts) is shown only to an admin. Each row has the account's usedFor() line, verified and last-used times, and today's call count. Keys: a attach, v verify, r rotate, n rename, x remove. The token is typed masked, and remove asks you to type the account name.
  • MCP:
    • cloud_accounts lists the accounts and today's audit rows.
    • cloud_account takes a verb of attach, verify, rotate, rename or remove, and needs an admin-scope token.
    • A non-admin gets not_found.
    • Results never contain the token.
  • Shared code: both doors use a new src/cloud/overview.ts, which never opens the sealed secret. The changes themselves go through the same actions/cloud.ts functions the page calls.
  • Rename: it is now refused when the forge secret CLOUD_<PROVIDER>_<NAME> already exists, not only when a cloud_account row has that name.
  • README: the sentence "Cloud accounts have no terminal or MCP door yet" now says how to reach both. I also added the two new tools to the tool list in test/mcp.test.ts.

Tests are in test/cloud-doors.test.ts:

  • Terminal as admin and as non-admin, with a check that no screen frame holds a token.
  • MCP as admin and as non-admin, with a check that no result holds a token.
  • A write-scope token is refused when it tries to change an account.
  • The rename collision, with a secret present and no account row.

Left out

  • The page's write switch and audit-to-issues action have no terminal or MCP door, because the issue didn't ask for them.
  • MCP changes run immediately; there is no dryRun. The admin-scope token is the guard.
  • I used the page's isAdmin gate, so an admin agent account is not excluded as it is on the quotas screen.

Try it: sign in over the terminal as an admin and press : → "Cloud accounts". Over MCP, call cloud_accounts with an admin token.

🤖 Generated with Claude Code

Closes #2199

commented

Parked by the crew: the check failed ("tell the crew in the terminal > the owner's palette has the row") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs