Skip to content

Commit a9c00e1

Browse files
authored
Merge branch 'main' into fix/search-issues-duplicate-filters
2 parents bc817a1 + f818830 commit a9c00e1

File tree

9 files changed

+537
-192
lines changed

9 files changed

+537
-192
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -539,15 +539,15 @@ The following sets of tools are available (all are on by default):
539539
- `repo`: Repository name (string, required)
540540

541541
- **list_issues** - List issues
542-
- `direction`: Sort direction (string, optional)
542+
- `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
543+
- `direction`: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
543544
- `labels`: Filter by labels (string[], optional)
545+
- `orderBy`: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
544546
- `owner`: Repository owner (string, required)
545-
- `page`: Page number for pagination (min 1) (number, optional)
546547
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
547548
- `repo`: Repository name (string, required)
548549
- `since`: Filter by date (ISO 8601 timestamp) (string, optional)
549-
- `sort`: Sort order (string, optional)
550-
- `state`: Filter by state (string, optional)
550+
- `state`: Filter by state, by default both open and closed issues are returned when not provided (string, optional)
551551

552552
- **list_sub_issues** - List sub-issues
553553
- `issue_number`: Issue number (number, required)
@@ -572,11 +572,11 @@ The following sets of tools are available (all are on by default):
572572

573573
- **search_issues** - Search issues
574574
- `order`: Sort order (string, optional)
575-
- `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
575+
- `owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
576576
- `page`: Page number for pagination (min 1) (number, optional)
577577
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
578578
- `query`: Search query using GitHub issues search syntax (string, required)
579-
- `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
579+
- `repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
580580
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
581581

582582
- **update_issue** - Edit issue
@@ -744,11 +744,11 @@ The following sets of tools are available (all are on by default):
744744

745745
- **search_pull_requests** - Search pull requests
746746
- `order`: Sort order (string, optional)
747-
- `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
747+
- `owner`: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
748748
- `page`: Page number for pagination (min 1) (number, optional)
749749
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
750750
- `query`: Search query using GitHub pull request search syntax (string, required)
751-
- `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
751+
- `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
752752
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
753753

754754
- **submit_pending_pull_request_review** - Submit the requester's latest pending pull request review

github-mcp-server

17.5 MB
Binary file not shown.

pkg/github/__toolsnaps__/list_issues.snap

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
"title": "List issues",
44
"readOnlyHint": true
55
},
6-
"description": "List issues in a GitHub repository.",
6+
"description": "List issues in a GitHub repository. For pagination, use the 'endCursor' from the previous response's 'pageInfo' in the 'after' parameter.",
77
"inputSchema": {
88
"properties": {
9+
"after": {
10+
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs.",
11+
"type": "string"
12+
},
913
"direction": {
10-
"description": "Sort direction",
14+
"description": "Order direction. If provided, the 'orderBy' also needs to be provided.",
1115
"enum": [
12-
"asc",
13-
"desc"
16+
"ASC",
17+
"DESC"
1418
],
1519
"type": "string"
1620
},
@@ -21,15 +25,19 @@
2125
},
2226
"type": "array"
2327
},
28+
"orderBy": {
29+
"description": "Order issues by field. If provided, the 'direction' also needs to be provided.",
30+
"enum": [
31+
"CREATED_AT",
32+
"UPDATED_AT",
33+
"COMMENTS"
34+
],
35+
"type": "string"
36+
},
2437
"owner": {
2538
"description": "Repository owner",
2639
"type": "string"
2740
},
28-
"page": {
29-
"description": "Page number for pagination (min 1)",
30-
"minimum": 1,
31-
"type": "number"
32-
},
3341
"perPage": {
3442
"description": "Results per page for pagination (min 1, max 100)",
3543
"maximum": 100,
@@ -44,21 +52,11 @@
4452
"description": "Filter by date (ISO 8601 timestamp)",
4553
"type": "string"
4654
},
47-
"sort": {
48-
"description": "Sort order",
49-
"enum": [
50-
"created",
51-
"updated",
52-
"comments"
53-
],
54-
"type": "string"
55-
},
5655
"state": {
57-
"description": "Filter by state",
56+
"description": "Filter by state, by default both open and closed issues are returned when not provided",
5857
"enum": [
59-
"open",
60-
"closed",
61-
"all"
58+
"OPEN",
59+
"CLOSED"
6260
],
6361
"type": "string"
6462
}

pkg/github/__toolsnaps__/search_issues.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "string"
1616
},
1717
"owner": {
18-
"description": "Optional repository owner. If provided with repo, only notifications for this repository are listed.",
18+
"description": "Optional repository owner. If provided with repo, only issues for this repository are listed.",
1919
"type": "string"
2020
},
2121
"page": {
@@ -34,7 +34,7 @@
3434
"type": "string"
3535
},
3636
"repo": {
37-
"description": "Optional repository name. If provided with owner, only notifications for this repository are listed.",
37+
"description": "Optional repository name. If provided with owner, only issues for this repository are listed.",
3838
"type": "string"
3939
},
4040
"sort": {

pkg/github/__toolsnaps__/search_pull_requests.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "string"
1616
},
1717
"owner": {
18-
"description": "Optional repository owner. If provided with repo, only notifications for this repository are listed.",
18+
"description": "Optional repository owner. If provided with repo, only pull requests for this repository are listed.",
1919
"type": "string"
2020
},
2121
"page": {
@@ -34,7 +34,7 @@
3434
"type": "string"
3535
},
3636
"repo": {
37-
"description": "Optional repository name. If provided with owner, only notifications for this repository are listed.",
37+
"description": "Optional repository name. If provided with owner, only pull requests for this repository are listed.",
3838
"type": "string"
3939
},
4040
"sort": {

0 commit comments

Comments
 (0)