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

Commit62b20f7

Browse files
committed
fix: added "reason" argument to get_me function
1 parentc135157 commit62b20f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎pkg/github/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func NewServer(client *github.Client) *server.MCPServer {
5858
funcgetMe(client*github.Client) (tool mcp.Tool,handler server.ToolHandlerFunc) {
5959
returnmcp.NewTool("get_me",
6060
mcp.WithDescription("Get details of the authenticated user."),
61+
mcp.WithString("reason",
62+
mcp.Description("Optional: reason the session was created"),
63+
),
6164
),
6265
func(ctx context.Context,request mcp.CallToolRequest) (*mcp.CallToolResult,error) {
6366
user,resp,err:=client.Users.Get(ctx,"")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp