-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Migrate issues toolset to modelcontextprotocol/go-sdk #1440
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7480a09
Initial plan
Copilot 16a69cf
Migrate imports and first 3 tools (IssueRead, ListIssueTypes, helper …
Copilot a4e8f7b
Migrate AddIssueComment, SubIssueWrite and helper functions
Copilot d8d4c56
Migrate SearchIssues and search_utils helper
Copilot 8d9b818
Migrate IssueWrite tool with CreateIssue and UpdateIssue helpers
Copilot f3793e2
Migrate remaining tools: ListIssues, AssignCopilotToIssue, AssignCodi…
Copilot 1b1c40b
Fix all linter errors in issues.go and search_utils.go
Copilot 541e4ba
Fix test file and update toolsnaps - migration complete!
Copilot 7ba9cc7
uncomment issues toolset
omgitsads 0ffc274
Migrate Issue workflow prompt
omgitsads 9aa5576
Remove commented out tool definition
omgitsads e7b275a
Merge branch 'omgitsads/go-sdk' into copilot/migrate-issues-toolset
omgitsads c2b379c
Remove duplicate func
omgitsads File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 |
|---|---|---|
| @@ -1,35 +1,34 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Add comment to issue", | ||
| "readOnlyHint": false | ||
| "title": "Add comment to issue" | ||
| }, | ||
| "description": "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "owner", | ||
| "repo", | ||
| "issue_number", | ||
| "body" | ||
| ], | ||
| "properties": { | ||
| "body": { | ||
| "description": "Comment content", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Comment content" | ||
| }, | ||
| "issue_number": { | ||
| "description": "Issue number to comment on", | ||
| "type": "number" | ||
| "type": "number", | ||
| "description": "Issue number to comment on" | ||
| }, | ||
| "owner": { | ||
| "description": "Repository owner", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Repository owner" | ||
| }, | ||
| "repo": { | ||
| "description": "Repository name", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Repository name" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "owner", | ||
| "repo", | ||
| "issue_number", | ||
| "body" | ||
| ], | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "name": "add_issue_comment" | ||
| } | ||
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 |
|---|---|---|
| @@ -1,31 +1,30 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Assign Copilot to issue", | ||
| "readOnlyHint": false, | ||
| "idempotentHint": true | ||
| "idempotentHint": true, | ||
| "title": "Assign Copilot to issue" | ||
| }, | ||
| "description": "Assign Copilot to a specific issue in a GitHub repository.\n\nThis tool can help with the following outcomes:\n- a Pull Request created with source code changes to resolve the issue\n\n\nMore information can be found at:\n- https://docs.github.com/en/copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks/about-assigning-tasks-to-copilot\n", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "owner", | ||
| "repo", | ||
| "issueNumber" | ||
| ], | ||
| "properties": { | ||
| "issueNumber": { | ||
| "description": "Issue number", | ||
| "type": "number" | ||
| "type": "number", | ||
| "description": "Issue number" | ||
| }, | ||
| "owner": { | ||
| "description": "Repository owner", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Repository owner" | ||
| }, | ||
| "repo": { | ||
| "description": "Repository name", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Repository name" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "owner", | ||
| "repo", | ||
| "issueNumber" | ||
| ], | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "name": "assign_copilot_to_issue" | ||
| } |
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 |
|---|---|---|
| @@ -1,52 +1,52 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Get issue details", | ||
| "readOnlyHint": true | ||
| "readOnlyHint": true, | ||
| "title": "Get issue details" | ||
| }, | ||
| "description": "Get information about a specific issue in a GitHub repository.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "method", | ||
| "owner", | ||
| "repo", | ||
| "issue_number" | ||
| ], | ||
| "properties": { | ||
| "issue_number": { | ||
| "description": "The number of the issue", | ||
| "type": "number" | ||
| "type": "number", | ||
| "description": "The number of the issue" | ||
| }, | ||
| "method": { | ||
| "description": "The read operation to perform on a single issue. \nOptions are: \n1. get - Get details of a specific issue.\n2. get_comments - Get issue comments.\n3. get_sub_issues - Get sub-issues of the issue.\n4. get_labels - Get labels assigned to the issue.\n", | ||
| "type": "string", | ||
| "description": "The read operation to perform on a single issue.\nOptions are:\n1. get - Get details of a specific issue.\n2. get_comments - Get issue comments.\n3. get_sub_issues - Get sub-issues of the issue.\n4. get_labels - Get labels assigned to the issue.\n", | ||
| "enum": [ | ||
| "get", | ||
| "get_comments", | ||
| "get_sub_issues", | ||
| "get_labels" | ||
| ], | ||
| "type": "string" | ||
| ] | ||
| }, | ||
| "owner": { | ||
| "description": "The owner of the repository", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "The owner of the repository" | ||
| }, | ||
| "page": { | ||
| "type": "number", | ||
| "description": "Page number for pagination (min 1)", | ||
| "minimum": 1, | ||
| "type": "number" | ||
| "minimum": 1 | ||
| }, | ||
| "perPage": { | ||
| "type": "number", | ||
| "description": "Results per page for pagination (min 1, max 100)", | ||
| "maximum": 100, | ||
| "minimum": 1, | ||
| "type": "number" | ||
| "maximum": 100 | ||
| }, | ||
| "repo": { | ||
| "description": "The name of the repository", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "The name of the repository" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "method", | ||
| "owner", | ||
| "repo", | ||
| "issue_number" | ||
| ], | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "name": "issue_read" | ||
| } |
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 |
|---|---|---|
| @@ -1,89 +1,88 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Create or update issue.", | ||
| "readOnlyHint": false | ||
| "title": "Create or update issue." | ||
| }, | ||
| "description": "Create a new or update an existing issue in a GitHub repository.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "method", | ||
| "owner", | ||
| "repo" | ||
| ], | ||
| "properties": { | ||
| "assignees": { | ||
| "type": "array", | ||
| "description": "Usernames to assign to this issue", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "type": "array" | ||
| } | ||
| }, | ||
| "body": { | ||
| "description": "Issue body content", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Issue body content" | ||
| }, | ||
| "duplicate_of": { | ||
| "description": "Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'.", | ||
| "type": "number" | ||
| "type": "number", | ||
| "description": "Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'." | ||
| }, | ||
| "issue_number": { | ||
| "description": "Issue number to update", | ||
| "type": "number" | ||
| "type": "number", | ||
| "description": "Issue number to update" | ||
| }, | ||
| "labels": { | ||
| "type": "array", | ||
| "description": "Labels to apply to this issue", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "type": "array" | ||
| } | ||
| }, | ||
| "method": { | ||
| "description": "Write operation to perform on a single issue.\nOptions are: \n- 'create' - creates a new issue. \n- 'update' - updates an existing issue.\n", | ||
| "type": "string", | ||
| "description": "Write operation to perform on a single issue.\nOptions are:\n- 'create' - creates a new issue.\n- 'update' - updates an existing issue.\n", | ||
| "enum": [ | ||
| "create", | ||
| "update" | ||
| ], | ||
| "type": "string" | ||
| ] | ||
| }, | ||
| "milestone": { | ||
| "description": "Milestone number", | ||
| "type": "number" | ||
| "type": "number", | ||
| "description": "Milestone number" | ||
| }, | ||
| "owner": { | ||
| "description": "Repository owner", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Repository owner" | ||
| }, | ||
| "repo": { | ||
| "description": "Repository name", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Repository name" | ||
| }, | ||
| "state": { | ||
| "type": "string", | ||
| "description": "New state", | ||
| "enum": [ | ||
| "open", | ||
| "closed" | ||
| ], | ||
| "type": "string" | ||
| ] | ||
| }, | ||
| "state_reason": { | ||
| "type": "string", | ||
| "description": "Reason for the state change. Ignored unless state is changed.", | ||
| "enum": [ | ||
| "completed", | ||
| "not_planned", | ||
| "duplicate" | ||
| ], | ||
| "type": "string" | ||
| ] | ||
| }, | ||
| "title": { | ||
| "description": "Issue title", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Issue title" | ||
| }, | ||
| "type": { | ||
| "description": "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter.", | ||
| "type": "string" | ||
| "type": "string", | ||
| "description": "Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter." | ||
| } | ||
| }, | ||
| "required": [ | ||
| "method", | ||
| "owner", | ||
| "repo" | ||
| ], | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "name": "issue_write" | ||
| } |
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 |
|---|---|---|
| @@ -1,20 +1,20 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "List available issue types", | ||
| "readOnlyHint": true | ||
| "readOnlyHint": true, | ||
| "title": "List available issue types" | ||
| }, | ||
| "description": "List supported issue types for repository owner (organization).", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "owner": { | ||
| "description": "The organization owner of the repository", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "type": "object", | ||
| "required": [ | ||
| "owner" | ||
| ], | ||
| "type": "object" | ||
| "properties": { | ||
| "owner": { | ||
| "type": "string", | ||
| "description": "The organization owner of the repository" | ||
| } | ||
| } | ||
| }, | ||
| "name": "list_issue_types" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these toolsnap ordering changes deterministic? As long as this is a one-off churn it's all good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will take a look and confirm!