Skip to content

Commit 4cf29f9

Browse files
feat: add GitHub Enterprise tools and update discussions repo parameter description
1 parent 26f0596 commit 4cf29f9

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

README.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ The following sets of tools are available (all are on by default):
286286
| `code_security` | Code security related tools, such as GitHub Code Scanning |
287287
| `dependabot` | Dependabot tools |
288288
| `discussions` | GitHub Discussions related tools |
289+
| `enterprise` | GitHub Enterprise related tools |
289290
| `experiments` | Experimental features that are not considered stable yet |
290291
| `gists` | GitHub Gist related tools |
291292
| `issues` | GitHub Issues related tools |
@@ -458,7 +459,7 @@ The following sets of tools are available (all are on by default):
458459

459460
- **list_discussion_categories** - List discussion categories
460461
- `owner`: Repository owner (string, required)
461-
- `repo`: Repository name (string, required)
462+
- `repo`: Repository name. If not provided, discussion categories will be queried at the organisation level. (string, optional)
462463

463464
- **list_discussions** - List discussions
464465
- `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
@@ -473,6 +474,28 @@ The following sets of tools are available (all are on by default):
473474

474475
<details>
475476

477+
<summary>Enterprise</summary>
478+
479+
- **create_enterprise_repository_ruleset** - Create enterprise repository ruleset
480+
- `bypass_actors`: The actors that can bypass the rules in this ruleset (object[], optional)
481+
- `conditions`: Conditions for when this ruleset applies (object, optional)
482+
- `enforcement`: The enforcement level of the ruleset. Can be 'disabled', 'active', or 'evaluate' (string, required)
483+
- `enterprise`: Enterprise name (string, required)
484+
- `name`: The name of the ruleset (string, required)
485+
- `rules`: An array of rules within the ruleset (object[], required)
486+
- `target`: The target of the ruleset. Defaults to 'branch'. Can be one of: 'branch', 'tag', or 'push' (string, optional)
487+
488+
- **create_or_update_enterprise_custom_properties** -
489+
- `enterprise`: Enterprise name (string, required)
490+
- `properties`: Custom properties as JSON array (string, required)
491+
492+
- **get_enterprise_custom_properties** -
493+
- `enterprise`: Enterprise name (string, required)
494+
495+
</details>
496+
497+
<details>
498+
476499
<summary>Gists</summary>
477500

478501
- **create_gist** - Create Gist
@@ -632,6 +655,22 @@ The following sets of tools are available (all are on by default):
632655

633656
<summary>Organizations</summary>
634657

658+
- **create_or_update_organization_custom_properties** -
659+
- `org`: Organization name (string, required)
660+
- `properties`: Custom properties as JSON array (string, required)
661+
662+
- **create_organization_repository_ruleset** - Create organization repository ruleset
663+
- `bypass_actors`: The actors that can bypass the rules in this ruleset (object[], optional)
664+
- `conditions`: Conditions for when this ruleset applies (object, optional)
665+
- `enforcement`: The enforcement level of the ruleset. Can be 'disabled', 'active', or 'evaluate' (string, required)
666+
- `name`: The name of the ruleset (string, required)
667+
- `org`: Organization name (string, required)
668+
- `rules`: An array of rules within the ruleset (object[], required)
669+
- `target`: The target of the ruleset. Defaults to 'branch'. Can be one of: 'branch', 'tag', or 'push' (string, optional)
670+
671+
- **get_organization_custom_properties** -
672+
- `org`: Organization name (string, required)
673+
635674
- **get_organization_repository_ruleset** - Get organization repository ruleset
636675
- `org`: Organization name (string, required)
637676
- `rulesetId`: Ruleset ID (number, required)
@@ -806,12 +845,27 @@ The following sets of tools are available (all are on by default):
806845
- `repo`: Repository name (string, required)
807846
- `sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
808847

