feat: add organization management tools (CRUD, membership, teams) #94

Merged
goern merged 0 commits from feature/org-management into main 2026-03-20 16:59:40 +00:00
goern commented 2026-03-20 07:25:33 +00:00 (Migrated from codeberg.org)

Summary

Closes #92

  • Add 15 new MCP tools in the org domain: organization CRUD (create, get, list, edit, delete), membership management (list members, check membership, remove member), and team operations (list teams, create team, add/remove team members, add/remove team repos)
  • Wire up operation/org/ package with registration in operation.go and cmd/cli.go for both MCP and CLI modes
  • Include unit tests with mock HTTP servers for all 15 tools, plus a showboat demo with live CLI and MCP stdio examples

New tools

Category Tools
Org CRUD create_org, get_org, list_my_orgs, list_user_orgs, edit_org, delete_org
Membership list_org_members, check_org_membership, remove_org_member
Teams list_org_teams, create_org_team, add_team_member, remove_team_member, add_team_repo, remove_team_repo

Test plan

  • Unit tests pass: go test ./operation/org/...
  • Full test suite passes: go test ./...
  • make build succeeds
  • All 15 org tools visible in --cli list under ORG domain
  • Parameter schemas verified via --cli create_org --help
  • Live demo against codeberg.org in demos/org-management.md
## Summary Closes #92 - Add 15 new MCP tools in the `org` domain: organization CRUD (create, get, list, edit, delete), membership management (list members, check membership, remove member), and team operations (list teams, create team, add/remove team members, add/remove team repos) - Wire up `operation/org/` package with registration in `operation.go` and `cmd/cli.go` for both MCP and CLI modes - Include unit tests with mock HTTP servers for all 15 tools, plus a showboat demo with live CLI and MCP stdio examples ## New tools | Category | Tools | |----------|-------| | Org CRUD | `create_org`, `get_org`, `list_my_orgs`, `list_user_orgs`, `edit_org`, `delete_org` | | Membership | `list_org_members`, `check_org_membership`, `remove_org_member` | | Teams | `list_org_teams`, `create_org_team`, `add_team_member`, `remove_team_member`, `add_team_repo`, `remove_team_repo` | ## Test plan - [x] Unit tests pass: `go test ./operation/org/...` - [x] Full test suite passes: `go test ./...` - [x] `make build` succeeds - [x] All 15 org tools visible in `--cli list` under ORG domain - [x] Parameter schemas verified via `--cli create_org --help` - [x] Live demo against codeberg.org in `demos/org-management.md`
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
agentic-forges/forgejo-mcp!94
No description provided.