Skip to content

Commit 64a49f3

Browse files
pluskySamMorrowDrums
authored andcommitted
Name the root command after the installed binary
The cobra root command is declared as "server", but the binary is built and distributed as "github-mcp-server". Two user-visible consequences: * "github-mcp-server completion <shell>" emits a completion dispatcher keyed on "server" (_server, __start_server, ...). Installed as completions for github-mcp-server they never fire, because the function names and the final "complete ... server" registration refer to a command that is not on the user's PATH. * "--help" prints "Usage: server [command]", naming a command that does not exist. Name the root command after the binary. cmd/mcpcurl already does this correctly (Use: "mcpcurl"). Nothing else in the tree refers to the root command by name, and no test asserts it.
1 parent a7c3b49 commit 64a49f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cmd/github-mcp-server/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var date = "date"
2828

2929
var (
3030
rootCmd = &cobra.Command{
31-
Use: "server",
31+
Use: "github-mcp-server",
3232
Short: "GitHub MCP Server",
3333
Long: `A GitHub MCP server that handles various tools and resources.`,
3434
Version: fmt.Sprintf("Version: %s\nCommit: %s\nBuild Date: %s", version, commit, date),

0 commit comments

Comments
 (0)