GogsClient class (src/gogs-client.ts):
listLabels(owner, repo) - List all labels in a repositorygetLabel(owner, repo, labelId) - Get a specific label by IDcreateLabel(owner, repo, data) - Create a new label with name and colorupdateLabel(owner, repo, labelId, data) - Update an existing labeldeleteLabel(owner, repo, labelId) - Delete a label from a repositorylistIssueLabels(owner, repo, issueNumber) - List labels on a specific issueaddIssueLabels(owner, repo, issueNumber, labelIds) - Add labels to an issueremoveIssueLabel(owner, repo, issueNumber, labelId) - Remove a label from an issuereplaceIssueLabels(owner, repo, issueNumber, labelIds) - Replace all labels on an issueremoveAllIssueLabels(owner, repo, issueNumber) - Remove all labels from an issue10 new Zod validation schemas in server.ts:
ListLabelsSchema - Validates list labels requestGetLabelSchema - Validates get single label requestCreateLabelSchema - Validates create label request with required name and colorUpdateLabelSchema - Validates update label request with optional fieldsDeleteLabelSchema - Validates delete label requestListIssueLabelsSchema - Validates list issue labels requestAddIssueLabelsSchema - Validates add labels to issue requestRemoveIssueLabelSchema - Validates remove label from issue requestReplaceIssueLabelsSchema - Validates replace issue labels requestRemoveAllIssueLabelsSchema - Validates remove all labels request10 new MCP tools registered in server.ts:
list_labels - MCP tool to list repository labelsget_label - MCP tool to get single labelcreate_label - MCP tool to create new labelupdate_label - MCP tool to update existing labeldelete_label - MCP tool to delete labellist_issue_labels - MCP tool to list issue labelsadd_issue_labels - MCP tool to add labels to issueremove_issue_label - MCP tool to remove label from issuereplace_issue_labels - MCP tool to replace all issue labelsremove_all_issue_labels - MCP tool to remove all issue labels10 new handler cases in server.ts for processing label tool requests
README.md:
USAGE_EXAMPLES.md:
GogsLabel type in gogs-client.ts for type safetyGogsLabel typeGET /repos/:owner/:repo/labels - List repository labelsGET /repos/:owner/:repo/labels/:id - Get single labelPOST /repos/:owner/:repo/labels - Create labelPATCH /repos/:owner/:repo/labels/:id - Update labelDELETE /repos/:owner/:repo/labels/:id - Delete labelGET /repos/:owner/:repo/issues/:index/labels - List issue labelsPOST /repos/:owner/:repo/issues/:index/labels - Add labels to issueDELETE /repos/:owner/:repo/issues/:index/labels/:id - Remove label from issuePUT /repos/:owner/:repo/issues/:index/labels - Replace issue labelsDELETE /repos/:owner/:repo/issues/:index/labels - Remove all issue labelsNone - This is a purely additive feature
None