Skip to content

feat(playground): add webmcp tools - #1488

Draft
maxpatiiuk wants to merge 1 commit into
lit:mainfrom
maxpatiiuk:main
Draft

maxpatiiuk wants to merge 1 commit into
lit:mainfrom
maxpatiiuk:main

Conversation

@maxpatiiuk

@maxpatiiuk maxpatiiuk commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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:

image

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.

@maxpatiiuk
maxpatiiuk marked this pull request as draft November 19, 2026 06:15

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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.

1 participant