@@ -14,8 +14,8 @@ import (
14
14
"github.com/mark3labs/mcp-go/server"
15
15
)
16
16
17
- // getIssue creates a tool to get details of a specific issue in a GitHub repository.
18
- func getIssue (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
17
+ // GetIssue creates a tool to get details of a specific issue in a GitHub repository.
18
+ func GetIssue (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
19
19
return mcp .NewTool ("get_issue" ,
20
20
mcp .WithDescription (t ("TOOL_GET_ISSUE_DESCRIPTION" , "Get details of a specific issue in a GitHub repository." )),
21
21
mcp .WithString ("owner" ,
@@ -68,8 +68,8 @@ func getIssue(client *github.Client, t translations.TranslationHelperFunc) (tool
68
68
}
69
69
}
70
70
71
- // addIssueComment creates a tool to add a comment to an issue.
72
- func addIssueComment (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
71
+ // AddIssueComment creates a tool to add a comment to an issue.
72
+ func AddIssueComment (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
73
73
return mcp .NewTool ("add_issue_comment" ,
74
74
mcp .WithDescription (t ("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION" , "Add a comment to an existing issue" )),
75
75
mcp .WithString ("owner" ,
@@ -134,8 +134,8 @@ func addIssueComment(client *github.Client, t translations.TranslationHelperFunc
134
134
}
135
135
}
136
136
137
- // searchIssues creates a tool to search for issues and pull requests.
138
- func searchIssues (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
137
+ // SearchIssues creates a tool to search for issues and pull requests.
138
+ func SearchIssues (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
139
139
return mcp .NewTool ("search_issues" ,
140
140
mcp .WithDescription (t ("TOOL_SEARCH_ISSUES_DESCRIPTION" , "Search for issues and pull requests across GitHub repositories" )),
141
141
mcp .WithString ("q" ,
@@ -214,8 +214,8 @@ func searchIssues(client *github.Client, t translations.TranslationHelperFunc) (
214
214
}
215
215
}
216
216
217
- // createIssue creates a tool to create a new issue in a GitHub repository.
218
- func createIssue (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
217
+ // CreateIssue creates a tool to create a new issue in a GitHub repository.
218
+ func CreateIssue (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
219
219
return mcp .NewTool ("create_issue" ,
220
220
mcp .WithDescription (t ("TOOL_CREATE_ISSUE_DESCRIPTION" , "Create a new issue in a GitHub repository" )),
221
221
mcp .WithString ("owner" ,
@@ -328,8 +328,8 @@ func createIssue(client *github.Client, t translations.TranslationHelperFunc) (t
328
328
}
329
329
}
330
330
331
- // listIssues creates a tool to list and filter repository issues
332
- func listIssues (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
331
+ // ListIssues creates a tool to list and filter repository issues
332
+ func ListIssues (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
333
333
return mcp .NewTool ("list_issues" ,
334
334
mcp .WithDescription (t ("TOOL_LIST_ISSUES_DESCRIPTION" , "List issues in a GitHub repository with filtering options" )),
335
335
mcp .WithString ("owner" ,
@@ -442,8 +442,8 @@ func listIssues(client *github.Client, t translations.TranslationHelperFunc) (to
442
442
}
443
443
}
444
444
445
- // updateIssue creates a tool to update an existing issue in a GitHub repository.
446
- func updateIssue (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
445
+ // UpdateIssue creates a tool to update an existing issue in a GitHub repository.
446
+ func UpdateIssue (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
447
447
return mcp .NewTool ("update_issue" ,
448
448
mcp .WithDescription (t ("TOOL_UPDATE_ISSUE_DESCRIPTION" , "Update an existing issue in a GitHub repository" )),
449
449
mcp .WithString ("owner" ,
@@ -580,8 +580,8 @@ func updateIssue(client *github.Client, t translations.TranslationHelperFunc) (t
580
580
}
581
581
}
582
582
583
- // getIssueComments creates a tool to get comments for a GitHub issue.
584
- func getIssueComments (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
583
+ // GetIssueComments creates a tool to get comments for a GitHub issue.
584
+ func GetIssueComments (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
585
585
return mcp .NewTool ("get_issue_comments" ,
586
586
mcp .WithDescription (t ("TOOL_GET_ISSUE_COMMENTS_DESCRIPTION" , "Get comments for a GitHub issue" )),
587
587
mcp .WithString ("owner" ,
0 commit comments