Skip to content

Commit 784e8b1

Browse files
Merge branch 'main' into tonytrg/add-constraints
2 parents 29969a8 + b72a591 commit 784e8b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/github-mcp-server/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var (
2929
Use: "server",
3030
Short: "GitHub MCP Server",
3131
Long: `A GitHub MCP server that handles various tools and resources.`,
32-
Version: fmt.Sprintf("%s (%s) %s", version, commit, date),
32+
Version: fmt.Sprintf("Version: %s\nCommit: %s\nBuild Date: %s", version, commit, date),
3333
}
3434

3535
stdioCmd = &cobra.Command{
@@ -65,6 +65,8 @@ var (
6565
func init() {
6666
cobra.OnInitialize(initConfig)
6767

68+
rootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n")
69+
6870
// Add global flags that will be shared by all commands
6971
rootCmd.PersistentFlags().StringSlice("toolsets", github.DefaultTools, "An optional comma separated list of groups of tools to allow, defaults to enabling all")
7072
rootCmd.PersistentFlags().Bool("dynamic-toolsets", false, "Enable dynamic toolsets")

0 commit comments

Comments
 (0)