mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-07 05:32:43 +08:00
17 lines
406 B
Go
17 lines
406 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/httprunner/httprunner/v5/uixt"
|
|
"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 := uixt.NewMCPServer()
|
|
return mcpServer.Start()
|
|
},
|
|
}
|