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
// Add global flags that will be shared by all commands
71
+
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
74
rootCmd.PersistentFlags().String("log-file", "", "Path to log file")
67
75
rootCmd.PersistentFlags().Bool("enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file")
68
76
rootCmd.PersistentFlags().Bool("export-translations", false, "Save translations to a JSON file")
69
77
rootCmd.PersistentFlags().String("gh-host", "", "Specify the GitHub hostname (for GitHub Enterprise etc.)")
Copy file name to clipboardExpand all lines: pkg/github/code_scanning.go
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,11 +86,16 @@ func ListCodeScanningAlerts(getClient GetClientFn, t translations.TranslationHel
86
86
mcp.Description("The Git reference for the results you want to list."),
87
87
),
88
88
mcp.WithString("state",
89
-
mcp.Description("State of the code scanning alerts to list. Set to closed to list only closed code scanning alerts. Default: open"),
89
+
mcp.Description("Filter code scanning alerts by state. Defaults to open"),
90
90
mcp.DefaultString("open"),
91
+
mcp.Enum("open", "closed", "dismissed", "fixed"),
91
92
),
92
93
mcp.WithString("severity",
93
-
mcp.Description("Only code scanning alerts with this severity will be returned. Possible values are: critical, high, medium, low, warning, note, error."),
94
+
mcp.Description("Filter code scanning alerts by severity"),
0 commit comments