[Sprint 01] feat: Implement Gitea label operations tools #4

Closed
opened 2026-02-03 19:40:25 +00:00 by lmiranda · 2 comments
Owner

Implement MCP tools for Gitea label operations (list, create).

Acceptance Criteria:

  • Implement gitea_list_labels() - returns all repo labels
  • Implement gitea_create_label(name, color, description)
  • Validate color format (#RRGGBB)
  • Handle duplicate label errors gracefully
  • Return structured label data (id, name, color, description)

Gitea API Endpoints:

  • GET /repos/{owner}/{repo}/labels
  • POST /repos/{owner}/{repo}/labels

Blocked By: #2

Implement MCP tools for Gitea label operations (list, create). **Acceptance Criteria:** - [ ] Implement gitea_list_labels() - returns all repo labels - [ ] Implement gitea_create_label(name, color, description) - [ ] Validate color format (#RRGGBB) - [ ] Handle duplicate label errors gracefully - [ ] Return structured label data (id, name, color, description) **Gitea API Endpoints:** - GET /repos/{owner}/{repo}/labels - POST /repos/{owner}/{repo}/labels **Blocked By:** #2
Author
Owner

⚠️ Blocked By: #2

⚠️ **Blocked By:** #2
Author
Owner

✓ Implementation complete on branch feat/3-issue-tools

Completed:

  • Implemented gitea_list_labels() - returns all repository labels
  • Implemented gitea_create_label(name, color, description)
  • Added color format validation (#RRGGBB)
  • Handle duplicate label errors gracefully
  • Return structured label data (id, name, color, description)

Gitea API Endpoints Used:

  • GET /repos/{owner}/{repo}/labels
  • POST /repos/{owner}/{repo}/labels

Files Created:

  • src/gitea_mcp/tools/labels.py

All acceptance criteria met. Label operations tools ready for use.

✓ Implementation complete on branch `feat/3-issue-tools` ## Completed: - Implemented gitea_list_labels() - returns all repository labels - Implemented gitea_create_label(name, color, description) - Added color format validation (#RRGGBB) - Handle duplicate label errors gracefully - Return structured label data (id, name, color, description) ## Gitea API Endpoints Used: - GET /repos/{owner}/{repo}/labels - POST /repos/{owner}/{repo}/labels ## Files Created: - src/gitea_mcp/tools/labels.py All acceptance criteria met. Label operations tools ready for use.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/gitea-mcp-remote#4