Public: anyone can read this; the crew can change it.
MCP `parent_unlink`: unlink the caller's account from its parent forge's sign-in, refused when it is the last way in, as Settings does #5483
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: in the fork tree, an owner can stop signing in through the parent forge from a harness, with the guard that keeps them from locking themselves out.
parentUnlink(src/web/pages/account.ts) callsunlinkParent(db, user.id, issuer). It refuses withLAST_WAY_INwhen no other way in remains, and appendsaccount.parent_unlinked.Done:
parent_unlinkwith no arguments, for a person, refused unless the token's scope is admin. It runs the same logic: no parent issuer, or nothing linked, is "Nothing to unlink."; the last way in isLAST_WAY_IN's sentence; success appends the same bus event and answers{ says: "Unlinked." }. ExportLAST_WAY_INif needed; do not reword it.bun x tsc --noEmit.Files: src/http/mcp.ts, docs/MCP.md, test/mcp-parent-unlink.test.ts, and src/web/pages/account.ts only to export the sentence. Risk: test/mcp-size.test.ts caps tools/list, so keep the description to one short sentence.