848+
- **create_or_update_repository_custom_properties** -
849+
- `owner`: Repository owner (string, required)
850+
- `properties`: Custom properties as JSON array (string, required)
851+
- `repo`: Repository name (string, required)
852+
809853
- **create_repository** - Create repository
810854
- `autoInit`: Initialize with README (boolean, optional)
811855
- `description`: Repository description (string, optional)
812856
- `name`: Repository name (string, required)
813857
- `private`: Whether repo should be private (boolean, optional)
814858

859+
- **create_repository_ruleset** - Create repository ruleset
860+
- `bypass_actors`: The actors that can bypass the rules in this ruleset (object[], optional)
861+
- `conditions`: Conditions for when this ruleset applies (object, optional)
862+
- `enforcement`: The enforcement level of the ruleset. Can be 'disabled', 'active', or 'evaluate' (string, required)
863+
- `name`: The name of the ruleset (string, required)
864+
- `owner`: Repository owner (string, required)
865+
- `repo`: Repository name (string, required)
866+
- `rules`: An array of rules within the ruleset (object[], required)
867+
- `target`: The target of the ruleset. Defaults to 'branch'. Can be one of: 'branch', 'tag', or 'push' (string, optional)
868+
815869
- **delete_file** - Delete file
816870
- `branch`: Branch to delete the file from (string, required)
817871
- `message`: Commit message (string, required)
@@ -838,6 +892,15 @@ The following sets of tools are available (all are on by default):
838892
- `repo`: Repository name (string, required)
839893
- `sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
840894

895+
- **get_repository_custom_properties** -
896+
- `owner`: Repository owner (string, required)
897+
- `repo`: Repository name (string, required)
898+
899+
- **get_repository_rule_suite** - Get repository rule suite
900+
- `owner`: Repository owner (string, required)
901+
- `repo`: Repository name (string, required)
902+
- `ruleSuiteId`: Rule suite ID (number, required)
903+
841904
- **get_repository_rules_for_branch** - Get rules for branch
842905
- `branch`: Branch name (string, required)
843906
- `owner`: Repository owner (string, required)
@@ -870,6 +933,16 @@ The following sets of tools are available (all are on by default):
870933
- `repo`: Repository name (string, required)
871934
- `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)
872935

936+
- **list_repository_rule_suites** - List repository rule suites
937+
- `actorName`: The handle for the GitHub user account to filter on (string, optional)
938+
- `owner`: Repository owner (string, required)
939+
- `page`: Page number for pagination (min 1) (number, optional)
940+
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
941+
- `ref`: The name of the ref (branch, tag, etc.) to filter rule suites by (string, optional)
942+
- `repo`: Repository name (string, required)
943+
- `ruleSuiteResult`: The rule suite result to filter by. Options: pass, fail, bypass (string, optional)
944+
- `timePeriod`: The time period to filter by. Options: hour, day, week, month (string, optional)
945+
873946
- **list_repository_rulesets** - List repository rulesets
874947
- `includesParents`: Include rulesets configured at higher levels that also apply (boolean, optional)
875948
- `owner`: Repository owner (string, required)

docs/remote-server.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Below is a table of available toolsets for the remote GitHub MCP Server. Each to
2424
| 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) |
2525
| Dependabot | Dependabot tools | https://api.githubcopilot.com/mcp/x/dependabot | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/dependabot/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%2Freadonly%22%7D) |
2626
| Discussions | GitHub Discussions related tools | https://api.githubcopilot.com/mcp/x/discussions | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/discussions/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%2Freadonly%22%7D) |
27+
| Enterprise | GitHub Enterprise related tools | https://api.githubcopilot.com/mcp/x/enterprise | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-enterprise&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fenterprise%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/enterprise/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-enterprise&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fenterprise%2Freadonly%22%7D) |
2728
| Experiments | Experimental features that are not considered stable yet | https://api.githubcopilot.com/mcp/x/experiments | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/experiments/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%2Freadonly%22%7D) |
2829
| Gists | GitHub Gist related tools | https://api.githubcopilot.com/mcp/x/gists | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/gists/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%2Freadonly%22%7D) |
2930
| Issues | GitHub Issues related tools | https://api.githubcopilot.com/mcp/x/issues | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/issues/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%2Freadonly%22%7D) |

0 commit comments

Comments
 (0)