Repository navigation
Add WebMCP Census example - #69
Draft
NikhilShahi wants to merge 3 commits into
Draft
NikhilShahi wants to merge 3 commits into
NikhilShahi wants to merge 3 commits into
Conversation
…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>
|
Deployment failed for project hyperdatalab with the following error: |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
webmcp-census/, a read-only census of which websites declare WebMCP tools.Each URL in
sites.txtgets its own Hyperbrowser session created withenableWebMcp: true. Playwright navigates to the URL, thensessions.webmcp.listToolsis 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
npm run census): concurrency limit, per-site timeout, and settle window. Sessions are always stopped infinally, including sessions whose creation finishes after the deadline. Writesdata/results.json,data/sites.csv, anddata/tools.csv. CSV cells are guarded against formula injection because tool text is page-controlled.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.npm run census:mock): replaysfixtures/sample-results.json, a real live run, without an API key. The UI falls back to this fixture when no results file exists.npm run demo): runs only againstdemo/demo-page.html, a page in this repo, which the script serves to the cloud browser through Playwright request interception. It makes one blockinginvokeof a hinted read-only tool and onestarton a declarative form that reachesawaiting_submissionand is finished in Live View.--auto-submitclicks Submit from the script instead.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, andnpm run buildare clean./api/scan, andnpm run demo -- --auto-submit.npm run census:mock.To show artifacts inline, enable in settings.