Add with-sightmap-webmcp: a Next.js example that ships WebMCP tools from its corpus - #2
Merged
Conversation
…rom its corpus A three-route Next.js 16 task board with a curated .sightmap/ (100% direct coverage), a .sightkick/ layer of nine view-scoped tools and two journeys, three Gherkin features, and their plans stamped against the feature text and the compiled IR. <SightkickTools/> in the root layout; sightmap-next build as prebuild. CI gains a job that replays the plans through agent-browser. Verified on Chrome for Testing 152 with agent-browser 0.36.0: webmcp list enumerates the compiled tools over CDP, all three plans pass through webmcp invoke, and the init-script path coexists with the in-app boot. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FZAbWuynKT4NqXFMwtoBA Signed-off-by: Claude <noreply@anthropic.com>
This was referenced Sep 5, 2026
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.
Stack 2/3 — the example. Builds on #1 (the package); #3 is the write-up. Written to lift into
vercel/next.js/examples/later, once reviewed here.What this changes
Adds
examples/with-sightmap-webmcp: a three-route Next.js 16 task board with a curated.sightmap/, a.sightkick/tool layer (nine tools, two journeys), three Gherkin features, and their stamped plans.<SightkickTools/>sits in the root layout;sightmap-next buildruns asprebuild. CI gains aplansjob that installs Chrome 152 viaagent-browser installand replays the plans. Two screenshots underdocs/.Both screenshots were taken by agent-browser after it invoked the tools, not by clicking. The fourth row and the "Done" badge are the results of
add_taskandopen_task→mark_done.Why
To show the whole loop on the stock App Router, verified rather than described. Chrome for Testing 152, agent-browser 0.36.0:
How a scenario line becomes a replayable step — resolved once by an agent, then replayed with no model:
flowchart LR g["<b>features/triage.feature</b><br/>When I mark it done"] -- "agent, once" --> p["<b>plans/triage.plan.json</b><br/>tool: mark_done<br/>expect: ok"] p -- "sightmap-next run-plan" --> ab["agent-browser<br/>webmcp invoke mark_done"] ab --> rt["Sightkick runtime<br/>click MarkDoneButton<br/>wait_for TaskDetail[status=Done]"] rt --> r["{ ok: true, value: 'Done',<br/>guidance: [back_to_board] }"] r -. "hash of feature + IR<br/>stamped in the plan" .-> pTwo things the example surfaced, both recorded in #3: agent-browser only sees the browser's native WebMCP registry (a polyfill is invisible; Chromium 141 reports
webmcp_unsupported, 152 works), and a child component name reused under two parents in one view resolves to the last definition at compile time.Corpus coverage from
sightmap snapshot --coverageon the same Chrome build:/20/20 T1,/tasks/16/6 T1, zero orphans.Checklist
git commit -s)npm testpasses;npm run build:exampleandnpm run test:planspass (3/3) with the app running🤖 Generated with Claude Code
https://claude.ai/code/session_013FZAbWuynKT4NqXFMwtoBA
Generated by Claude Code