Class SelenideMcpServer

java.lang.Object
com.codeborne.selenide.mcp.SelenideMcpServer

public class SelenideMcpServer extends Object
MCP (Model Context Protocol) server that exposes Selenide browser automation as tools consumable by AI assistants such as Claude.

Start via main(String[]) passing CLI arguments to configure the browser session. See the module README for the full list of supported parameters.

  • Constructor Details

    • SelenideMcpServer

      public SelenideMcpServer(SelenideConfig config)
      Creates a server backed by a browser session configured with the given config.
  • Method Details

    • start

      public void start(String[] args)
      Starts the MCP server over stdio and blocks until the JVM shuts down.
      Parameters:
      args - command-line arguments; --caps=codegen enables the codegen toolset
    • main

      public static void main(String[] args)