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
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -658,10 +658,19 @@ The following sets of tools are available (all are on by default):
658
658
659
659
<summary>Projects</summary>
660
660
661
+
-**get_project** - Get project
662
+
-`owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
663
+
-`owner_type`: Owner type (string, required)
664
+
-`project_number`: The project's number (number, required)
665
+
666
+
-**list_project_fields** - List project fields
667
+
-`owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
668
+
-`owner_type`: Owner type (string, required)
669
+
-`per_page`: Number of results per page (max 100, default: 30) (number, optional)
670
+
-`projectNumber`: The project's number. (string, required)
671
+
661
672
-**list_projects** - List projects
662
-
-`after`: Cursor for items after (forward pagination) (string, optional)
663
-
-`before`: Cursor for items before (backwards pagination) (string, optional)
664
-
-`owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == organization it is the name of the organization. The name is not case sensitive. (string, required)
673
+
-`owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
665
674
-`owner_type`: Owner type (string, required)
666
675
-`per_page`: Number of results per page (max 100, default: 30) (number, optional)
667
676
-`query`: Filter projects by a search query (matches title and description) (string, optional)
@@ -1017,6 +1026,17 @@ The following sets of tools are available (all are on by default):
1017
1026
1018
1027
</details>
1019
1028
1029
+
<details>
1030
+
1031
+
<summary>Copilot Spaces</summary>
1032
+
1033
+
-**get_copilot_space** - Get Copilot Space
1034
+
-`owner`: The owner of the space. (string, required)
1035
+
-`name`: The name of the space. (string, required)
1036
+
1037
+
-**list_copilot_spaces** - List Copilot Spaces
1038
+
</details>
1039
+
1020
1040
#### Specifying Toolsets
1021
1041
1022
1042
To specify toolsets you want available to the LLM, you can pass an allow-list in two ways:
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
"description": "List Project fields for a user or org",
7
+
"inputSchema": {
8
+
"properties": {
9
+
"owner": {
10
+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
11
+
"type": "string"
12
+
},
13
+
"owner_type": {
14
+
"description": "Owner type",
15
+
"enum": [
16
+
"user",
17
+
"org"
18
+
],
19
+
"type": "string"
20
+
},
21
+
"per_page": {
22
+
"description": "Number of results per page (max 100, default: 30)",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/list_projects.snap
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,18 @@
3
3
"title": "List projects",
4
4
"readOnlyHint": true
5
5
},
6
-
"description": "List Projects for a user or organization",
6
+
"description": "List Projects for a user or org",
7
7
"inputSchema": {
8
8
"properties": {
9
-
"after": {
10
-
"description": "Cursor for items after (forward pagination)",
11
-
"type": "string"
12
-
},
13
-
"before": {
14
-
"description": "Cursor for items before (backwards pagination)",
15
-
"type": "string"
16
-
},
17
9
"owner": {
18
-
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == organization it is the name of the organization. The name is not case sensitive.",
10
+
"description": "If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive.",
baseInstruction:=`The GitHub MCP Server provides tools to interact with GitHub platform.
32
+
33
+
Tool selection guidance:
34
+
1. Use 'list_*' tools for broad, simple retrieval and pagination of all items of a type (e.g., all issues, all PRs, all branches) with basic filtering.
35
+
2. Use 'search_*' tools for targeted queries with specific criteria, keywords, or complex filters (e.g., issues with certain text, PRs by author, code containing functions).
36
+
37
+
Context management:
38
+
1. Use pagination whenever possible with batches of 5-10 items.
39
+
2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task.`
return"## Pull Requests\n\nPR review workflow: Always use 'create_pending_pull_request_review' → 'add_comment_to_pending_review' → 'submit_pending_pull_request_review' for complex reviews with line-specific comments."
52
+
case"issues":
53
+
return"## Issues\n\nCheck 'list_issue_types' first for organizations to use proper issue types. Use 'search_issues' before creating new issues to avoid duplicates. Always set 'state_reason' when closing issues."
54
+
case"discussions":
55
+
return"## Discussions\n\nUse 'list_discussion_categories' to understand available categories before creating discussions. Filter by category for better organization."
0 commit comments