feat(ruby): M5 — webmcp example, canonical example set complete - #2857
Draft
filip-michalsky wants to merge 1 commit into
Draft
feat(ruby): M5 — webmcp example, canonical example set complete#2857filip-michalsky wants to merge 1 commit into
filip-michalsky wants to merge 1 commit into
Conversation
Port of packages/sdk-python/examples/webmcp.py: page.tools discovers the tools the test site registers via navigator.modelContext, invokes calculateSum, and prints the invocation result. Verified live on Browserbase (4 tools discovered, sum 42, status Completed); local verification is network-blocked on this machine (github.io TLS reset — Python example fails identically), the SDK path is the same either way. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
This was referenced Aug 30, 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.
Part of the AP-2857 parity stack:
Stack: #2820 (spike) ← #2854 (M1–M2) ← #2855 (M3) ← #2851 (M4) ← this PR (M5)
Port of
packages/sdk-python/examples/webmcp.py— the last canonical example.page.toolsdiscovers the tools the WebMCP test site registers vianavigator.modelContext, invokescalculateSum, and prints the invocation result. This completes the Ruby port of the canonical example set frompackages/sdk-{ts,python,go}/examples.Verification
Live on Browserbase: 4 tools discovered (
calculateSum,failWithMessage,searchFlights,submitSupportRequest), invocation returned{a: 19, b: 23, sum: 42}with statusCompleted. (Local verification was network-blocked on the dev machine — github.io TLS reset, the Python example fails identically there; the SDK code path is the same either way. TheWebMCPTesting,DevToolsWebMCPSupportChrome flag was already in the Ruby launcher's flag set.)🤖 Generated with Claude Code