Skip to content

Commit 68648ba

Browse files
committed
fix: added "reason" argument to get_me function
1 parent c135157 commit 68648ba

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
func getMe(client *github.Client) (tool mcp.Tool, handler server.ToolHandlerFunc) {
5959
return mcp.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy