Skip to content

Commit dd55204

Browse files
Copilotatharva1051
andcommitted
feat: add InsiderMode support to HTTP mode
Add InsiderMode field to HTTPServerConfig and pass it from CLI flags. This ensures that the --insider-mode flag works for HTTP mode just like it does for stdio mode, enabling experimental features when set. Co-authored-by: atharva1051 <53966412+atharva1051@users.noreply.github.com>
1 parent 79635e4 commit dd55204

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/github-mcp-server/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ var (
132132
LogFilePath: viper.GetString("log-file"),
133133
ContentWindowSize: viper.GetInt("content-window-size"),
134134
LockdownMode: viper.GetBool("lockdown-mode"),
135+
InsiderMode: viper.GetBool("insider-mode"),
135136
RepoAccessCacheTTL: &ttl,
136137
}
137138
return ghmcp.RunHTTPServer(httpServerConfig)

internal/ghmcp/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ type HTTPServerConfig struct {
382382
// LockdownMode indicates if we should enable lockdown mode
383383
LockdownMode bool
384384

385+
// InsiderMode indicates if we should enable experimental features
386+
InsiderMode bool
387+
385388
// RepoAccessCacheTTL overrides the default TTL for repository access cache entries.
386389
RepoAccessCacheTTL *time.Duration
387390
}

0 commit comments

Comments
 (0)