Repository navigation
feat(playground): add webmcp tools - #1488
Draft
maxpatiiuk wants to merge 1 commit into
Draft
maxpatiiuk wants to merge 1 commit into
maxpatiiuk wants to merge 1 commit into
Conversation
maxpatiiuk
marked this pull request as draft
November 19, 2026 06:15
maxpatiiuk
commented
Nov 19, 2026
Contributor
Author
There was a problem hiding this comment.
This PR relies on google/playground-elements#442 getting merged and released first - a new method in playground-elements was needed for a cleaner implementation.
The vendor/ folder will be deleted before this pr is merged
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.
Add WebMCP tools to lit.dev playground.
To try out WebMCP, use supported browser or agent client. See also awesome-webmcp for full list of clients and community integrations.
For example, you can test this using the WebMCP inspector extension combined with a Gemini API key. Note: free tier Gemini API key is extremely throttled, resulting in very slow webmcp experience.
We can also include a polyfil (https://github.com/w3c-oss/webmcp-polyfill) to make the WebMCP API available in all browsers.
Demo
I don't have deploy permission in this repository, so I deployed a preview via github pages: https://maxpatiiuk.github.io/lit.dev/playground/
When opening a playground, 5 WebMCP tools are registered. You can inspect these from Chrome DevTools:
Using any webmcp-capable AI agent of choice, you can ask it to edit the playground and inspect the result for you:
Screen.Recording.2026-11-18.at.21.47.31.mov
AI disclosure
This PR was written by GPT 6.2-Sol, with human review and pushback on every line of code. GPT 6.2-Sol was also used for AI code review.