Skip to content

Commit 031dd74

Browse files
juruenCopilot
andauthored
change some descriptions (#23)
* change some descriptions * Update pkg/github/repositories.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 35bc5f6 commit 031dd74

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

pkg/github/issues.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func getIssue(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerF
6060
// addIssueComment creates a tool to add a comment to an issue.
6161
func addIssueComment(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
6262
return mcp.NewTool("add_issue_comment",
63-
mcp.WithDescription("Add a comment to an issue"),
63+
mcp.WithDescription("Add a comment to an existing issue"),
6464
mcp.WithString("owner",
6565
mcp.Required(),
6666
mcp.Description("Repository owner"),
@@ -114,7 +114,7 @@ func addIssueComment(client *github.Client) (tool mcp.Tool, handler server.ToolH
114114
// searchIssues creates a tool to search for issues and pull requests.
115115
func searchIssues(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
116116
return mcp.NewTool("search_issues",
117-
mcp.WithDescription("Search for issues and pull requests"),
117+
mcp.WithDescription("Search for issues and pull requests across GitHub repositories"),
118118
mcp.WithString("q",
119119
mcp.Required(),
120120
mcp.Description("Search query using GitHub issues search syntax"),

pkg/github/repositories.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
// listCommits creates a tool to get commits of a branch in a repository.
1717
func listCommits(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
1818
return mcp.NewTool("list_commits",
19-
mcp.WithDescription("Gets commits of a branch in a repository"),
19+
mcp.WithDescription("Get list of commits of a branch in a GitHub repository"),
2020
mcp.WithString("owner",
2121
mcp.Required(),
2222
mcp.Description("Repository owner"),
@@ -85,7 +85,7 @@ func listCommits(client *github.Client) (tool mcp.Tool, handler server.ToolHandl
8585
// createOrUpdateFile creates a tool to create or update a file in a GitHub repository.
8686
func createOrUpdateFile(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
8787
return mcp.NewTool("create_or_update_file",
88-
mcp.WithDescription("Create or update a single file in a repository"),
88+
mcp.WithDescription("Create or update a single file in a GitHub repository"),
8989
mcp.WithString("owner",
9090
mcp.Required(),
9191
mcp.Description("Repository owner (username or organization)"),
@@ -164,7 +164,7 @@ func createOrUpdateFile(client *github.Client) (tool mcp.Tool, handler server.To
164164
// createRepository creates a tool to create a new GitHub repository.
165165
func createRepository(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
166166
return mcp.NewTool("create_repository",
167-
mcp.WithDescription("Create a new GitHub repository"),
167+
mcp.WithDescription("Create a new GitHub repository in your account"),
168168
mcp.WithString("name",
169169
mcp.Required(),
170170
mcp.Description("Repository name"),
@@ -227,7 +227,7 @@ func createRepository(client *github.Client) (tool mcp.Tool, handler server.Tool
227227
// getFileContents creates a tool to get the contents of a file or directory from a GitHub repository.
228228
func getFileContents(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
229229
return mcp.NewTool("get_file_contents",
230-
mcp.WithDescription("Get contents of a file or directory"),
230+
mcp.WithDescription("Get the contents of a file or directory from a GitHub repository"),
231231
mcp.WithString("owner",
232232
mcp.Required(),
233233
mcp.Description("Repository owner (username or organization)"),
@@ -287,7 +287,7 @@ func getFileContents(client *github.Client) (tool mcp.Tool, handler server.ToolH
287287
// forkRepository creates a tool to fork a repository.
288288
func forkRepository(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
289289
return mcp.NewTool("fork_repository",
290-
mcp.WithDescription("Fork a repository"),
290+
mcp.WithDescription("Fork a GitHub repository to your account or specified organization"),
291291
mcp.WithString("owner",
292292
mcp.Required(),
293293
mcp.Description("Repository owner"),
@@ -344,7 +344,7 @@ func forkRepository(client *github.Client) (tool mcp.Tool, handler server.ToolHa
344344
// createBranch creates a tool to create a new branch.
345345
func createBranch(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
346346
return mcp.NewTool("create_branch",
347-
mcp.WithDescription("Create a new branch"),
347+
mcp.WithDescription("Create a new branch in a GitHub repository"),
348348
mcp.WithString("owner",
349349
mcp.Required(),
350350
mcp.Description("Repository owner"),

pkg/github/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func NewServer(client *github.Client) *server.MCPServer {
7272
// getMe creates a tool to get details of the authenticated user.
7373
func getMe(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
7474
return mcp.NewTool("get_me",
75-
mcp.WithDescription("Get details of the authenticated user."),
75+
mcp.WithDescription("Get details of the authenticated GitHub user"),
7676
mcp.WithString("reason",
7777
mcp.Description("Optional: reason the session was created"),
7878
),

0 commit comments

Comments
 (0)