Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee72841

Browse files
CopilotomgitsadsLuluBeatson
authored
Migrate notifications toolset to modelcontextprotocol/go-sdk (#1449)
* Initial plan* Migrate notifications toolset to modelcontextprotocol/go-sdkCo-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>* fix the tests that Copilot removed!* re-add notifications toolset* Remove unused variables---------Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>Co-authored-by: LuluBeatson <lulubeatson@github.com>Co-authored-by: Adam Holt <me@adamholt.co.uk>
1 parent4042338 commitee72841

9 files changed

+372
-309
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
22
"annotations": {
3-
"title":"Dismiss notification",
4-
"readOnlyHint":false
3+
"title":"Dismiss notification"
54
},
65
"description":"Dismiss a notification by marking it as read or done",
76
"inputSchema": {
7+
"type":"object",
8+
"required": [
9+
"threadID",
10+
"state"
11+
],
812
"properties": {
913
"state": {
14+
"type":"string",
1015
"description":"The new state of the notification (read/done)",
1116
"enum": [
1217
"read",
1318
"done"
14-
],
15-
"type":"string"
19+
]
1620
},
1721
"threadID": {
18-
"description":"The ID of the notification thread",
19-
"type":"string"
22+
"type":"string",
23+
"description":"The ID of the notification thread"
2024
}
21-
},
22-
"required": [
23-
"threadID"
24-
],
25-
"type":"object"
25+
}
2626
},
2727
"name":"dismiss_notification"
2828
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"annotations": {
3-
"title":"Get notification details",
4-
"readOnlyHint":true
3+
"readOnlyHint":true,
4+
"title":"Get notification details"
55
},
66
"description":"Get detailed information for a specific GitHub notification, always call this tool when the user asks for details about a specific notification, if you don't know the ID list notifications first.",
77
"inputSchema": {
8-
"properties": {
9-
"notificationID": {
10-
"description":"The ID of the notification",
11-
"type":"string"
12-
}
13-
},
8+
"type":"object",
149
"required": [
1510
"notificationID"
1611
],
17-
"type":"object"
12+
"properties": {
13+
"notificationID": {
14+
"type":"string",
15+
"description":"The ID of the notification"
16+
}
17+
}
1818
},
1919
"name":"get_notification_details"
2020
}
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
{
22
"annotations": {
3-
"title":"List notifications",
4-
"readOnlyHint":true
3+
"readOnlyHint":true,
4+
"title":"List notifications"
55
},
66
"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.",
77
"inputSchema": {
8+
"type":"object",
89
"properties": {
910
"before": {
10-
"description":"Only show notifications updated before the given time (ISO 8601 format)",
11-
"type":"string"
11+
"type":"string",
12+
"description":"Only show notifications updated before the given time (ISO 8601 format)"
1213
},
1314
"filter": {
15+
"type":"string",
1416
"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.",
1517
"enum": [
1618
"default",
1719
"include_read_notifications",
1820
"only_participating"
19-
],
20-
"type":"string"
21+
]
2122
},
2223
"owner": {
23-
"description":"Optional repository owner. If provided with repo, only notifications for this repository are listed.",
24-
"type":"string"
24+
"type":"string",
25+
"description":"Optional repository owner. If provided with repo, only notifications for this repository are listed."
2526
},
2627
"page": {
28+
"type":"number",
2729
"description":"Page number for pagination (min 1)",
28-
"minimum":1,
29-
"type":"number"
30+
"minimum":1
3031
},
3132
"perPage": {
33+
"type":"number",
3234
"description":"Results per page for pagination (min 1, max 100)",
33-
"maximum":100,
3435
"minimum":1,
35-
"type":"number"
36+
"maximum":100
3637
},
3738
"repo": {
38-
"description":"Optional repository name. If provided with owner, only notifications for this repository are listed.",
39-
"type":"string"
39+
"type":"string",
40+
"description":"Optional repository name. If provided with owner, only notifications for this repository are listed."
4041
},
4142
"since": {
42-
"description":"Only show notifications updated after the given time (ISO 8601 format)",
43-
"type":"string"
43+
"type":"string",
44+
"description":"Only show notifications updated after the given time (ISO 8601 format)"
4445
}
45-
},
46-
"type":"object"
46+
}
4747
},
4848
"name":"list_notifications"
4949
}
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
{
22
"annotations": {
3-
"title":"Manage notification subscription",
4-
"readOnlyHint":false
3+
"title":"Manage notification subscription"
54
},
65
"description":"Manage a notification subscription: ignore, watch, or delete a notification thread subscription.",
76
"inputSchema": {
7+
"type":"object",
8+
"required": [
9+
"notificationID",
10+
"action"
11+
],
812
"properties": {
913
"action": {
14+
"type":"string",
1015
"description":"Action to perform: ignore, watch, or delete the notification subscription.",
1116
"enum": [
1217
"ignore",
1318
"watch",
1419
"delete"
15-
],
16-
"type":"string"
20+
]
1721
},
1822
"notificationID": {
19-
"description":"The ID of the notification thread.",
20-
"type":"string"
23+
"type":"string",
24+
"description":"The ID of the notification thread."
2125
}
22-
},
23-
"required": [
24-
"notificationID",
25-
"action"
26-
],
27-
"type":"object"
26+
}
2827
},
2928
"name":"manage_notification_subscription"
3029
}
Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
{
22
"annotations": {
3-
"title":"Manage repository notification subscription",
4-
"readOnlyHint":false
3+
"title":"Manage repository notification subscription"
54
},
65
"description":"Manage a repository notification subscription: ignore, watch, or delete repository notifications subscription for the provided repository.",
76
"inputSchema": {
7+
"type":"object",
8+
"required": [
9+
"owner",
10+
"repo",
11+
"action"
12+
],
813
"properties": {
914
"action": {
15+
"type":"string",
1016
"description":"Action to perform: ignore, watch, or delete the repository notification subscription.",
1117
"enum": [
1218
"ignore",
1319
"watch",
1420
"delete"
15-
],
16-
"type":"string"
21+
]
1722
},
1823
"owner": {
19-
"description":"The account owner of the repository.",
20-
"type":"string"
24+
"type":"string",
25+
"description":"The account owner of the repository."
2126
},
2227
"repo": {
23-
"description":"The name of the repository.",
24-
"type":"string"
28+
"type":"string",
29+
"description":"The name of the repository."
2530
}
26-
},
27-
"required": [
28-
"owner",
29-
"repo",
30-
"action"
31-
],
32-
"type":"object"
31+
}
3332
},
3433
"name":"manage_repository_notification_subscription"
3534
}
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
{
22
"annotations": {
3-
"title":"Mark all notifications as read",
4-
"readOnlyHint":false
3+
"title":"Mark all notifications as read"
54
},
65
"description":"Mark all notifications as read",
76
"inputSchema": {
7+
"type":"object",
88
"properties": {
99
"lastReadAt": {
10-
"description":"Describes the last point that notifications were checked (optional). Default: Now",
11-
"type":"string"
10+
"type":"string",
11+
"description":"Describes the last point that notifications were checked (optional). Default: Now"
1212
},
1313
"owner": {
14-
"description":"Optional repository owner. If provided with repo, only notifications for this repository are marked as read.",
15-
"type":"string"
14+
"type":"string",
15+
"description":"Optional repository owner. If provided with repo, only notifications for this repository are marked as read."
1616
},
1717
"repo": {
18-
"description":"Optional repository name. If provided with owner, only notifications for this repository are marked as read.",
19-
"type":"string"
18+
"type":"string",
19+
"description":"Optional repository name. If provided with owner, only notifications for this repository are marked as read."
2020
}
21-
},
22-
"type":"object"
21+
}
2322
},
2423
"name":"mark_all_notifications_read"
2524
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp