Quick access

Find tools and guides

For machines: llms.txt · JSON Feed

The hotel is found. Who gets to book? Testing WebMCP in Cloudflare Browser Run

The hotel demo shows where an agent must wait for a person, and why Lab and Kitesurf support different kinds of tests.

AI-generated depiction

Give a browser agent a clear acceptance task: “Find a hotel in Paris with breakfast and prepare the booking. Do not complete it until I approve.” The documented hotel example in Cloudflare Browser Run makes the handoff visible: search and selection lead to start_booking and then complete_booking; in this example, the last call waits for a person to select Confirm Reservation in the browser.

For an operator, finding a hotel is only half the question. Who may create a binding reservation, and can the test surface show the point where a person must step in? Since September 28, 2026, Lab and Kitesurf have supported WebMCP through document.modelContext; Lab no longer exposes the old navigator.modelContextTesting API. That Cloudflare changelog changes where the inspection begins.

WebMCP lets a website expose structured tools to agents: a name, description, inputs, and executable page code. In Cloudflare’s hotel example, the available list changes with page state: search first, then filtering, and booking actions after a hotel is selected. That replaces some manual button-finding with named actions. It still does not tell you what a real booking service will do when one of those actions runs. (Cloudflare Browser Run) The current WebMCP specification is a Community Group draft, not a W3C Standard. (WebMCP draft)

The confirmation belongs to this specific demo. Chrome says a site can request user interaction for sensitive actions such as a purchase; WebMCP does not require every tool or application to pause that way. The browser’s tools Permissions Policy can limit which contexts may register tools where that policy is supported. It does not decide whether the signed-in account may book this room at this price. Those are separate layers in Chrome for Developers and the WebMCP draft.

That changes the review question from “Does complete_booking exist?” to “What does its handler actually do?” The current specification draft warns that a tool’s declared intent can differ from its behavior; its example describes a cart action that appears to be for review but actually makes a purchase. Names, schemas, and hints such as “read-only” are review material, not proof of the effect. (WebMCP security section)

A bridge can expose tools; it cannot grant booking rights

Cloudflare described an optional WebMCP developer preview on August 6, 2026: a domain owner could switch it on in the dashboard, after which Cloudflare would add a bridge-script reference from the same origin to HTML responses and register selected tool packs. The Site MCP Server pack calls the site's own MCP endpoint using the visitor's existing session, according to Cloudflare. This is an opt-in path for a domain owner, not automatic support for every website—and it adds no booking authorization. Cloudflare’s announcement dates that design to August 6.

For a real application, the booking decision should live in its business logic: recheck the account and permission, bind approval to the hotel, dates, total price, and terms, then record exactly one test action. That is an operating recommendation, not a claim that an arbitrary WebMCP site already has these controls.

Choose the browser around the human handoff

Choose Lab when an automated browser test using the Chrome DevTools Protocol (CDP) must pause so a person can inspect or provide the confirmation in the same live browser session. Cloudflare provides a live view for Lab. It uses experimental Chrome features, though, and Cloudflare says not to use Lab for production workloads. (Cloudflare Browser Run)

Choose Kitesurf for tool discovery and flows that do not require human input inside the running CDP test. Kitesurf has no live view; an agent using Chrome DevTools MCP cannot complete a booking confirmation that waits for a person. Someone can run such a tool manually in the WebMCP panel in the Kitesurf playground. Cloudflare announced Kitesurf support on September 28; its current Browser Run guidance explains the operational difference. (Kitesurf update)

Cloudflare also documents two Kitesurf isolation limits: it does not currently implement the WebMCP tools Permissions Policy or filter tools by origin. Kitesurf also does not expose through CDP tools registered in iframes or popups. So a Kitesurf test should not be treated as proof that those browser isolation boundaries are enforced. Cloudflare’s current documentation describes these limits.

Read first; then release a test state

Start in an isolated test application with synthetic accounts and booking data. In DevTools, open Application > WebMCP and, in Lab, inspect tool names, descriptions, input schemas, and activity first. Run search and filtering only; the backend should record no write, payment, or booking event. Cloudflare’s demo documentation shows that the tool list can change with the page and the action taken. Cloudflare Browser Run

Cloudflare says Lab sessions count toward regular Browser Run limits and pricing. Check the account quota before starting, then close the temporary session after testing. Checking the quota and closing the session are operational recommendations; the limits and pricing statement comes from Cloudflare’s documentation.

Next, call start_booking in that same test system and stop before confirmation. Check that the application and backend show a specific pending reference and that no confirmed booking record exists. This tests the boundary between “prepared” and “committed” without reaching a real hotel provider.

Only in a second run that is guaranteed to target a test or mock application should a person select the confirmation. Then check that exactly one test record exists with the same booking details. The Cloudflare demo waits for that click; your application may behave differently. Do not run this step against a real hotel account or payment method.

Apply the same release rule to either backend: verify that a test action stays pending until the application presents that exact transaction for review; confirm only in the isolated environment and only after that review. The application decides whether the booking is authorized; WebMCP makes its entry point visible.

Sources