feat: load uixt mcp server in mcphost

This commit is contained in:
lilong.129
2025-05-20 16:42:09 +08:00
parent 5066c64368
commit 83434cca1e
4 changed files with 85 additions and 10 deletions

16
cmd/mcpserver.go Normal file
View 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()
},
}