Add notification subscriptions for issues, pull requests, and discussions by kaii9 · Pull Request #3492 · github/github-mcp-server · GitHub
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
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"
}
Loading