feat(router): introduce WebMCP router features - #70213
Open
aminesbdev wants to merge 1 commit into
Open
Conversation
aminesbdev
force-pushed
the
feature/webmcp-router-tool
branch
from
August 15, 2026 13:56
830145c to
18178ed
Compare
Introduce withExperimentalWebMcpRouterTools() router feature to enable browser-side AI assistants (using the emerging WebMCP standard) to query available routes and trigger page navigations. This adds router.list_routes and router.navigate tools.
aminesbdev
force-pushed
the
feature/webmcp-router-tool
branch
from
August 15, 2026 14:55
18178ed to
a9eb02d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a new Router feature,
withExperimentalWebMcpRouterTools(), to@angular/router. This feature enables browser-side AI assistants (using the emerging WebMCP standard) to query available routes and trigger page navigations dynamically.Use Cases & Motivation
This feature enables web applications to expose structured routing APIs directly to browser-side AI assistants (via WebMCP), unlocking several critical modern use cases:
1. Hands-Free & Voice-Driven Navigation
router.navigate, keeping the user focused on their task without manual device interaction.2. Next-Gen Accessibility (A11y)
3. AI-Assisted Journeys (Conversational E-Commerce)
/checkout) by invokingrouter.navigate, creating a smooth, unified user journey.4. Design-Resilient AI Interactions (Zero Maintenance)
/settings) rather than fragile, visual-based DOM scraping.Proposed Changes
packages/router/src/webmcp.ts: New module implementingwithExperimentalWebMcpRouterTools()and registering the toolsrouter.list_routesandrouter.navigate.packages/router/src/provide_router.ts&index.ts: Exported the new feature kind and creator function.packages/router/test/webmcp.spec.ts: Added web-based browser integration tests for both router tools (verifying that they pass on Chromium and Firefox).