Cline browser testing with MCP
Add Monito to Cline's MCP settings so Cline can test a URL in a real browser and read the verdict, report and screenshot evidence.
Coding agents · Checked 2026-11-26
Connect Cline to Monito and describe the journey you changed. Use the browser verdict and evidence to decide what needs fixing.
How it works
- Cline calls check through the Monito MCP connection with a URL and expected behavior.
- Monito exercises that behavior in a browser and returns a verdict or an unfinished runId for wait_for_run.
- Cline reads get_run and get_screenshot to inspect the evidence, and returns the report link alongside its explanation.
Set it up
Browser checks use credits without a subscription requirement. OAuth and CLI browser sign-in do not require an API key. Creating API keys, CI bindings or deploy webhooks requires Pro or Team. Plan details
- In the Cline panel, click the MCP Servers icon, open the Configure tab, and click Configure MCP Servers. That opens the MCP settings JSON the extension uses. Add the configuration below under mcpServers. The config docs place this file at ~/.cline/data/settings/cline_mcp_settings.json for the IDE, the CLI, and the SDK. CLINE_MCP_SETTINGS_PATH overrides that path.
- Set type to streamableHttp and url to https://www.monito.dev/api/mcp. Omitting type defaults to the legacy sse transport. Monito's hosted server reads an API key from the x-api-key header. Cline's published remote example puts a bearer token in an Authorization header, and that header is not the one Monito reads. The CLI wizard lists an Authorize OAuth action for a remote server. Our team has not confirmed that action with Monito, so this page uses the API key.
- The overview says to store secrets in environment variables. The current extension source expands ${env:VAR_NAME} in header values before it connects, so set MONITO_API_KEY and use the header below. Do not commit the key. The Remote Servers tab can add the server name, URL, and Streamable HTTP transport. Add the header in the JSON, because those tab steps do not include headers. Ask Cline to check a deployed URL and show the verdict and report. For HTTP localhost, configure the local command below instead. A local server in this file uses command and args rather than url.
{
"mcpServers": {
"monito": {
"type": "streamableHttp",
"url": "https://www.monito.dev/api/mcp",
"headers": {
"x-api-key": "${env:MONITO_API_KEY}"
},
"disabled": false,
"autoApprove": []
}
}
}Merge the monito entry into an existing mcpServers object. Remote servers use url and type streamableHttp. The header name is x-api-key. The ${env:MONITO_API_KEY} value matches the extension's environment-variable syntax. disabled false and an empty autoApprove list match the published remote example. Checked against the Cline MCP docs and the current extension source on 2026-11-26. Our team has not run this configuration in Cline.
Follow the verdict to the evidence
Call check with url and expectation, for example your deployed cart URL and "The total includes shipping". Keep projectId stable for previews whose hostname changes.
When done is false, call wait_for_run with the returned runId. Do not launch another check just to keep waiting. Reuse requestId after an uncertain launch response to avoid another charge.
Call get_run with runId to read the verdict, bug reports, failed requests, console messages and screenshot names. Then call get_screenshot with run.sessionId and a fileName from evidence.screenshots, not a screenshot URL.
After a fix, call check again. Use save_check with checkId and a name to keep a deployed check as a test; add its automation separately.
Default tools and the local server
The default tools are check, save_check, get_run, get_screenshot, wait_for_run, list_projects, list_scenarios, list_runs, run_scenario, and run_project.
In CLI 4.8.1, the local server's check,core-read default has seven tools and leaves out list_runs, run_project, and get_screenshot. Pass --toolsets check,core to include them; that also adds the rest of the core toolset, including tools that create and change scenarios. The hosted server includes all three by default.
npx -y @monitodev/cli auth login npx -y @monitodev/cli mcp --toolsets check,core
Use this command as your client's local server to include screenshot access on CLI 4.8.1. Sign in once before starting it. Keep both the MCP server and your dev server running for localhost checks.
Using another coding agent?
Cursor, Windsurf, and Claude Code each have a setup page. The MCP server page covers the hosted endpoint, toolsets, and credits for any client.
Cline sources
The MCP Servers panel, the cline_mcp_settings.json path, the url field, and the streamableHttp type on this page were checked against the Cline MCP docs on 2026-11-26. Monito reads the API key from the x-api-key header. Cline's overview example uses an Authorization bearer token. The CLI wizard documents an Authorize OAuth action for a remote server. Our team has not confirmed that action with Monito. Header values of the form ${env:NAME} were checked in the current Cline extension source the same day. The benchmark reports below do not validate this configuration. Our team has not run it in Cline.
Example result
Example result: field names from the CLI, values illustrative
These verdict fields come from CLI 4.8.1 check --json. This illustrative failure describes a cart total that omits shipping. Timing and billing values are left null in this example. Use the returned reportUrl for the actual evidence.
{
"checkId": "check_example",
"projectId": "project_example",
"runId": "run_example",
"done": true,
"status": "failed",
"cause": "product_defect",
"causeLabel": "App bug",
"durationMs": null,
"creditsCharged": null,
"reportUrl": "https://www.monito.dev/session/session_example",
"firstFailure": "The cart total does not include shipping."
}Limits to account for
The hosted server at https://www.monito.dev/api/mcp tests deployed URLs. It rejects localhost and private-network URLs. The local server, npx -y @monitodev/cli mcp, reaches HTTP localhost through a tunnel; the browser still runs in the cloud.
Local checks have no saved logins or request headers. They cannot be scheduled or added to suites, automations or status pages, even after saving.
A failed run reports a bug. An error is not a verdict about your app. Read the evidence before asking your agent to change code.
Comparable benchmark runs
Our team published these runs in the reliability benchmark. They show comparable browser journeys, not executions of the configuration or illustrative result above. Run your own scenario before relying on this integration.