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/notifications.go
+31-28Lines changed: 31 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -25,41 +25,39 @@ const (
25
25
26
26
// ListNotifications creates a tool to list notifications for the current user.
27
27
funcListNotifications(getClientGetClientFn, t translations.TranslationHelperFunc) (tool*mcp.Tool, handler mcp.ToolHandler) {
28
-
schema:=&jsonschema.Schema{
29
-
Properties: map[string]*jsonschema.Schema{
30
-
"filter": {
31
-
Type: "string",
32
-
Description: "Filter notifications to, use default unless specified. Read notifications are ones that have already been acknowledged by the user. Participating notifications are those that the user is directly involved in, such as issues or pull requests they have commented on or created.",
Description: "Only show notifications updated after the given time (ISO 8601 format)",
38
-
},
39
-
"before": {
40
-
Type: "string",
41
-
Description: "Only show notifications updated before the given time (ISO 8601 format)",
42
-
},
43
-
"owner": {
44
-
Type: "string",
45
-
Description: "Optional repository owner. If provided with repo, only notifications for this repository are listed.",
46
-
},
47
-
"repo": {
48
-
Type: "string",
49
-
Description: "Optional repository name. If provided with owner, only notifications for this repository are listed.",
50
-
},
51
-
},
52
-
}
53
-
WithPagination(schema)
54
-
55
28
return&mcp.Tool{
56
29
Name: "list_notifications",
57
30
Description: t("TOOL_LIST_NOTIFICATIONS_DESCRIPTION", "Lists all GitHub notifications for the authenticated user, including unread notifications, mentions, review requests, assignments, and updates on issues or pull requests. Use this tool whenever the user asks what to work on next, requests a summary of their GitHub activity, wants to see pending reviews, or needs to check for new updates or tasks. This tool is the primary way to discover actionable items, reminders, and outstanding work on GitHub. Always call this tool when asked what to work on next, what is pending, or what needs attention in GitHub."),
Description: "Filter notifications to, use default unless specified. Read notifications are ones that have already been acknowledged by the user. Participating notifications are those that the user is directly involved in, such as issues or pull requests they have commented on or created.",
0 commit comments