You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+92-12Lines changed: 92 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,95 @@ If you don't have Docker, you can use `go` to build the binary in the
96
96
command with the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable set to
97
97
your token.
98
98
99
+
## Tool Configuration
100
+
101
+
The GitHub MCP Server supports enabling or disabling specific groups of functionalities via the `--toolsets` flag. This allows you to control which GitHub API capabilities are available to your AI tools.
102
+
103
+
### Available Toolsets
104
+
105
+
The following sets of tools are available (all are on by default):
// Add global flags that will be shared by all commands
69
+
rootCmd.PersistentFlags().StringSlice("toolsets", github.DefaultTools, "An optional comma separated list of groups of tools to allow, defaults to enabling all")
rootCmd.PersistentFlags().Bool("read-only", false, "Restrict the server to read-only operations")
66
72
rootCmd.PersistentFlags().String("log-file", "", "Path to log file")
67
73
rootCmd.PersistentFlags().Bool("enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file")
68
74
rootCmd.PersistentFlags().Bool("export-translations", false, "Save translations to a JSON file")
69
75
rootCmd.PersistentFlags().String("gh-host", "", "Specify the GitHub hostname (for GitHub Enterprise etc.)")
0 commit comments