Content-Length: 267654 | pFad | http://github.com/github/github-mcp-server/pull/8/commits/68648ba8a57303838410d6ef8760d36a54a02421

45 fix: added `reason` argument to `get_me` function by toby · Pull Request #8 · github/github-mcp-server · GitHub
Skip to content

fix: added reason argument to get_me function #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: added "reason" argument to get_me function
  • Loading branch information
toby committed Mar 13, 2025
commit 68648ba8a57303838410d6ef8760d36a54a02421
3 changes: 3 additions & 0 deletions pkg/github/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/pull/8/commits/68648ba8a57303838410d6ef8760d36a54a02421

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy