Files
httprunner/cmd/mcpserver.go
2025-05-24 10:46:50 +08:00

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()
},
}