You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: move copilot tools to default copilot toolset (#2039)
* feat: move copilot tools to default copilot toolset
Move AssignCopilotToIssue and RequestCopilotReview from the issues and
pull_requests toolsets respectively into a new default-enabled copilot
toolset. This groups all copilot-related tools together and makes them
available by default.
- Set Default: true on ToolsetMetadataCopilot
- Remove copilot from RemoteOnlyToolsets()
- Update AllTools() grouping and tests
- Regenerate docs
Refs: github/copilot-mcp-core#1180
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* refactor: move copilot tools to dedicated copilot.go
Extract AssignCopilotToIssue, RequestCopilotReview, AssignCodingAgentPrompt,
and all supporting types/helpers from issues.go and pullrequests.go into
copilot.go and copilot_test.go.
This follows the existing convention where each domain (actions, dependabot,
discussions, gists, etc.) has its own file, and keeps the copilot toolset
implementation cohesive in one place.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+21-14Lines changed: 21 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -560,6 +560,7 @@ The following sets of tools are available:
560
560
| <picture><sourcemedia="(prefers-color-scheme: dark)"srcset="pkg/octicons/icons/person-dark.png"><sourcemedia="(prefers-color-scheme: light)"srcset="pkg/octicons/icons/person-light.png"><imgsrc="pkg/octicons/icons/person-light.png"width="20"height="20"alt="person"></picture> |`context`|**Strongly recommended**: Tools that provide context about the current user and GitHub context you are operating in |
| <picture><sourcemedia="(prefers-color-scheme: dark)"srcset="pkg/octicons/icons/codescan-dark.png"><sourcemedia="(prefers-color-scheme: light)"srcset="pkg/octicons/icons/codescan-light.png"><imgsrc="pkg/octicons/icons/codescan-light.png"width="20"height="20"alt="codescan"></picture> |`code_security`| Code security related tools, such as GitHub Code Scanning |
563
+
| <picture><sourcemedia="(prefers-color-scheme: dark)"srcset="pkg/octicons/icons/copilot-dark.png"><sourcemedia="(prefers-color-scheme: light)"srcset="pkg/octicons/icons/copilot-light.png"><imgsrc="pkg/octicons/icons/copilot-light.png"width="20"height="20"alt="copilot"></picture> |`copilot`| Copilot related tools |
-**assign_copilot_to_issue** - Assign Copilot to issue
693
+
-**Required OAuth Scopes**: `repo`
694
+
-`base_ref`: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch (string, optional)
695
+
-`custom_instructions`: Optional custom instructions to guide the agent beyond the issue body. Use this to provide additional context, constraints, or guidance that is not captured in the issue description (string, optional)
@@ -794,14 +815,6 @@ The following sets of tools are available:
794
815
-`owner`: Repository owner (string, required)
795
816
-`repo`: Repository name (string, required)
796
817
797
-
-**assign_copilot_to_issue** - Assign Copilot to issue
798
-
-**Required OAuth Scopes**: `repo`
799
-
-`base_ref`: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch (string, optional)
800
-
-`custom_instructions`: Optional custom instructions to guide the agent beyond the issue body. Use this to provide additional context, constraints, or guidance that is not captured in the issue description (string, optional)
801
-
-`issue_number`: Issue number (number, required)
802
-
-`owner`: Repository owner (string, required)
803
-
-`repo`: Repository name (string, required)
804
-
805
818
-**get_label** - Get a specific label from a repository.
806
819
-**Required OAuth Scopes**: `repo`
807
820
-`name`: Label name. (string, required)
@@ -1106,12 +1119,6 @@ The following sets of tools are available:
1106
1119
-`pullNumber`: Pull request number (number, required)
| <picture><sourcemedia="(prefers-color-scheme: dark)"srcset="../pkg/octicons/icons/codescan-dark.png"><sourcemedia="(prefers-color-scheme: light)"srcset="../pkg/octicons/icons/codescan-light.png"><imgsrc="../pkg/octicons/icons/codescan-light.png"width="20"height="20"alt="codescan"></picture><br>`code_security`| Code security related tools, such as GitHub Code Scanning |https://api.githubcopilot.com/mcp/x/code_security|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/code_security/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%2Freadonly%22%7D)|
25
+
| <picture><sourcemedia="(prefers-color-scheme: dark)"srcset="../pkg/octicons/icons/copilot-dark.png"><sourcemedia="(prefers-color-scheme: light)"srcset="../pkg/octicons/icons/copilot-light.png"><imgsrc="../pkg/octicons/icons/copilot-light.png"width="20"height="20"alt="copilot"></picture><br>`copilot`| Copilot related tools |https://api.githubcopilot.com/mcp/x/copilot|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-copilot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcopilot%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/copilot/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-copilot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcopilot%2Freadonly%22%7D)|
0 commit comments