Skip to content

Commit a4670b0

Browse files
tonytrgSamMorrowDrums
authored andcommitted
fix naming
1 parent 7af51a0 commit a4670b0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,21 +530,21 @@ The local GitHub MCP Server offers an insiders version with early access to new
530530
1. **Using Command Line Argument**:
531531

532532
```bash
533-
./github-mcp-server --insiders-mode
533+
./github-mcp-server --insiders
534534
```
535535

536536
2. **Using Environment Variable**:
537537

538538
```bash
539-
GITHUB_INSIDERS_MODE=true ./github-mcp-server
539+
GITHUB_INSIDERS=true ./github-mcp-server
540540
```
541541

542542
When using Docker:
543543

544544
```bash
545545
docker run -i --rm \
546546
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
547-
-e GITHUB_INSIDERS_MODE=true \
547+
-e GITHUB_INSIDERS=true \
548548
ghcr.io/github/github-mcp-server
549549
```
550550

cmd/github-mcp-server/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var (
8383
LogFilePath: viper.GetString("log-file"),
8484
ContentWindowSize: viper.GetInt("content-window-size"),
8585
LockdownMode: viper.GetBool("lockdown-mode"),
86-
InsidersMode: viper.GetBool("insiders-mode"),
86+
InsidersMode: viper.GetBool("insiders"),
8787
RepoAccessCacheTTL: &ttl,
8888
}
8989
return ghmcp.RunStdioServer(stdioServerConfig)
@@ -109,7 +109,7 @@ func init() {
109109
rootCmd.PersistentFlags().String("gh-host", "", "Specify the GitHub hostname (for GitHub Enterprise etc.)")
110110
rootCmd.PersistentFlags().Int("content-window-size", 5000, "Specify the content window size")
111111
rootCmd.PersistentFlags().Bool("lockdown-mode", false, "Enable lockdown mode")
112-
rootCmd.PersistentFlags().Bool("insiders-mode", false, "Enable insiders features")
112+
rootCmd.PersistentFlags().Bool("insiders", false, "Enable insiders features")
113113
rootCmd.PersistentFlags().Duration("repo-access-cache-ttl", 5*time.Minute, "Override the repo access cache TTL (e.g. 1m, 0s to disable)")
114114

115115
// Bind flag to viper
@@ -124,7 +124,7 @@ func init() {
124124
_ = viper.BindPFlag("host", rootCmd.PersistentFlags().Lookup("gh-host"))
125125
_ = viper.BindPFlag("content-window-size", rootCmd.PersistentFlags().Lookup("content-window-size"))
126126
_ = viper.BindPFlag("lockdown-mode", rootCmd.PersistentFlags().Lookup("lockdown-mode"))
127-
_ = viper.BindPFlag("insiders-mode", rootCmd.PersistentFlags().Lookup("insiders-mode"))
127+
_ = viper.BindPFlag("insiders", rootCmd.PersistentFlags().Lookup("insiders"))
128128
_ = viper.BindPFlag("repo-access-cache-ttl", rootCmd.PersistentFlags().Lookup("repo-access-cache-ttl"))
129129

130130
// Add subcommands

docs/remote-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The Remote GitHub MCP server has optional headers equivalent to the Local server
6868
- Equivalent to `GITHUB_LOCKDOWN_MODE` env var for Local server.
6969
- If this header is empty, "false", "f", "no", "n", "0", or "off" (ignoring whitespace and case), it will be interpreted as false. All other values are interpreted as true.
7070
- `X-MCP-Insiders`: Enables insiders mode for early access to new features.
71-
- Equivalent to `GITHUB_INSIDERS_MODE` env var or `--insiders-mode` flag for Local server.
71+
- Equivalent to `GITHUB_INSIDERS` env var or `--insiders` flag for Local server.
7272
- If this header is empty, "false", "f", "no", "n", "0", or "off" (ignoring whitespace and case), it will be interpreted as false. All other values are interpreted as true.
7373

7474
> **Looking for examples?** See the [Server Configuration Guide](./server-configuration.md) for common recipes like minimal setups, read-only mode, and combining tools with toolsets.

0 commit comments

Comments
 (0)