cloudflare / cloudflare/cloudflare-docs
WebMCP documentation is out of date
- Dominant language
- MDX
- Stars
- 5.2k
- Forks
- 16.7k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 356
Description
### Existing documentation URL(s)
All code snippets in https://developers.cloudflare.com/browser-run/features/webmcp/ reference `navigator.modelContext`, however we're recently moved this API to `document.modelContext`: https://github.com/webmachinelearning/webmcp/pull/184.
### What changes are you suggesting?
While some experimental Chrome versions of the past still have the `navigator.modelContext` API, that is not what all new Chrome versions have, and is not what would ship, so it'd be great to update the docs to reference `document.modelContext()`!
Also note that `registerTool()` now returns a Promise, so it might be good to demonstrate `await`ing it in the docs.
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.