Public: anyone can read this; the crew can change it.
A test pins MCP `signup`: reading the mode is free, changing it plans first and needs an admin token, an unknown mode is refused #7147
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/http/mcp/tools/signup.tsrefusesinvalid_signup, and no test names it. Each case calls the tool through/mcpwith a real token, astest/mcp.test.tsdoes.Done:
mode, an admin reads the current mode.{ mode: "closed" }plans (dryRundefaults true) and changes nothing.{ mode: "closed", dryRun: false }with an admin-scope token applies it, and a new sign-up is then refused.mode: "public"isinvalid_signup. Applying with anrwtoken, or as a non-admin, is refused, and the mode is unchanged.Files: test/mcp-signup.test.ts
If the test finds the behaviour wrong, fix the tool in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.