Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit031dd74

Browse files
juruenCopilot
andauthored
change some descriptions (#23)
* change some descriptions* Update pkg/github/repositories.goCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>---------Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent35bc5f6 commit031dd74

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
funcaddIssueComment(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
6262
returnmcp.NewTool("add_issue_comment",
63-
mcp.WithDescription("Add a comment to an issue"),
63+
mcp.WithDescription("Add a comment to anexistingissue"),
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
funcsearchIssues(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
116116
returnmcp.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
funclistCommits(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
1818
returnmcp.NewTool("list_commits",
19-
mcp.WithDescription("Getscommits of a branch in a repository"),
19+
mcp.WithDescription("Get list ofcommits 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
funccreateOrUpdateFile(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
8787
returnmcp.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 aGitHubrepository"),
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
funccreateRepository(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
166166
returnmcp.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
funcgetFileContents(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
229229
returnmcp.NewTool("get_file_contents",
230-
mcp.WithDescription("Get contents of a file or directory"),
230+
mcp.WithDescription("Getthecontents 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
funcforkRepository(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
289289
returnmcp.NewTool("fork_repository",
290-
mcp.WithDescription("Fork a repository"),
290+
mcp.WithDescription("Fork aGitHubrepository 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
funccreateBranch(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
346346
returnmcp.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
funcgetMe(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
7474
returnmcp.NewTool("get_me",
75-
mcp.WithDescription("Get details of the authenticated user."),
75+
mcp.WithDescription("Get details of the authenticatedGitHubuser"),
7676
mcp.WithString("reason",
7777
mcp.Description("Optional: reason the session was created"),
7878
),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp