Skip to content

WebMCP debugging annotation - #71123

Open
dgp1130 wants to merge 2 commits into
angular:mainfrom
dgp1130:webmcp-debugging-annotation
Open

dgp1130 wants to merge 2 commits into
angular:mainfrom
dgp1130:webmcp-debugging-annotation

Conversation

@dgp1130

@dgp1130 dgp1130 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

WebMCP introduced a new debugging annotation: https://groups.google.com/a/chromium.org/g/chrome-ai-dev-preview/c/8tQWCpY6gVA/m/nNy_31okEgAJ

This PR exposes the option to declareExperimentalWebMcpTool. It also hard-codes debugging: false for signal forms tools under the assumption that all UI forms are intended for end users. That probably isn't 100% true, but I'd rather not expose this option until developers signal an interest in it.

Existing Angular Chrome DevTools for Agents third party tools are unaffected and not in scope for using this annotation, as they are not implemented with WebMCP. We're talking with Chrome DevTools about potentially moving that direction, but this annotation is not sufficient as-is. The tools we have now require passing serializable references like DOM elements and JS objects which WebMCP does not currently support.

This allows developers to mark specific tools as being intended for agents controlled by developers to debug the application.

See: https://groups.google.com/a/chromium.org/g/chrome-ai-dev-preview/c/8tQWCpY6gVA/m/nNy_31okEgAJ.
UI forms are necessarily for end users and not fit for debugging use cases. There might be some developer-only panels which include signal forms where this annotation might be appropriate, but we're keeping it simple for now and can expand if/when such use cases arise.

See: https://groups.google.com/a/chromium.org/g/chrome-ai-dev-preview/c/8tQWCpY6gVA/m/nNy_31okEgAJ
@dgp1130
dgp1130 requested a review from JeanMeche October 1, 2026 17:03
@dgp1130 dgp1130 added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime area: forms target: minor This PR is targeted for the next minor release core: webmcp Issues/PRs related to Angular's WebMCP support in `@angular/core`. labels Oct 1, 2026
@ngbot ngbot Bot added this to the Backlog milestone Oct 1, 2026
@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label Oct 1, 2026
@dgp1130 dgp1130 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime area: forms core: webmcp Issues/PRs related to Angular's WebMCP support in `@angular/core`. detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants