mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
feat: load uixt mcp server in mcphost
This commit is contained in:
16
cmd/mcpserver.go
Normal file
16
cmd/mcpserver.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/httprunner/httprunner/v5/mcphost"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var CmdMCPServer = &cobra.Command{
|
||||
Use: "mcp-server",
|
||||
Short: "Start MCP server for UI automation",
|
||||
Long: `Start MCP server for UI automation, expose device driver via MCP protocol`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
mcpServer := mcphost.NewMCPServer()
|
||||
return mcpServer.Start()
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user