feat: implement hgctl agent & mcp add subcommand (#3051)

This commit is contained in:
xingpiaoliang
2025-10-27 13:38:00 +08:00
committed by GitHub
parent 1bcef0c00c
commit 2076ded06f
13 changed files with 1537 additions and 77 deletions

View File

@@ -17,6 +17,7 @@ package hgctl
import (
"os"
"github.com/alibaba/higress/hgctl/pkg/agent"
"github.com/alibaba/higress/hgctl/pkg/plugin"
"github.com/spf13/cobra"
)
@@ -42,6 +43,8 @@ func GetRootCommand() *cobra.Command {
rootCmd.AddCommand(plugin.NewCommand())
rootCmd.AddCommand(newCompletionCmd(os.Stdout))
rootCmd.AddCommand(newCodeDebugCmd())
rootCmd.AddCommand(agent.NewMCPCmd())
rootCmd.AddCommand(agent.NewAgentCmd())
return rootCmd
}