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

Commitda53838

Browse files
committed
Add documentation for initial Gist tools
1 parent569a8b7 commitda53838

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

‎README.md‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ The following sets of tools are available (all are on by default):
287287
|`dependabot`| Dependabot tools|
288288
|`discussions`| GitHub Discussions related tools|
289289
|`experiments`| Experimental features that are not considered stable yet|
290+
|`gists`| GitHub Gist related tools|
290291
|`issues`| GitHub Issues related tools|
291292
|`notifications`| GitHub Notifications related tools|
292293
|`orgs`| GitHub Organization related tools|
@@ -472,6 +473,30 @@ The following sets of tools are available (all are on by default):
472473

473474
<details>
474475

476+
<summary>Gists</summary>
477+
478+
-**create_gist** - Create Gist
479+
-`content`: Content for simple single-file gist creation (string, required)
480+
-`description`: Description of the gist (string, optional)
481+
-`filename`: Filename for simple single-file gist creation (string, required)
482+
-`public`: Whether the gist is public (boolean, optional)
483+
484+
-**list_gists** - List Gists
485+
-`page`: Page number for pagination (min 1) (number, optional)
486+
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
487+
-`since`: Only gists updated after this time (ISO 8601 timestamp) (string, optional)
488+
-`username`: GitHub username (omit for authenticated user's gists) (string, optional)
489+
490+
-**update_gist** - Update Gist
491+
-`content`: Content for the file (string, required)
492+
-`description`: Updated description of the gist (string, optional)
493+
-`filename`: Filename to update or create (string, required)
494+
-`gist_id`: ID of the gist to update (string, required)
495+
496+
</details>
497+
498+
<details>
499+
475500
<summary>Issues</summary>
476501

477502
-**add_issue_comment** - Add comment to issue
@@ -1048,4 +1073,4 @@ The exported Go API of this module should currently be considered unstable, and
10481073

10491074
##License
10501075

1051-
This project is licensed under the terms of the MIT open source license. Please refer to[MIT](./LICENSE) for the full terms.
1076+
This project is licensed under the terms of the MIT open source license. Please refer to[MIT](./LICENSE) for the full terms.

‎docs/remote-server.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Below is a table of available toolsets for the remote GitHub MCP Server. Each to
2525
| Dependabot| Dependabot tools|https://api.githubcopilot.com/mcp/x/dependabot|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/dependabot/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%2Freadonly%22%7D)|
2626
| Discussions| GitHub Discussions related tools|https://api.githubcopilot.com/mcp/x/discussions|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/discussions/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%2Freadonly%22%7D)|
2727
| Experiments| Experimental features that are not considered stable yet|https://api.githubcopilot.com/mcp/x/experiments|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/experiments/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%2Freadonly%22%7D)|
28+
| Gists| GitHub Gist related tools|https://api.githubcopilot.com/mcp/x/gists|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/gists/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%2Freadonly%22%7D)|
2829
| Issues| GitHub Issues related tools|https://api.githubcopilot.com/mcp/x/issues|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/issues/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%2Freadonly%22%7D)|
2930
| Notifications| GitHub Notifications related tools|https://api.githubcopilot.com/mcp/x/notifications|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-notifications&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fnotifications%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/notifications/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-notifications&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fnotifications%2Freadonly%22%7D)|
3031
| Organizations| GitHub Organization related tools|https://api.githubcopilot.com/mcp/x/orgs|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-orgs&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Forgs%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/orgs/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-orgs&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Forgs%2Freadonly%22%7D)|

‎pkg/github/gists.go‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import (
1717
funcListGists(getClientGetClientFn,t translations.TranslationHelperFunc) (tool mcp.Tool,handler server.ToolHandlerFunc) {
1818
returnmcp.NewTool("list_gists",
1919
mcp.WithDescription(t("TOOL_LIST_GISTS_DESCRIPTION","List gists for a user")),
20+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
21+
Title:t("TOOL_LIST_GISTS","List Gists"),
22+
ReadOnlyHint:ToBoolPtr(true),
23+
}),
2024
mcp.WithString("username",
2125
mcp.Description("GitHub username (omit for authenticated user's gists)"),
2226
),
@@ -89,6 +93,10 @@ func ListGists(getClient GetClientFn, t translations.TranslationHelperFunc) (too
8993
funcCreateGist(getClientGetClientFn,t translations.TranslationHelperFunc) (tool mcp.Tool,handler server.ToolHandlerFunc) {
9094
returnmcp.NewTool("create_gist",
9195
mcp.WithDescription(t("TOOL_CREATE_GIST_DESCRIPTION","Create a new gist")),
96+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
97+
Title:t("TOOL_CREATE_GIST","Create Gist"),
98+
ReadOnlyHint:ToBoolPtr(false),
99+
}),
92100
mcp.WithString("description",
93101
mcp.Description("Description of the gist"),
94102
),
@@ -170,6 +178,10 @@ func CreateGist(getClient GetClientFn, t translations.TranslationHelperFunc) (to
170178
funcUpdateGist(getClientGetClientFn,t translations.TranslationHelperFunc) (tool mcp.Tool,handler server.ToolHandlerFunc) {
171179
returnmcp.NewTool("update_gist",
172180
mcp.WithDescription(t("TOOL_UPDATE_GIST_DESCRIPTION","Update an existing gist")),
181+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
182+
Title:t("TOOL_UPDATE_GIST","Update Gist"),
183+
ReadOnlyHint:ToBoolPtr(false),
184+
}),
173185
mcp.WithString("gist_id",
174186
mcp.Required(),
175187
mcp.Description("ID of the gist to update"),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp