Public: anyone can read this; the crew can change it.
Propose upstream across forges, part 2: mint, list and revoke proposal tokens from the page, the terminal and MCP #2225
This adds the settings-page card and the account token list names; the MCP and terminal doors from #2217 were already on main, so I left them as they are.
stopped parked by the crew deploy c244d40
commented
Parked by the crew: the check failed ("two forges in one process keep their own error and refusal signals") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
This adds the settings-page card and the account token list names; the MCP and terminal doors from #2217 were already on
main, so I left them as they are. The earlier failure ("it speaks the protocol: … tools/list") was my own doing: I had addedproposal_token_mint,proposal_tokensandproposal_token_revokewhilemainalready had aproposal_tokenstool, so the tool list had a duplicate.I rebuilt the branch on
mainand dropped my MCP tools, terminal screen, action module and API changes.Type-check is clean. The new page test,
test/mcp.test.tsand the proposal-token and token suites pass (59 tests). I did not run the whole suite.What the pull adds
src/web/pages/proposal_tokens.ts). It lists your tokens for the repository by child, with Revoke on each, and has a mint form (child, origin, optional child repository). The card callsmintProposalandrevokeProposalfromsrc/actions/proposal_tokens.ts.…/settings/proposal-tokensand…/settings/proposal-tokens/:id/delete./settings/tokensnow shows "child X · origin" under a proposal token's name, via a smallproposalsByTokenhelper insrc/core/proposal_token.ts. Revoking from that list already worked.test/proposal-token-page.test.tscovers minting and revoking from the page, the account list, cross-origin and anonymous POSTs creating nothing, and a reader (or an ordinary token) being refused.What I left out
GETandDELETEroutes for the API, sincemainalready covers list and revoke through MCP.To try it: open
/<owner>/<repo>/settingsas an admin and mint a token for a child, then look at/settings/tokens.Closes #2187