Skip to content

Commit 872418b

Browse files
committed
feat: Update API URL for creating issues and bump version
Update the API URL to remove redundant repository parameter and bump version to 0.1.5.
1 parent 7a3b156 commit 872418b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

operations/issues/create_issue.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ var CreateIssueTool = func() mcp.Tool {
2626

2727
func CreateIssueHandleFunc(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
2828
owner := request.Params.Arguments["owner"].(string)
29-
repo := request.Params.Arguments["repo"].(string)
30-
apiUrl := fmt.Sprintf("/repos/%s/%s/issues", owner, repo)
29+
apiUrl := fmt.Sprintf("/repos/%s/issues", owner)
3130
giteeClient := utils.NewGiteeClient("POST", apiUrl, utils.WithPayload(request.Params.Arguments))
3231
issue := &types.BasicIssue{}
3332
return giteeClient.HandleMCPResult(issue)

utils/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package utils
22

33
var (
44
// Version gitee mcp server version
5-
Version = "0.1.4"
5+
Version = "0.1.5"
66
)

0 commit comments

Comments
 (0)