From dcfe9382c600e0a16ade661de9a9c364d76bc297 Mon Sep 17 00:00:00 2001 From: OpenWaygate <27287694+OpenWaygate@users.noreply.github.com> Date: Wed, 22 Apr 2026 22:56:31 +0800 Subject: [PATCH] :sparkles: Align mcp flags --- cmd/mcp.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/mcp.go b/cmd/mcp.go index 8c47ed7..b2f7794 100644 --- a/cmd/mcp.go +++ b/cmd/mcp.go @@ -38,8 +38,14 @@ func init() { mcpCmd.Example = example RootCmd.AddCommand(mcpCmd) - mcpCmd.Flags().BoolVar(&mcpAuth, "auth", false, "Enable MCP OAuth authorization (HTTP mode only)") - mcpCmd.Flags().StringVar(&baseURL, "base-url", "", "Base URL for the MCP server (default: http://localhost:)") + mcpCmd.Flags().BoolVarP( + &mcpAuth, "auth", "a", false, + "Enable MCP OAuth authorization (HTTP mode only)", + ) + mcpCmd.Flags().StringVarP( + &baseURL, "baseUrl", "b", "", + "Base URL for the MCP server (default http://localhost:)", + ) mcpCmd.PreRunE = func(cmd *cobra.Command, args []string) error { port, _ := cmd.Flags().GetInt("port")