Skip to content

Commit 7e894d5

Browse files
Enable scope filtering by default
1 parent cdd35ac commit 7e894d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/github-mcp-server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func init() {
110110
rootCmd.PersistentFlags().Int("content-window-size", 5000, "Specify the content window size")
111111
rootCmd.PersistentFlags().Bool("lockdown-mode", false, "Enable lockdown mode")
112112
rootCmd.PersistentFlags().Duration("repo-access-cache-ttl", 5*time.Minute, "Override the repo access cache TTL (e.g. 1m, 0s to disable)")
113-
rootCmd.PersistentFlags().Bool("enable-scope-filtering", false, "Filter tools based on the token's OAuth scopes")
113+
rootCmd.PersistentFlags().Bool("enable-scope-filtering", true, "Filter tools based on the token's OAuth scopes")
114114

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

0 commit comments

Comments
 (0)