feat: hrp mcphost

This commit is contained in:
lilong.129
2025-05-16 12:18:57 +08:00
parent ce38ef3be0
commit f8b7a42560
36 changed files with 564 additions and 55 deletions

View File

@@ -10,8 +10,8 @@ import (
// serverCmd represents the server command
var CmdServer = &cobra.Command{
Use: "server start",
Short: "start hrp server",
Long: `start hrp server, call httprunner by HTTP`,
Short: "Start hrp server",
Long: `Start hrp server, call httprunner by HTTP`,
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
router := server.NewRouter()
@@ -23,10 +23,7 @@ var CmdServer = &cobra.Command{
},
}
var (
port int
mcpConfigPath string
)
var port int
func init() {
CmdServer.Flags().IntVarP(&port, "port", "p", 8082, "port to run the server on")