Content-Length: 939 | pFad | http://github.com/github/github-mcp-server/pull/8.patch
thub.com
From 68648ba8a57303838410d6ef8760d36a54a02421 Mon Sep 17 00:00:00 2001
From: Toby Padilla
Date: Thu, 13 Mar 2025 16:44:26 -0600
Subject: [PATCH] fix: added "reason" argument to get_me function
---
pkg/github/server.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pkg/github/server.go b/pkg/github/server.go
index 2c0f3a05e..e780c8e74 100644
--- a/pkg/github/server.go
+++ b/pkg/github/server.go
@@ -58,6 +58,9 @@ func NewServer(client *github.Client) *server.MCPServer {
func getMe(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
return mcp.NewTool("get_me",
mcp.WithDescription("Get details of the authenticated user."),
+ mcp.WithString("reason",
+ mcp.Description("Optional: reason the session was created"),
+ ),
),
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
user, resp, err := client.Users.Get(ctx, "")
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/github/github-mcp-server/pull/8.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy