Skip to content

Commit 4d679fd

Browse files
committed
Flags on the http command
1 parent 7801dc5 commit 4d679fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/github-mcp-server/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ func init() {
138138
rootCmd.PersistentFlags().Duration("repo-access-cache-ttl", 5*time.Minute, "Override the repo access cache TTL (e.g. 1m, 0s to disable)")
139139

140140
// HTTP command flags
141-
rootCmd.PersistentFlags().Int("port", 8082, "HTTP server port")
142-
rootCmd.PersistentFlags().String("base-url", "", "Base URL where this server is publicly accessible (for OAuth resource metadata)")
143-
rootCmd.PersistentFlags().String("base-path", "", "Externally visible base path for the HTTP server (for OAuth resource metadata)")
141+
httpCmd.PersistentFlags().Int("port", 8082, "HTTP server port")
142+
httpCmd.PersistentFlags().String("base-url", "", "Base URL where this server is publicly accessible (for OAuth resource metadata)")
143+
httpCmd.PersistentFlags().String("base-path", "", "Externally visible base path for the HTTP server (for OAuth resource metadata)")
144144

145145
// Bind flag to viper
146146
_ = viper.BindPFlag("toolsets", rootCmd.PersistentFlags().Lookup("toolsets"))

0 commit comments

Comments
 (0)