Skip to content

Add WebMCP Census example - #69

Draft
NikhilShahi wants to merge 3 commits into
mainfrom
cursor/webmcp-census-3ef4
Draft

NikhilShahi wants to merge 3 commits into
mainfrom
cursor/webmcp-census-3ef4

Conversation

@NikhilShahi

Copy link
Copy Markdown

Adds webmcp-census/, a read-only census of which websites declare WebMCP tools.

Each URL in sites.txt gets its own Hyperbrowser session created with enableWebMcp: true. Playwright navigates to the URL, then sessions.webmcp.listTools is polled until the tool count is stable. For every tool, the census records the name, title, description, input/output schema, annotations, declarative vs. imperative, provider, and source tab/frame. Results are written to JSON and CSV and shown in a sortable Next.js leaderboard. Tools are listed and never invoked.

What's included

  • CLI (npm run census): concurrency limit, per-site timeout, and settle window. Sessions are always stopped in finally, including sessions whose creation finishes after the deadline. Writes data/results.json, data/sites.csv, and data/tools.csv. CSV cells are guarded against formula injection because tool text is page-controlled.
  • Leaderboard UI (npm run dev): headline ("We checked N sites…"), sortable columns, filters, and expandable per-site tool cards. Descriptions and hints are labelled as page-provided and unverified. Includes an ad-hoc live scan (POST /api/scan) and export routes.
  • Mock mode (npm run census:mock): replays fixtures/sample-results.json, a real live run, without an API key. The UI falls back to this fixture when no results file exists.
  • Seed list: 45 popular sites plus 22 pages listed as WebMCP adopters by GoogleChromeLabs/webmcp-tools and awesome-webmcp.
  • Optional demo (npm run demo): runs only against demo/demo-page.html, a page in this repo, which the script serves to the cloud browser through Playwright request interception. It makes one blocking invoke of a hinted read-only tool and one start on a declarative form that reaches awaiting_submission and is finished in Live View. --auto-submit clicks Submit from the script instead.
  • README: covers the annotations-are-hints caveat (quoting the docs), the proposed-standard caveat, the difference from web-to-agent, and the fact that no stealth, proxy, or CAPTCHA features are used.

Live run (2026-10-14)

We checked 67 sites, and 23 declared tools (139 in total). Among the 45 mainstream sites, only vercel.com (5 tools) and cloudflare.com (2 tools) declared any. Reddit, Stack Overflow, and Zillow returned HTTP 403, and Yelp failed to load. These are reported as-is.

Leaderboard
Expanded site

Verification

  • npm run typecheck, npm run lint, and npm run build are clean.
  • Live: the full census twice, a single-URL scan through /api/scan, and npm run demo -- --auto-submit.
  • Mock: npm run census:mock.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 3 commits October 14, 2026 20:48
…lare

CLI and Next.js leaderboard that open each site in a Hyperbrowser session
with enableWebMcp, list declared tools via sessions.webmcp.listTools, and
write JSON/CSV. Includes a seed list, mock fixture mode from a real live
run, and an optional invoke/awaiting_submission demo on a bundled page.

Co-authored-by: Nikhil Shahi <nshahi1998@gmail.com>
Co-authored-by: Nikhil Shahi <nshahi1998@gmail.com>
Co-authored-by: Nikhil Shahi <nshahi1998@gmail.com>
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project hyperdatalab with the following error:

There is no GitHub account connected to this Vercel account.

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hyperbrowser-app-examples Ready Ready Preview Oct 14, 2026 8:49pm UTC
hyperbrowser-app-examples-tkdy Ready Ready Preview Oct 14, 2026 8:49pm UTC

Request Review

This branch was successfully deployed

2 active deployments
Preview – hyperbrowser-app-examples — 2be781ca Deployed Oct 14, 2026 by vercel[bot]
Preview – hyperbrowser-app-examples-tkdy — 2be781ca Deployed Oct 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants