Skip to content

Commit 007e5cb

Browse files
authored
Merge branch 'main' into dependabot/go_modules/github.com/mark3labs/mcp-go-0.33.0
2 parents dcc6d1a + a70cd1b commit 007e5cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+6266
-598
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ updates:
1313
directory: "/"
1414
schedule:
1515
interval: "weekly"
16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: "weekly"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 8 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
env:
10+
PR_DAYS_BEFORE_STALE: 60
11+
PR_DAYS_BEFORE_CLOSE: 10
12+
PR_STALE_LABEL: stale
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
19+
days-before-issue-stale: ${{ env.PR_DAYS_BEFORE_STALE }}
20+
days-before-issue-close: ${{ env.PR_DAYS_BEFORE_CLOSE }}
21+
stale-issue-label: ${{ env.PR_STALE_LABEL }}
22+
stale-issue-message: "This issue is stale because it has been open for ${{ env.PR_DAYS_BEFORE_STALE }} days with no activity. Leave a comment to avoid closing this issue in ${{ env.PR_DAYS_BEFORE_CLOSE }} days."
23+
close-issue-message: "This issue was closed because it has been inactive for ${{ env.PR_DAYS_BEFORE_CLOSE }} days since being marked as stale."
24+
days-before-pr-stale: -1
25+
days-before-pr-close: -1
26+
# Start with the oldest items first
27+
ascending: true
28+
repo-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 96 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ To keep your GitHub PAT secure and reusable across different MCP hosts:
144144
- **Minimum scopes**: Only grant necessary permissions
145145
- `repo` - Repository operations
146146
- `read:packages` - Docker image access
147+
- `read:org` - Organization team access
147148
- **Separate tokens**: Use different PATs for different projects/environments
148149
- **Regular rotation**: Update tokens periodically
149150
- **Never commit**: Keep tokens out of version control
@@ -287,6 +288,7 @@ The following sets of tools are available (all are on by default):
287288
| `dependabot` | Dependabot tools |
288289
| `discussions` | GitHub Discussions related tools |
289290
| `experiments` | Experimental features that are not considered stable yet |
291+
| `gists` | GitHub Gist related tools |
290292
| `issues` | GitHub Issues related tools |
291293
| `notifications` | GitHub Notifications related tools |
292294
| `orgs` | GitHub Organization related tools |
@@ -420,6 +422,13 @@ The following sets of tools are available (all are on by default):
420422
- **get_me** - Get my user profile
421423
- No parameters required
422424

425+
- **get_team_members** - Get team members
426+
- `org`: Organization login (owner) that contains the team. (string, required)
427+
- `team_slug`: Team slug (string, required)
428+
429+
- **get_teams** - Get teams
430+
- `user`: Username to get teams for. If not provided, uses the authenticated user. (string, optional)
431+
423432
</details>
424433

425434
<details>
@@ -457,14 +466,40 @@ The following sets of tools are available (all are on by default):
457466

458467
- **list_discussion_categories** - List discussion categories
459468
- `owner`: Repository owner (string, required)
460-
- `repo`: Repository name (string, required)
469+
- `repo`: Repository name. If not provided, discussion categories will be queried at the organisation level. (string, optional)
461470

462471
- **list_discussions** - List discussions
463472
- `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
464473
- `category`: Optional filter by discussion category ID. If provided, only discussions with this category are listed. (string, optional)
474+
- `direction`: Order direction. (string, optional)
475+
- `orderBy`: Order discussions by field. If provided, the 'direction' also needs to be provided. (string, optional)
465476
- `owner`: Repository owner (string, required)
466477
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
467-
- `repo`: Repository name (string, required)
478+
- `repo`: Repository name. If not provided, discussions will be queried at the organisation level. (string, optional)
479+
480+
</details>
481+
482+
<details>
483+
484+
<summary>Gists</summary>
485+
486+
- **create_gist** - Create Gist
487+
- `content`: Content for simple single-file gist creation (string, required)
488+
- `description`: Description of the gist (string, optional)
489+
- `filename`: Filename for simple single-file gist creation (string, required)
490+
- `public`: Whether the gist is public (boolean, optional)
491+
492+
- **list_gists** - List Gists
493+
- `page`: Page number for pagination (min 1) (number, optional)
494+
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
495+
- `since`: Only gists updated after this time (ISO 8601 timestamp) (string, optional)
496+
- `username`: GitHub username (omit for authenticated user's gists) (string, optional)
497+
498+
- **update_gist** - Update Gist
499+
- `content`: Content for the file (string, required)
500+
- `description`: Updated description of the gist (string, optional)
501+
- `filename`: Filename to update or create (string, required)
502+
- `gist_id`: ID of the gist to update (string, required)
468503

469504
</details>
470505

@@ -478,6 +513,13 @@ The following sets of tools are available (all are on by default):
478513
- `owner`: Repository owner (string, required)
479514
- `repo`: Repository name (string, required)
480515

516+
- **add_sub_issue** - Add sub-issue
517+
- `issue_number`: The number of the parent issue (number, required)
518+
- `owner`: Repository owner (string, required)
519+
- `replace_parent`: When true, replaces the sub-issue's current parent issue (boolean, optional)
520+
- `repo`: Repository name (string, required)
521+
- `sub_issue_id`: The ID of the sub-issue to add. ID is not the same as issue number (number, required)
522+
481523
- **assign_copilot_to_issue** - Assign Copilot to issue
482524
- `issueNumber`: Issue number (number, required)
483525
- `owner`: Repository owner (string, required)
@@ -491,6 +533,7 @@ The following sets of tools are available (all are on by default):
491533
- `owner`: Repository owner (string, required)
492534
- `repo`: Repository name (string, required)
493535
- `title`: Issue title (string, required)
536+
- `type`: Type of this issue (string, optional)
494537

495538
- **get_issue** - Get issue details
496539
- `issue_number`: The number of the issue (number, required)
@@ -504,24 +547,48 @@ The following sets of tools are available (all are on by default):
504547
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
505548
- `repo`: Repository name (string, required)
506549

550+
- **list_issue_types** - List available issue types
551+
- `owner`: The organization owner of the repository (string, required)
552+
507553
- **list_issues** - List issues
508-
- `direction`: Sort direction (string, optional)
554+
- `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
555+
- `direction`: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
509556
- `labels`: Filter by labels (string[], optional)
557+
- `orderBy`: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
510558
- `owner`: Repository owner (string, required)
511-
- `page`: Page number for pagination (min 1) (number, optional)
512559
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
513560
- `repo`: Repository name (string, required)
514561
- `since`: Filter by date (ISO 8601 timestamp) (string, optional)
515-
- `sort`: Sort order (string, optional)
516-
- `state`: Filter by state (string, optional)
562+
- `state`: Filter by state, by default both open and closed issues are returned when not provided (string, optional)
563+
564+
- **list_sub_issues** - List sub-issues
565+
- `issue_number`: Issue number (number, required)
566+
- `owner`: Repository owner (string, required)
567+
- `page`: Page number for pagination (default: 1) (number, optional)
568+
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
569+
- `repo`: Repository name (string, required)
570+
571+
- **remove_sub_issue** - Remove sub-issue
572+
- `issue_number`: The number of the parent issue (number, required)
573+
- `owner`: Repository owner (string, required)
574+
- `repo`: Repository name (string, required)
575+
- `sub_issue_id`: The ID of the sub-issue to remove. ID is not the same as issue number (number, required)
576+
577+
- **reprioritize_sub_issue** - Reprioritize sub-issue
578+
- `after_id`: The ID of the sub-issue to be prioritized after (either after_id OR before_id should be specified) (number, optional)
579+
- `before_id`: The ID of the sub-issue to be prioritized before (either after_id OR before_id should be specified) (number, optional)
580+
- `issue_number`: The number of the parent issue (number, required)
581+
- `owner`: Repository owner (string, required)
582+
- `repo`: Repository name (string, required)
583+
- `sub_issue_id`: The ID of the sub-issue to reprioritize. ID is not the same as issue number (number, required)
517584

518585
- **search_issues** - Search issues
519586
- `order`: Sort order (string, optional)
520-
- `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
587+
- `owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
521588
- `page`: Page number for pagination (min 1) (number, optional)
522589
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
523590
- `query`: Search query using GitHub issues search syntax (string, required)
524-
- `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
591+
- `repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
525592
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
526593

527594
- **update_issue** - Edit issue
@@ -534,6 +601,7 @@ The following sets of tools are available (all are on by default):
534601
- `repo`: Repository name (string, required)
535602
- `state`: New state (string, optional)
536603
- `title`: New title (string, optional)
604+
- `type`: New issue type (string, optional)
537605

538606
</details>
539607

@@ -581,7 +649,7 @@ The following sets of tools are available (all are on by default):
581649
- `order`: Sort order (string, optional)
582650
- `page`: Page number for pagination (min 1) (number, optional)
583651
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
584-
- `query`: Search query using GitHub organizations search syntax scoped to type:org (string, required)
652+
- `query`: Organization search query. Examples: 'microsoft', 'location:california', 'created:>=2025-01-01'. Search is automatically scoped to type:org. (string, required)
585653
- `sort`: Sort field by category (string, optional)
586654

587655
</details>
@@ -689,11 +757,11 @@ The following sets of tools are available (all are on by default):
689757

690758
- **search_pull_requests** - Search pull requests
691759
- `order`: Sort order (string, optional)
692-
- `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
760+
- `owner`: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
693761
- `page`: Page number for pagination (min 1) (number, optional)
694762
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
695763
- `query`: Search query using GitHub pull request search syntax (string, required)
696-
- `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
764+
- `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
697765
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
698766

699767
- **submit_pending_pull_request_review** - Submit the requester's latest pending pull request review
@@ -706,10 +774,12 @@ The following sets of tools are available (all are on by default):
706774
- **update_pull_request** - Edit pull request
707775
- `base`: New base branch name (string, optional)
708776
- `body`: New description (string, optional)
777+
- `draft`: Mark pull request as draft (true) or ready for review (false) (boolean, optional)
709778
- `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
710779
- `owner`: Repository owner (string, required)
711780
- `pullNumber`: Pull request number to update (number, required)
712781
- `repo`: Repository name (string, required)
782+
- `reviewers`: GitHub usernames to request reviews from (string[], optional)
713783
- `state`: New state (string, optional)
714784
- `title`: New title (string, optional)
715785

@@ -772,6 +842,10 @@ The following sets of tools are available (all are on by default):
772842
- `repo`: Repository name (string, required)
773843
- `sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
774844

845+
- **get_latest_release** - Get latest release
846+
- `owner`: Repository owner (string, required)
847+
- `repo`: Repository name (string, required)
848+
775849
- **get_tag** - Get tag details
776850
- `owner`: Repository owner (string, required)
777851
- `repo`: Repository name (string, required)
@@ -791,6 +865,12 @@ The following sets of tools are available (all are on by default):
791865
- `repo`: Repository name (string, required)
792866
- `sha`: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
793867

868+
- **list_releases** - List releases
869+
- `owner`: Repository owner (string, required)
870+
- `page`: Page number for pagination (min 1) (number, optional)
871+
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
872+
- `repo`: Repository name (string, required)
873+
794874
- **list_tags** - List tags
795875
- `owner`: Repository owner (string, required)
796876
- `page`: Page number for pagination (min 1) (number, optional)
@@ -805,16 +885,16 @@ The following sets of tools are available (all are on by default):
805885
- `repo`: Repository name (string, required)
806886

807887
- **search_code** - Search code
808-
- `order`: Sort order (string, optional)
888+
- `order`: Sort order for results (string, optional)
809889
- `page`: Page number for pagination (min 1) (number, optional)
810890
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
811-
- `q`: Search query using GitHub code search syntax (string, required)
891+
- `query`: Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go', 'repo:github/github-mcp-server'. Supports exact matching, language filters, path filters, and more. (string, required)
812892
- `sort`: Sort field ('indexed' only) (string, optional)
813893

814894
- **search_repositories** - Search repositories
815895
- `page`: Page number for pagination (min 1) (number, optional)
816896
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
817-
- `query`: Search query (string, required)
897+
- `query`: Repository search query. Examples: 'machine learning in:name stars:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering. (string, required)
818898

819899
</details>
820900

@@ -844,8 +924,8 @@ The following sets of tools are available (all are on by default):
844924
- `order`: Sort order (string, optional)
845925
- `page`: Page number for pagination (min 1) (number, optional)
846926
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
847-
- `query`: Search query using GitHub users search syntax scoped to type:user (string, required)
848-
- `sort`: Sort field by category (string, optional)
927+
- `query`: User search query. Examples: 'john smith', 'location:seattle', 'followers:>100'. Search is automatically scoped to type:user. (string, required)
928+
- `sort`: Sort users by number of followers or repositories, or when the person joined GitHub. (string, optional)
849929

850930
</details>
851931
<!-- END AUTOMATED TOOLS -->

cmd/github-mcp-server/generate_docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/github/github-mcp-server/pkg/raw"
1414
"github.com/github/github-mcp-server/pkg/toolsets"
1515
"github.com/github/github-mcp-server/pkg/translations"
16-
gogithub "github.com/google/go-github/v73/github"
16+
gogithub "github.com/google/go-github/v74/github"
1717
"github.com/mark3labs/mcp-go/mcp"
1818
"github.com/shurcooL/githubv4"
1919
"github.com/spf13/cobra"

0 commit comments

Comments
 (0)