@@ -13,8 +13,8 @@ import (
13
13
"github.com/mark3labs/mcp-go/server"
14
14
)
15
15
16
- // listCommits creates a tool to get commits of a branch in a repository.
17
- func listCommits (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
16
+ // ListCommits creates a tool to get commits of a branch in a repository.
17
+ func ListCommits (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
18
18
return mcp .NewTool ("list_commits" ,
19
19
mcp .WithDescription (t ("TOOL_LIST_COMMITS_DESCRIPTION" , "Get list of commits of a branch in a GitHub repository" )),
20
20
mcp .WithString ("owner" ,
@@ -79,8 +79,8 @@ func listCommits(client *github.Client, t translations.TranslationHelperFunc) (t
79
79
}
80
80
}
81
81
82
- // createOrUpdateFile creates a tool to create or update a file in a GitHub repository.
83
- func createOrUpdateFile (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
82
+ // CreateOrUpdateFile creates a tool to create or update a file in a GitHub repository.
83
+ func CreateOrUpdateFile (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
84
84
return mcp .NewTool ("create_or_update_file" ,
85
85
mcp .WithDescription (t ("TOOL_CREATE_OR_UPDATE_FILE_DESCRIPTION" , "Create or update a single file in a GitHub repository" )),
86
86
mcp .WithString ("owner" ,
@@ -180,8 +180,8 @@ func createOrUpdateFile(client *github.Client, t translations.TranslationHelperF
180
180
}
181
181
}
182
182
183
- // createRepository creates a tool to create a new GitHub repository.
184
- func createRepository (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
183
+ // CreateRepository creates a tool to create a new GitHub repository.
184
+ func CreateRepository (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
185
185
return mcp .NewTool ("create_repository" ,
186
186
mcp .WithDescription (t ("TOOL_CREATE_REPOSITORY_DESCRIPTION" , "Create a new GitHub repository in your account" )),
187
187
mcp .WithString ("name" ,
@@ -246,8 +246,8 @@ func createRepository(client *github.Client, t translations.TranslationHelperFun
246
246
}
247
247
}
248
248
249
- // getFileContents creates a tool to get the contents of a file or directory from a GitHub repository.
250
- func getFileContents (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
249
+ // GetFileContents creates a tool to get the contents of a file or directory from a GitHub repository.
250
+ func GetFileContents (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
251
251
return mcp .NewTool ("get_file_contents" ,
252
252
mcp .WithDescription (t ("TOOL_GET_FILE_CONTENTS_DESCRIPTION" , "Get the contents of a file or directory from a GitHub repository" )),
253
253
mcp .WithString ("owner" ,
@@ -315,8 +315,8 @@ func getFileContents(client *github.Client, t translations.TranslationHelperFunc
315
315
}
316
316
}
317
317
318
- // forkRepository creates a tool to fork a repository.
319
- func forkRepository (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
318
+ // ForkRepository creates a tool to fork a repository.
319
+ func ForkRepository (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
320
320
return mcp .NewTool ("fork_repository" ,
321
321
mcp .WithDescription (t ("TOOL_FORK_REPOSITORY_DESCRIPTION" , "Fork a GitHub repository to your account or specified organization" )),
322
322
mcp .WithString ("owner" ,
@@ -378,8 +378,8 @@ func forkRepository(client *github.Client, t translations.TranslationHelperFunc)
378
378
}
379
379
}
380
380
381
- // createBranch creates a tool to create a new branch.
382
- func createBranch (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
381
+ // CreateBranch creates a tool to create a new branch.
382
+ func CreateBranch (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
383
383
return mcp .NewTool ("create_branch" ,
384
384
mcp .WithDescription (t ("TOOL_CREATE_BRANCH_DESCRIPTION" , "Create a new branch in a GitHub repository" )),
385
385
mcp .WithString ("owner" ,
@@ -458,8 +458,8 @@ func createBranch(client *github.Client, t translations.TranslationHelperFunc) (
458
458
}
459
459
}
460
460
461
- // pushFiles creates a tool to push multiple files in a single commit to a GitHub repository.
462
- func pushFiles (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
461
+ // PushFiles creates a tool to push multiple files in a single commit to a GitHub repository.
462
+ func PushFiles (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
463
463
return mcp .NewTool ("push_files" ,
464
464
mcp .WithDescription (t ("TOOL_PUSH_FILES_DESCRIPTION" , "Push multiple files to a GitHub repository in a single commit" )),
465
465
mcp .WithString ("owner" ,
@@ -601,8 +601,8 @@ func pushFiles(client *github.Client, t translations.TranslationHelperFunc) (too
601
601
}
602
602
}
603
603
604
- // listBranches creates a tool to list branches in a repository.
605
- func listBranches (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
604
+ // ListBranches creates a tool to list branches in a repository.
605
+ func ListBranches (client * github.Client , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
606
606
return mcp .NewTool ("list_branches" ,
607
607
mcp .WithDescription (t ("TOOL_LIST_BRANCHES_DESCRIPTION" , "List branches in a GitHub repository" )),
608
608
mcp .WithString ("owner" ,
0 commit comments