Repository navigation
docs(forms): show WebMCP tool state with the demo stand-in - #228
Conversation
The Angular Travel demo already adds a navigator.modelContext stand-in in development when the browser has none, and its Signal Forms example registers a sign_up tool. Document how to see that tool, and its agent calls, in the Forms tab. State the limit that comes from having no early hook: a form that registers before the overlay loads shows only when the browser offers a tool list, and its calls are not recorded. Closes pangular-inspector#166
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe documentation now describes the demo app’s WebMCP stand-in and Signal Forms tool setup. It also explains how tool registration timing and browser-provided ChangesWebMCP forms documentation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to This documentation change accurately describes the demo’s WebMCP setup and recording behavior; no material merge risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
sign_uptool, Fill as an agent, and the agent origin in the timeline.modelContextstand-in andprovideExperimentalWebMcpForms()in the demo wiring.The stand-in itself (
src/app/examples/webmcp-demo.ts) shipped with #225. It is only installed when neitherdocument.modelContextnornavigator.modelContextexists, which is Angular's own lookup order.Verification
inspect-formsover MCP reportssign_upas registered:seen: "list"on a direct load, andseen: "register"with a recordedsubmittedcall after navigating from/.form-historyshows theagentorigin.pnpm test:devtools,pnpm typecheck,pnpm format:checkandpnpm docs:buildpass.Closes #166
Summary by CodeRabbit
sign_uptool used by Fill as an agent.sign_up.