Skip to content

Commit ecc205d

Browse files
committed
Merge branch 'main' into fix/mcp-prompt-message-to-work-with-claude-code
2 parents 7a2eae6 + 6dc5540 commit ecc205d

File tree

18 files changed

+1838
-194
lines changed

18 files changed

+1838
-194
lines changed

.github/workflows/close-inactive-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
env:
1010
PR_DAYS_BEFORE_STALE: 60
11-
PR_DAYS_BEFORE_CLOSE: 10
11+
PR_DAYS_BEFORE_CLOSE: 120
1212
PR_STALE_LABEL: stale
1313
permissions:
1414
issues: write

README.md

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Alternatively, to manually configure VS Code, choose the appropriate JSON block
3636
<tr><th align=left colspan=2>VS Code (version 1.101 or greater)</th></tr>
3737
<tr valign=top>
3838
<td>
39-
39+
4040
```json
4141
{
4242
"servers": {
@@ -130,7 +130,7 @@ To keep your GitHub PAT secure and reusable across different MCP hosts:
130130
```bash
131131
# CLI usage
132132
claude mcp update github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT
133-
133+
134134
# In config files (where supported)
135135
"env": {
136136
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
@@ -241,10 +241,10 @@ For other MCP host applications, please refer to our installation guides:
241241

242242
- **[GitHub Copilot in other IDEs](/docs/installation-guides/install-other-copilot-ides.md)** - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
243243
- **[Claude Code & Claude Desktop](docs/installation-guides/install-claude.md)** - Installation guide for Claude Code and Claude Desktop
244-
- **[Cursor](docs/installation-guides/install-cursor.md)** - Installation guide for Cursor IDE
244+
- **[Cursor](docs/installation-guides/install-cursor.md)** - Installation guide for Cursor IDE
245245
- **[Windsurf](docs/installation-guides/install-windsurf.md)** - Installation guide for Windsurf IDE
246246

247-
For a complete overview of all installation options, see our **[Installation Guides Index](docs/installation-guides/installation-guides.md)**.
247+
For a complete overview of all installation options, see our **[Installation Guides Index](docs/installation-guides)**.
248248

249249
> **Note:** Any host application that supports local MCP servers should be able to access the local GitHub MCP server. However, the specific configuration process, syntax and stability of the integration will vary by host application. While many may follow a similar format to the examples above, this is not guaranteed. Please refer to your host application's documentation for the correct MCP configuration syntax and setup process.
250250
@@ -295,6 +295,7 @@ The following sets of tools are available (all are on by default):
295295
| `pull_requests` | GitHub Pull Request related tools |
296296
| `repos` | GitHub Repository related tools |
297297
| `secret_protection` | Secret protection related tools, such as GitHub Secret Scanning |
298+
| `security_advisories` | Security advisories related tools |
298299
| `users` | GitHub User related tools |
299300
<!-- END AUTOMATED TOOLSETS -->
300301

@@ -846,6 +847,11 @@ The following sets of tools are available (all are on by default):
846847
- `owner`: Repository owner (string, required)
847848
- `repo`: Repository name (string, required)
848849

850+
- **get_release_by_tag** - Get a release by tag name
851+
- `owner`: Repository owner (string, required)
852+
- `repo`: Repository name (string, required)
853+
- `tag`: Tag name (e.g., 'v1.0.0') (string, required)
854+
849855
- **get_tag** - Get tag details
850856
- `owner`: Repository owner (string, required)
851857
- `repo`: Repository name (string, required)
@@ -918,6 +924,41 @@ The following sets of tools are available (all are on by default):
918924

919925
<details>
920926

927+
<summary>Security Advisories</summary>
928+
929+
- **get_global_security_advisory** - Get a global security advisory
930+
- `ghsaId`: GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx). (string, required)
931+
932+
- **list_global_security_advisories** - List global security advisories
933+
- `affects`: Filter advisories by affected package or version (e.g. "package1,[email protected]"). (string, optional)
934+
- `cveId`: Filter by CVE ID. (string, optional)
935+
- `cwes`: Filter by Common Weakness Enumeration IDs (e.g. ["79", "284", "22"]). (string[], optional)
936+
- `ecosystem`: Filter by package ecosystem. (string, optional)
937+
- `ghsaId`: Filter by GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx). (string, optional)
938+
- `isWithdrawn`: Whether to only return withdrawn advisories. (boolean, optional)
939+
- `modified`: Filter by publish or update date or date range (ISO 8601 date or range). (string, optional)
940+
- `published`: Filter by publish date or date range (ISO 8601 date or range). (string, optional)
941+
- `severity`: Filter by severity. (string, optional)
942+
- `type`: Advisory type. (string, optional)
943+
- `updated`: Filter by update date or date range (ISO 8601 date or range). (string, optional)
944+
945+
- **list_org_repository_security_advisories** - List org repository security advisories
946+
- `direction`: Sort direction. (string, optional)
947+
- `org`: The organization login. (string, required)
948+
- `sort`: Sort field. (string, optional)
949+
- `state`: Filter by advisory state. (string, optional)
950+
951+
- **list_repository_security_advisories** - List repository security advisories
952+
- `direction`: Sort direction. (string, optional)
953+
- `owner`: The owner of the repository. (string, required)
954+
- `repo`: The name of the repository. (string, required)
955+
- `sort`: Sort field. (string, optional)
956+
- `state`: Filter by advisory state. (string, optional)
957+
958+
</details>
959+
960+
<details>
961+
921962
<summary>Users</summary>
922963

923964
- **search_users** - Search users

cmd/github-mcp-server/generate_docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func generateReadmeDocs(readmePath string) error {
6464
t, _ := translations.TranslationHelper()
6565

6666
// Create toolset group with mock clients
67-
tsg := github.DefaultToolsetGroup(false, mockGetClient, mockGetGQLClient, mockGetRawClient, t)
67+
tsg := github.DefaultToolsetGroup(false, mockGetClient, mockGetGQLClient, mockGetRawClient, t, 5000)
6868

6969
// Generate toolsets documentation
7070
toolsetsDoc := generateToolsetsDoc(tsg)
@@ -302,7 +302,7 @@ func generateRemoteToolsetsDoc() string {
302302
t, _ := translations.TranslationHelper()
303303

304304
// Create toolset group with mock clients
305-
tsg := github.DefaultToolsetGroup(false, mockGetClient, mockGetGQLClient, mockGetRawClient, t)
305+
tsg := github.DefaultToolsetGroup(false, mockGetClient, mockGetGQLClient, mockGetRawClient, t, 5000)
306306

307307
// Generate table header
308308
buf.WriteString("| Name | Description | API URL | 1-Click Install (VS Code) | Read-only Link | 1-Click Read-only Install (VS Code) |\n")

cmd/github-mcp-server/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ var (
5555
ExportTranslations: viper.GetBool("export-translations"),
5656
EnableCommandLogging: viper.GetBool("enable-command-logging"),
5757
LogFilePath: viper.GetString("log-file"),
58+
ContentWindowSize: viper.GetInt("content-window-size"),
5859
}
5960
return ghmcp.RunStdioServer(stdioServerConfig)
6061
},
@@ -75,6 +76,7 @@ func init() {
7576
rootCmd.PersistentFlags().Bool("enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file")
7677
rootCmd.PersistentFlags().Bool("export-translations", false, "Save translations to a JSON file")
7778
rootCmd.PersistentFlags().String("gh-host", "", "Specify the GitHub hostname (for GitHub Enterprise etc.)")
79+
rootCmd.PersistentFlags().Int("content-window-size", 5000, "Specify the content window size")
7880

7981
// Bind flag to viper
8082
_ = viper.BindPFlag("toolsets", rootCmd.PersistentFlags().Lookup("toolsets"))
@@ -84,6 +86,7 @@ func init() {
8486
_ = viper.BindPFlag("enable-command-logging", rootCmd.PersistentFlags().Lookup("enable-command-logging"))
8587
_ = viper.BindPFlag("export-translations", rootCmd.PersistentFlags().Lookup("export-translations"))
8688
_ = viper.BindPFlag("host", rootCmd.PersistentFlags().Lookup("gh-host"))
89+
_ = viper.BindPFlag("content-window-size", rootCmd.PersistentFlags().Lookup("content-window-size"))
8790

8891
// Add subcommands
8992
rootCmd.AddCommand(stdioCmd)

0 commit comments

Comments
 (0)