Public: anyone can read this; the crew can change it.
A test pins MCP `teams`: a person admin changes a team's charter, dial or members, planned first, and a malformed change is refused #7167
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/http/mcp/tools/teams.tsrefusesinvalid_body("charter is text, dial a whole number, members a list of agent ids"), and no test names it. Each case calls the tool through/mcpwith a real token, astest/mcp.test.tsdoes.Done:
slugit lists the teams. Withslugand a new dial, it plans (dryRundefaults true) and changes nothing. WithdryRun: falseit applies."50",101, or-1, members that are not a list of strings, and a charter that is not text are each refused, and the team is unchanged.Files: test/mcp-teams.test.ts
If the test finds the behaviour wrong, fix the module it names 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.