@@ -13,8 +13,8 @@ import (
1313 "github.com/mark3labs/mcp-go/server"
1414)
1515
16- // getPullRequest creates a tool to get details of a specific pull request.
17- func getPullRequest (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
16+ // GetPullRequest creates a tool to get details of a specific pull request.
17+ func GetPullRequest (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
1818 return mcp .NewTool ("get_pull_request" ,
1919 mcp .WithDescription (t ("TOOL_GET_PULL_REQUEST_DESCRIPTION" , "Get details of a specific pull request" )),
2020 mcp .WithString ("owner" ,
@@ -67,8 +67,8 @@ func getPullRequest(client *github.Client, t translations.TranslationHelperFunc)
6767 }
6868}
6969
70- // listPullRequests creates a tool to list and filter repository pull requests.
71- func listPullRequests (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
70+ // ListPullRequests creates a tool to list and filter repository pull requests.
71+ func ListPullRequests (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
7272 return mcp .NewTool ("list_pull_requests" ,
7373 mcp .WithDescription (t ("TOOL_LIST_PULL_REQUESTS_DESCRIPTION" , "List and filter repository pull requests" )),
7474 mcp .WithString ("owner" ,
@@ -165,8 +165,8 @@ func listPullRequests(client *github.Client, t translations.TranslationHelperFun
165165 }
166166}
167167
168- // mergePullRequest creates a tool to merge a pull request.
169- func mergePullRequest (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
168+ // MergePullRequest creates a tool to merge a pull request.
169+ func MergePullRequest (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
170170 return mcp .NewTool ("merge_pull_request" ,
171171 mcp .WithDescription (t ("TOOL_MERGE_PULL_REQUEST_DESCRIPTION" , "Merge a pull request" )),
172172 mcp .WithString ("owner" ,
@@ -245,8 +245,8 @@ func mergePullRequest(client *github.Client, t translations.TranslationHelperFun
245245 }
246246}
247247
248- // getPullRequestFiles creates a tool to get the list of files changed in a pull request.
249- func getPullRequestFiles (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
248+ // GetPullRequestFiles creates a tool to get files in a pull request.
249+ func GetPullRequestFiles (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
250250 return mcp .NewTool ("get_pull_request_files" ,
251251 mcp .WithDescription (t ("TOOL_GET_PULL_REQUEST_FILES_DESCRIPTION" , "Get the list of files changed in a pull request" )),
252252 mcp .WithString ("owner" ,
@@ -300,8 +300,8 @@ func getPullRequestFiles(client *github.Client, t translations.TranslationHelper
300300 }
301301}
302302
303- // getPullRequestStatus creates a tool to get the combined status of all status checks for a pull request.
304- func getPullRequestStatus (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
303+ // GetPullRequestStatus creates a tool to get the status of a pull request.
304+ func GetPullRequestStatus (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
305305 return mcp .NewTool ("get_pull_request_status" ,
306306 mcp .WithDescription (t ("TOOL_GET_PULL_REQUEST_STATUS_DESCRIPTION" , "Get the combined status of all status checks for a pull request" )),
307307 mcp .WithString ("owner" ,
@@ -369,8 +369,8 @@ func getPullRequestStatus(client *github.Client, t translations.TranslationHelpe
369369 }
370370}
371371
372- // updatePullRequestBranch creates a tool to update a pull request branch with the latest changes from the base branch.
373- func updatePullRequestBranch (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
372+ // UpdatePullRequestBranch creates a tool to update a pull request branch.
373+ func UpdatePullRequestBranch (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
374374 return mcp .NewTool ("update_pull_request_branch" ,
375375 mcp .WithDescription (t ("TOOL_UPDATE_PULL_REQUEST_BRANCH_DESCRIPTION" , "Update a pull request branch with the latest changes from the base branch" )),
376376 mcp .WithString ("owner" ,
@@ -439,8 +439,8 @@ func updatePullRequestBranch(client *github.Client, t translations.TranslationHe
439439 }
440440}
441441
442- // getPullRequestComments creates a tool to get the review comments on a pull request.
443- func getPullRequestComments (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
442+ // GetPullRequestComments creates a tool to get comments on a pull request.
443+ func GetPullRequestComments (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
444444 return mcp .NewTool ("get_pull_request_comments" ,
445445 mcp .WithDescription (t ("TOOL_GET_PULL_REQUEST_COMMENTS_DESCRIPTION" , "Get the review comments on a pull request" )),
446446 mcp .WithString ("owner" ,
@@ -499,8 +499,8 @@ func getPullRequestComments(client *github.Client, t translations.TranslationHel
499499 }
500500}
501501
502- // getPullRequestReviews creates a tool to get the reviews on a pull request.
503- func getPullRequestReviews (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
502+ // GetPullRequestReviews creates a tool to get reviews on a pull request.
503+ func GetPullRequestReviews (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
504504 return mcp .NewTool ("get_pull_request_reviews" ,
505505 mcp .WithDescription (t ("TOOL_GET_PULL_REQUEST_REVIEWS_DESCRIPTION" , "Get the reviews on a pull request" )),
506506 mcp .WithString ("owner" ,
@@ -553,8 +553,8 @@ func getPullRequestReviews(client *github.Client, t translations.TranslationHelp
553553 }
554554}
555555
556- // createPullRequestReview creates a tool to submit a review on a pull request.
557- func createPullRequestReview (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
556+ // CreatePullRequestReview creates a tool to create a review on a pull request.
557+ func CreatePullRequestReview (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
558558 return mcp .NewTool ("create_pull_request_review" ,
559559 mcp .WithDescription (t ("TOOL_CREATE_PULL_REQUEST_REVIEW_DESCRIPTION" , "Create a review on a pull request" )),
560560 mcp .WithString ("owner" ,
@@ -745,8 +745,8 @@ func createPullRequestReview(client *github.Client, t translations.TranslationHe
745745 }
746746}
747747
748- // createPullRequest creates a tool to create a new pull request.
749- func createPullRequest (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
748+ // CreatePullRequest creates a tool to create a new pull request.
749+ func CreatePullRequest (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
750750 return mcp .NewTool ("create_pull_request" ,
751751 mcp .WithDescription (t ("TOOL_CREATE_PULL_REQUEST_DESCRIPTION" , "Create a new pull request in a GitHub repository" )),
752752 mcp .WithString ("owner" ,
0 commit comments