Skip to content

Commit 62b20f7

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

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)