Skip to content

Commit d42ced3

Browse files
committed
adding default toolset
1 parent 2efa8e8 commit d42ced3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/github-mcp-server/main.go

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func init() {
6969
rootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n")
7070

7171
// Add global flags that will be shared by all commands
72-
rootCmd.PersistentFlags().StringSlice("toolsets", github.DefaultTools, "An optional comma separated list of groups of tools to allow, defaults to enabling all")
72+
rootCmd.PersistentFlags().StringSlice("toolsets", github.DefaultTools, "An optional comma separated list of groups of tools to allow")
7373
rootCmd.PersistentFlags().Bool("dynamic-toolsets", false, "Enable dynamic toolsets")
7474
rootCmd.PersistentFlags().Bool("read-only", false, "Restrict the server to read-only operations")
7575
rootCmd.PersistentFlags().String("log-file", "", "Path to log file")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require (
3131
github.com/fsnotify/fsnotify v1.8.0 // indirect
3232
github.com/go-viper/mapstructure/v2 v2.4.0
3333
github.com/google/go-github/v71 v71.0.0 // indirect
34-
github.com/google/go-querystring v1.1.0 // indirect
34+
github.com/google/go-querystring v1.1.0
3535
github.com/google/uuid v1.6.0 // indirect
3636
github.com/gorilla/mux v1.8.0 // indirect
3737
github.com/inconshreveable/mousetrap v1.1.0 // indirect

pkg/github/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
type GetClientFn func(context.Context) (*github.Client, error)
1515
type GetGQLClientFn func(context.Context) (*githubv4.Client, error)
1616

17-
var DefaultTools = []string{"all"}
17+
var DefaultTools = []string{"context", "repos", "issues", "pull_requests"}
1818

1919
func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetGQLClientFn, getRawClient raw.GetRawClientFn, t translations.TranslationHelperFunc, contentWindowSize int) *toolsets.ToolsetGroup {
2020
tsg := toolsets.NewToolsetGroup(readOnly)

0 commit comments

Comments
 (0)