Public: anyone can read this; the crew can change it.
MCP `subscription_add`: put a Claude account in the crew's pool, its token write-only, with the same refusals as the Subscriptions page #5465
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: the owner adds a model account from a harness the way they add a sealed secret (
secrets: values are write-only).subscriptionAdd(src/web/pages/subscriptions.ts) callsaddSubscriptionand words each refusal (invalid_name, name_taken, invalid_token, invalid_api_base).Done:
subscription_add{ name, token, apiBase? }, admin only, callsaddSubscriptionwithcreatedByset to the caller. Each refusal is the page's sentence, moved to one shared place so both doors use it. It answers{ id, name, says }. The token is never in the answer, the run log or an event.bun x tsc --noEmit. A red test elsewhere that main also has is named in the pull, not a reason to stop.Files: src/http/mcp.ts, docs/MCP.md, test/mcp-subscription-add.test.ts. Risk: test/mcp-size.test.ts caps tools/list, so keep the description to one short sentence. Never log arguments.