Skip to content

Commit 067a1c9

Browse files
authored
Remove ModelContextClient for now (#205)
1 parent b8617aa commit 067a1c9

2 files changed

Lines changed: 3 additions & 32 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ As the WebMCP proposal continues to evolve with community and stakeholder feedba
411411

412412
- **Output schema**: Supporting structured `outputSchema` contracts (complementing `inputSchema`) to help LLMs reliably reason about the return values of tools. See [Issue #9](https://github.com/webmachinelearning/webmcp/issues/9).
413413

414-
- **User prompting and elicitation**: Exploring a way for a tool to prompt the user for confirmation when tools require explicit user authorization. This could be done by delegating to the agent and its harness, or by invoking native browser permission dialogue outside of the agent loop. See [Issue #165](https://github.com/webmachinelearning/webmcp/issues/165) and [Issue #50](https://github.com/webmachinelearning/webmcp/issues/50) for discussion about the [`ModelContextClient`](https://webmachinelearning.github.io/webmcp/#modelcontextclient) interface.
414+
- **User prompting and elicitation**: Exploring a way for a tool to prompt the user for confirmation when tools require explicit user authorization. This could be done by delegating to the agent and its harness, or by invoking native browser permission dialogue outside of the agent loop. See [Issue #165](https://github.com/webmachinelearning/webmcp/issues/165) and [Issue #50](https://github.com/webmachinelearning/webmcp/issues/50) for discussion about the `ModelContextClient` interface.
415415

416416
- **Tool progress reporting**: For long-running tasks (e.g., batch processing or generating content), the agent may want a way to track a tool's progress. We are exploring how this intersects with the established [MCP Progress](https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/progress) specification.
417417

index.bs

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ dictionary ToolAnnotations {
482482
boolean untrustedContentHint = false;
483483
};
484484

485-
callback ToolExecuteCallback = Promise<any> (object input, ModelContextClient client);
485+
callback ToolExecuteCallback = Promise<any> (object input);
486486
</xmp>
487487

488488
<dl class="domintro">
@@ -510,7 +510,7 @@ callback ToolExecuteCallback = Promise<any> (object input, ModelContextClient cl
510510

511511
<dt><code><var ignore>tool</var>["{{ModelContextTool/execute}}"]</code></dt>
512512
<dd>
513-
<p>A callback function that is invoked when an [=agent=] calls the tool. The function receives the input parameters and a {{ModelContextClient}} object.
513+
<p>A callback function that is invoked when an [=agent=] calls the tool. The function receives the input parameters.
514514

515515
<p>The function can be asynchronous and return a promise, in which case the [=agent=] will receive the result once the promise is resolved.
516516
</dd>
@@ -559,35 +559,6 @@ dictionary ModelContextRegisterToolOptions {
559559
</dl>
560560

561561

562-
<h4 id="model-context-client">ModelContextClient Interface</h4>
563-
564-
The {{ModelContextClient}} interface represents an [=agent=] executing a tool provided by the site through the {{ModelContext}} API.
565-
566-
<xmp class="idl">
567-
[Exposed=Window, SecureContext]
568-
interface ModelContextClient {
569-
Promise<any> requestUserInteraction(UserInteractionCallback callback);
570-
};
571-
572-
callback UserInteractionCallback = Promise<any> ();
573-
</xmp>
574-
575-
<dl class="domintro">
576-
<dt><code><var ignore>client</var>.{{ModelContextClient/requestUserInteraction(callback)}}</code></dt>
577-
<dd>
578-
<p>Asynchronously requests user input during the execution of a tool.
579-
580-
<p>The callback function is invoked to perform the user interaction (e.g., showing a confirmation dialog), and the promise resolves with the result of the callback.
581-
</dd>
582-
</dl>
583-
584-
<div algorithm>
585-
The <dfn method for=ModelContextClient>requestUserInteraction(<var ignore>callback</var>)</dfn> method steps are:
586-
587-
1. TODO: fill this out.
588-
589-
</div>
590-
591562
<h3 id="declarative-api">Declarative WebMCP</h3>
592563

593564
This section is entirely a TODO. For now, refer to the [explainer draft](https://github.com/webmachinelearning/webmcp/pull/76).

0 commit comments

Comments
 (0)