Fix WebMCP schema validity on contact form #13

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

Summary

Follow-up to PR #12 / Lighthouse agentic-browsing audit on /contact (score 0.88).

  • Add toolparamdescription to all contact form fields for WebMCP schema validity
  • Move reCAPTCHA outside the annotated <form> so g-recaptcha-response is excluded from the declarative tool schema
  • Always render toolname / tooldescription on the contact form (not gated by WEBMCP_ENABLED)
  • Override django_recaptcha/widget_v3.html to associate captcha with form="contact-form"
  • Update docs with HTTPS Lighthouse commands

Test plan

  • python manage.py test public.tests — 21 tests pass
  • Deploy and re-run Lighthouse agentic-browsing on https://aimloperations.com/contact
  • Confirm webmcp-schema-validity passes (expected overall score 1.0)
## Summary Follow-up to PR #12 / Lighthouse agentic-browsing audit on `/contact` (score 0.88). - Add `toolparamdescription` to all contact form fields for WebMCP schema validity - Move reCAPTCHA outside the annotated `<form>` so `g-recaptcha-response` is excluded from the declarative tool schema - Always render `toolname` / `tooldescription` on the contact form (not gated by `WEBMCP_ENABLED`) - Override `django_recaptcha/widget_v3.html` to associate captcha with `form="contact-form"` - Update docs with HTTPS Lighthouse commands ## Test plan - [x] `python manage.py test public.tests` — 21 tests pass - [ ] Deploy and re-run Lighthouse agentic-browsing on `https://aimloperations.com/contact` - [ ] Confirm `webmcp-schema-validity` passes (expected overall score 1.0)
westfarn added 2 commits 2026-07-02 11:01:56 -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.
Add toolparamdescription to contact fields, move reCAPTCHA outside the annotated form, and always render declarative WebMCP form attributes.
westfarn force-pushed feature/9-webmcp-tool-registration from e2e93e962e to 16fb5e4350 2026-07-02 11:02:17 -07:00 Compare
westfarn merged commit 2fb5204614 into master 2026-07-02 11:02:45 -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#13