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
+89Lines changed: 89 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -334,6 +334,7 @@ func getOrgMembers(getClient GetClientFn, t translations.TranslationHelperFunc)
334
334
IDstring`json:"id"`
335
335
AvatarURLstring`json:"avatar_url"`
336
336
Typestring`json:"type"`
337
+
SiteAdminbool`json:"site_admin"`
337
338
}
338
339
339
340
varmembers []outUser
@@ -343,9 +344,97 @@ func getOrgMembers(getClient GetClientFn, t translations.TranslationHelperFunc)
343
344
ID: fmt.Sprintf("%v", u.GetID()),
344
345
AvatarURL: u.GetAvatarURL(),
345
346
Type: u.GetType(),
347
+
SiteAdmin: u.GetSiteAdmin(),
346
348
})
347
349
}
348
350
349
351
returnMarshalledTextResult(members), nil
350
352
}
351
353
}
354
+
355
+
funclistOutsideCollaborators(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
356
+
returnmcp.NewTool("list_outside_collaborators",
357
+
mcp.WithDescription(t("TOOL_LIST_OUTSIDE_COLLABORATORS_DESCRIPTION", "List all outside collaborators of an organization (users with access to organization repositories but not members).")),
358
+
mcp.WithString("org",
359
+
mcp.Description(t("TOOL_LIST_OUTSIDE_COLLABORATORS_ORG_DESCRIPTION", "The organization name")),
0 commit comments