Skip to content

Add webmcp-core: zero-dependency navigator.modelContext polyfill (2.94KB) #2

@up2itnow0822

Description

@up2itnow0822

Following the suggestion from @domfarolino in webmachinelearning/webmcp#127 — filing here as requested.

webmcp-core

A community polyfill implementing the navigator.modelContext API surface for environments without native WebMCP support.

Key properties:

  • 2.94KB zero-dependency ES module (no build tools required)
  • Implements navigator.modelContext.registerTool(), tool invocation lifecycle, and context management
  • Feature-detects native browser support — defers to native when available (Chrome 146+)
  • SSR-safe with typeof navigator guards
  • Drop-in script tag or ESM import

Package: @webmcp/core (npm)
Source: WebMCP-org/npm-packages

Happy to add any information that would help the listing. Thanks for the redirect!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions