- Notifications
You must be signed in to change notification settings - Fork3.1k
Migrate discussions toolset to modelcontextprotocol/go-sdk#1448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
+355 −155
Merged
Changes fromall commits
Commits
Show all changes
8 commits Select commitHold shift + click to select a range
836f97a Initial plan
Copilot00b0e04 Migrate discussions toolset to modelcontextprotocol/go-sdk
Copilot0857a96 Update documentation after discussions toolset migration
Copilote7aed27 revert generated docs
LuluBeatsona661dcd re-add discussions toolset
LuluBeatsonf803c1d Merge remote-tracking branch 'origin/omgitsads/go-sdk' into copilot/m…
LuluBeatsonaacd455 Merge remote-tracking branch 'origin/omgitsads/go-sdk' into copilot/m…
LuluBeatson9181d18 rm dupe DefaultGraphQLPageSize
LuluBeatsonFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "Get discussion" | ||
| }, | ||
| "description": "Get a specific discussion by ID", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "owner", | ||
| "repo", | ||
| "discussionNumber" | ||
| ], | ||
| "properties": { | ||
| "discussionNumber": { | ||
| "type": "number", | ||
| "description": "Discussion Number" | ||
| }, | ||
| "owner": { | ||
| "type": "string", | ||
| "description": "Repository owner" | ||
| }, | ||
| "repo": { | ||
| "type": "string", | ||
| "description": "Repository name" | ||
| } | ||
| } | ||
| }, | ||
| "name": "get_discussion" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint":true, | ||
| "title":"Get discussion comments" | ||
| }, | ||
| "description":"Get comments from a discussion", | ||
| "inputSchema": { | ||
| "type":"object", | ||
| "required": [ | ||
| "owner", | ||
| "repo", | ||
| "discussionNumber" | ||
| ], | ||
| "properties": { | ||
| "after": { | ||
| "type":"string", | ||
| "description":"Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs." | ||
| }, | ||
| "discussionNumber": { | ||
| "type":"number", | ||
| "description":"Discussion Number" | ||
| }, | ||
| "owner": { | ||
| "type":"string", | ||
| "description":"Repository owner" | ||
| }, | ||
| "perPage": { | ||
| "type":"number", | ||
| "description":"Results per page for pagination (min 1, max 100)", | ||
| "minimum":1, | ||
| "maximum":100 | ||
| }, | ||
| "repo": { | ||
| "type":"string", | ||
| "description":"Repository name" | ||
| } | ||
| } | ||
| }, | ||
| "name":"get_discussion_comments" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "List discussion categories" | ||
| }, | ||
| "description": "List discussion categories with their id and name, for a repository or organisation.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "owner" | ||
| ], | ||
| "properties": { | ||
| "owner": { | ||
| "type": "string", | ||
| "description": "Repository owner" | ||
| }, | ||
| "repo": { | ||
| "type": "string", | ||
| "description": "Repository name. If not provided, discussion categories will be queried at the organisation level." | ||
| } | ||
| } | ||
| }, | ||
| "name": "list_discussion_categories" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "List discussions" | ||
| }, | ||
| "description": "List discussions for a repository or organisation.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "owner" | ||
| ], | ||
| "properties": { | ||
| "after": { | ||
| "type": "string", | ||
| "description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs." | ||
| }, | ||
| "category": { | ||
| "type": "string", | ||
| "description": "Optional filter by discussion category ID. If provided, only discussions with this category are listed." | ||
| }, | ||
| "direction": { | ||
| "type": "string", | ||
| "description": "Order direction.", | ||
| "enum": [ | ||
| "ASC", | ||
| "DESC" | ||
| ] | ||
| }, | ||
| "orderBy": { | ||
| "type": "string", | ||
| "description": "Order discussions by field. If provided, the 'direction' also needs to be provided.", | ||
| "enum": [ | ||
| "CREATED_AT", | ||
| "UPDATED_AT" | ||
| ] | ||
| }, | ||
| "owner": { | ||
| "type": "string", | ||
| "description": "Repository owner" | ||
| }, | ||
| "perPage": { | ||
| "type": "number", | ||
| "description": "Results per page for pagination (min 1, max 100)", | ||
| "minimum": 1, | ||
| "maximum": 100 | ||
| }, | ||
| "repo": { | ||
| "type": "string", | ||
| "description": "Repository name. If not provided, discussions will be queried at the organisation level." | ||
| } | ||
| } | ||
| }, | ||
| "name": "list_discussions" | ||
| } |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.