Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,13 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat
- **OAuth Challenge Scopes**: `notifications`
- `notificationID`: The ID of the notification (string, required)

- **get_subject_subscription** - Get subject subscription
- **OAuth Challenge Scopes**: `repo`
- `number`: Issue, pull request, or discussion number (integer, required)
- `owner`: Repository owner (string, required)
- `repo`: Repository name (string, required)
- `subjectType`: Type of the subject to subscribe to (string, required)

- **list_notifications** - List notifications
- **OAuth Challenge Scopes**: `notifications`
- `before`: Only show notifications updated before the given time (ISO 8601 format) (string, optional)
Expand All @@ -1165,6 +1172,14 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat
- `owner`: The account owner of the repository. (string, required)
- `repo`: The name of the repository. (string, required)

- **manage_subject_subscription** - Manage subject subscription
- **OAuth Challenge Scopes**: `repo`, `notifications`
- `number`: Issue, pull request, or discussion number (integer, required)
- `owner`: Repository owner (string, required)
- `repo`: Repository name (string, required)
- `state`: subscribed: receive all updates; unsubscribed: only participating or mentions; ignored: receive no notifications (string, required)
- `subjectType`: Type of the subject to subscribe to (string, required)

- **mark_all_notifications_read** - Mark all notifications as read
- **OAuth Challenge Scopes**: `notifications`
- `lastReadAt`: Describes the last point that notifications were checked (optional). Default: Now (string, optional)
Expand Down
43 changes: 43 additions & 0 deletions pkg/github/__toolsnaps__/get_subject_subscription.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"annotations": {
"idempotentHint": false,
"readOnlyHint": true,
"title": "Get subject subscription"
},
"description": "Get the authenticated user's notification subscription state for a specific issue, pull request, or discussion by repository and number. Does not require an existing notification thread.",
"inputSchema": {
"properties": {
"number": {
"description": "Issue, pull request, or discussion number",
"maximum": 2147483647,
"minimum": 1,
"type": "integer"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
},
"subjectType": {
"description": "Type of the subject to subscribe to",
"enum": [
"issue",
"pull_request",
"discussion"
],
"type": "string"
}
},
"required": [
"owner",
"repo",
"subjectType",
"number"
],
"type": "object"
},
"name": "get_subject_subscription"
}
44 changes: 44 additions & 0 deletions pkg/github/__toolsnaps__/get_subject_subscription_output.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"inputSchema": null,
"name": "get_subject_subscription",
"outputSchema": {
"additionalProperties": false,
"properties": {
"can_subscribe": {
"type": "boolean"
},
"id": {
"type": "string"
},
"number": {
"maximum": 2147483647,
"minimum": -2147483648,
"type": "integer"
},
"state": {
"type": [
"null",
"string"
]
},
"subject_type": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"subject_type",
"number",
"url",
"state",
"can_subscribe"
],
"type": [
"null",
"object"
]
}
}
54 changes: 54 additions & 0 deletions pkg/github/__toolsnaps__/manage_subject_subscription.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
"readOnlyHint": false,
"title": "Manage subject subscription"
},
"description": "Subscribe, unsubscribe, or ignore a specific issue, pull request, or discussion for the authenticated user by repository and number. Does not require an existing notification thread and does not watch the whole repository. Use get_subject_subscription to check the current state.",
"inputSchema": {
"properties": {
"number": {
"description": "Issue, pull request, or discussion number",
"maximum": 2147483647,
"minimum": 1,
"type": "integer"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
},
"state": {
"description": "subscribed: receive all updates; unsubscribed: only participating or mentions; ignored: receive no notifications",
"enum": [
"subscribed",
"unsubscribed",
"ignored"
],
"type": "string"
},
"subjectType": {
"description": "Type of the subject to subscribe to",
"enum": [
"issue",
"pull_request",
"discussion"
],
"type": "string"
}
},
"required": [
"owner",
"repo",
"subjectType",
"number",
"state"
],
"type": "object"
},
"name": "manage_subject_subscription"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"inputSchema": null,
"name": "manage_subject_subscription",
"outputSchema": {
"additionalProperties": false,
"properties": {
"can_subscribe": {
"type": "boolean"
},
"id": {
"type": "string"
},
"number": {
"maximum": 2147483647,
"minimum": -2147483648,
"type": "integer"
},
"state": {
"type": [
"null",
"string"
]
},
"subject_type": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"subject_type",
"number",
"url",
"state",
"can_subscribe"
],
"type": [
"null",
"object"
]
}
}
Loading