toolmark-monorepo / @toolmark/core/webmcp / WebMcpPolyfillModule
Interface: WebMcpPolyfillModule
Defined in: packages/core/src/webmcp/model-context.ts:87
Experimental
The module shape webmcp({ polyfill }) expects from its loader (() => import('@mcp-b/webmcp-polyfill')). WebMCP is an origin-trial API; this adapter is outside semver (D28).
Methods
initializeWebMCPPolyfill()
initializeWebMCPPolyfill(
options?):void
Defined in: packages/core/src/webmcp/model-context.ts:92
Experimental
Installs document.modelContext when the browser has none (no-op in insecure contexts).
Parameters
options?
Polyfill options.
installTestingShim?
boolean
Returns
void