Skip to main content

start_mcp_server

Function start_mcp_server 

Source
pub fn start_mcp_server(port: u16) -> Result<()>
Expand description

Starts the MCP server on the given port.

Exposes tools:

  • run_scenario(path) — run a TOML scenario file and return the report
  • get_page_state() — return current page URL, title, text content
  • get_browser_console() — return browser console logs

§Errors

Returns an error if the server fails to bind to the port.