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
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -92,18 +92,18 @@ func GetMe(getClient GetClientFn, t translations.TranslationHelperFunc) (mcp.Too
92
92
returntool, handler
93
93
}
94
94
95
-
funcGetTeams(getClientGetClientFn, getGQLClientGetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
96
-
typeTeamInfostruct {
97
-
Namestring`json:"name"`
98
-
Slugstring`json:"slug"`
99
-
Descriptionstring`json:"description"`
100
-
}
95
+
typeTeamInfostruct {
96
+
Namestring`json:"name"`
97
+
Slugstring`json:"slug"`
98
+
Descriptionstring`json:"description"`
99
+
}
101
100
102
-
typeOrganizationTeamsstruct {
103
-
Loginstring`json:"login"`
104
-
Teams []TeamInfo`json:"teams"`
105
-
}
101
+
typeOrganizationTeamsstruct {
102
+
Orgstring`json:"org"`
103
+
Teams []TeamInfo`json:"teams"`
104
+
}
106
105
106
+
funcGetTeams(getClientGetClientFn, getGQLClientGetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
107
107
returnmcp.NewTool("get_teams",
108
108
mcp.WithDescription(t("TOOL_GET_TEAMS_DESCRIPTION", "Get details of the teams the user is a member of. Limited to organizations accessible with current credentials")),
0 commit comments