Add WebMCP tool registration for agentic browsing (#9) #12

Merged
westfarn merged 1 commits from feature/9-webmcp-tool-registration into master 2026-07-02 09:57:47 -07:00
Owner

Summary

  • Add WEBMCP_ENABLED setting and guarded webmcp-tools.js loader on public pages
  • Register navigation tools (list_services, get_page_content, navigate_to_service, open_contact_with_subject) and contact tool (submit_contact_inquiry)
  • Annotate contact form with declarative WebMCP attributes for Lighthouse form coverage
  • Extend PUBLIC_PAGE_ENTRIES with summaries shared by SEO and WebMCP tools
  • Add docs/webmcp.md, update docs/agentic-browsing.md, and regression tests

Closes #9

Test plan

  • python manage.py test public.tests — 20 tests pass
  • Set WEBMCP_ENABLED=True, enable Chrome experimental web platform features flag
  • Verify homepage HTML includes webmcp-config and webmcp-tools.js
  • Verify /contact form has toolname="submit_contact_inquiry"
  • Run Lighthouse agentic-browsing on / and /contact with experimental flag
  • Call list_services from WebMCP-capable Chrome on homepage
  • Call submit_contact_inquiry on /contact with DEBUG=True (reCAPTCHA bypass)
## Summary - Add `WEBMCP_ENABLED` setting and guarded `webmcp-tools.js` loader on public pages - Register navigation tools (`list_services`, `get_page_content`, `navigate_to_service`, `open_contact_with_subject`) and contact tool (`submit_contact_inquiry`) - Annotate contact form with declarative WebMCP attributes for Lighthouse form coverage - Extend `PUBLIC_PAGE_ENTRIES` with summaries shared by SEO and WebMCP tools - Add `docs/webmcp.md`, update `docs/agentic-browsing.md`, and regression tests Closes #9 ## Test plan - [x] `python manage.py test public.tests` — 20 tests pass - [ ] Set `WEBMCP_ENABLED=True`, enable Chrome experimental web platform features flag - [ ] Verify homepage HTML includes `webmcp-config` and `webmcp-tools.js` - [ ] Verify `/contact` form has `toolname="submit_contact_inquiry"` - [ ] Run Lighthouse agentic-browsing on `/` and `/contact` with experimental flag - [ ] Call `list_services` from WebMCP-capable Chrome on homepage - [ ] Call `submit_contact_inquiry` on `/contact` with `DEBUG=True` (reCAPTCHA bypass)
westfarn added 1 commit 2026-07-02 09:48:58 -07:00
Expose public marketing actions as navigator.modelContext tools behind WEBMCP_ENABLED, including contact submission and service navigation helpers with docs and regression tests.
westfarn merged commit bb5aa6de82 into master 2026-07-02 09:57:47 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/company_site#12