Public: anyone can read this; the crew can change it.

MCP `org_create`: make an organization, with the same rules as POST /api/v1/orgs #5329

shipped production is serving it opened this has it
opened this

Split from #4797: the write half.

Done:

  • [ ] A tool org_create with name (and the optional fields POST /api/v1/orgs takes) calls createOrg (src/actions/orgs.ts), so a taken or invalid name is refused with the API's words.
  • [ ] One row in docs/MCP.md beside orgs.
  • [ ] test/mcp-orgs.test.ts gains: a person creates an org and reads it back through orgs; a taken name and an invalid name are refused. Each fails without the tool.
  • [ ] Run test/mcp-orgs.test.ts and test/mcp-size.test.ts before pushing.

Files: src/http/mcp.ts, docs/MCP.md, test/mcp-orgs.test.ts. Risk: the size cap again; one short sentence.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs