feat(org): add MCP tools for organization-level labels (list/create/edit/delete) (#99) #102

Merged
appleboy merged 1 commits from dwichers/gitea-mcp:feat/org-label-tools into main 2025-10-20 01:43:40 +00:00
Contributor

This PR adds full support for managing organization-level labels via MCP. It uses the newly added SDK APIs now available on main branch, see gitea/go-sdk#732.

Registers following tools under label module and wires them into the MCP server as read/write tools:

  • list_org_labels: list labels defined at the organization level (pagination supported)
  • create_org_label: create a label in an organization (name, color, description, exclusive)
  • edit_org_label: edit an organization label (name, color, description, exclusive)
  • delete_org_label: delete an organization label by ID

Dependency note:
go.mod/go.sum updated to use the SDK main branch pseudo-version that includes the org-label APIs.

If you prefer to merge only after a tagged SDK release, I can bump the dependency to the new tag as soon as it’s available.

Thanks for considering!

This PR adds full support for managing organization-level labels via MCP. It uses the newly added SDK APIs now available on main branch, see https://gitea.com/gitea/go-sdk/issues/732. Registers following tools under label module and wires them into the MCP server as read/write tools: - list_org_labels: list labels defined at the organization level (pagination supported) - create_org_label: create a label in an organization (name, color, description, exclusive) - edit_org_label: edit an organization label (name, color, description, exclusive) - delete_org_label: delete an organization label by ID Dependency note: go.mod/go.sum updated to use the SDK main branch pseudo-version that includes the org-label APIs. If you prefer to merge only after a tagged SDK release, I can bump the dependency to the new tag as soon as it’s available. Thanks for considering!
dwichers added 1 commit 2025-10-19 00:45:46 +00:00
feat: add org-level label tools (list/create/edit/delete) (#99)
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 18s
check-and-test / Run govulncheck (pull_request) Successful in 21s
471f1cb7dc
appleboy approved these changes 2025-10-20 01:43:12 +00:00
appleboy changed title from Add MCP tools for organization-level labels (list/create/edit/delete) (#99) to feat(org): add MCP tools for organization-level labels (list/create/edit/delete) (#99) 2025-10-20 01:43:32 +00:00
appleboy merged commit f6b45fdf6e into main 2025-10-20 01:43:40 +00:00
appleboy deleted branch feat/org-label-tools 2025-10-20 01:43:40 +00:00
Sign in to join this conversation.
No description provided.