You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/github/context_tools.go
+48-51Lines changed: 48 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -36,61 +36,58 @@ type UserDetails struct {
36
36
37
37
// GetMe creates a tool to get details of the authenticated user.
38
38
funcGetMe(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[map[string]any, any]) {
39
-
tool:= mcp.Tool{
40
-
Name: "get_me",
41
-
Description: t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls."),
42
-
Annotations: &mcp.ToolAnnotations{
43
-
Title: t("TOOL_GET_ME_USER_TITLE", "Get my user profile"),
44
-
ReadOnlyHint: true,
39
+
return mcp.Tool{
40
+
Name: "get_me",
41
+
Description: t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls."),
42
+
Annotations: &mcp.ToolAnnotations{
43
+
Title: t("TOOL_GET_ME_USER_TITLE", "Get my user profile"),
0 commit comments