Repository navigation
docs: tool-writing tips and testing with Chrome's WebMCP extension - #75
Merged
Merged
Conversation
naji247
approved these changes
Oct 19, 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.
Summary
Docs follow-up to Google's new WebMCP tooling (webmcp-extension and webmcp-skills).
document.modelContextfrom an isolated-world content script, so it only sees native registrations and never the polyfill. Withchrome://flags/#enable-webmcp-testingon, the provider uses the native API and everything shows up.isError: truecounts as a success in the hook (lastResult+onSuccess). Only a thrown error setsstate.errorand callsonError. This wasn't written down anywhere.allow="tools", because the spec gates WebMCP behind thetoolsPermissions Policy feature, which defaults to'self'.start_*vs act-now naming, and accepting natural input like "next Friday".Docs only, no code changes. This doesn't touch the annotation lines that #74 edits.
Test Plan
pnpm lintrunHandlerinuseMcpTool.ts