diff --git a/company_site/company_site/settings.py b/company_site/company_site/settings.py index 5fcbf01..0026c84 100644 --- a/company_site/company_site/settings.py +++ b/company_site/company_site/settings.py @@ -26,6 +26,7 @@ SECRET_KEY = 'django-insecure-0$+hho_6%-(ud^t%0zos(q&i@2&)9m+u&dgj77&51g$m#hr^0s # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TIANJI_ENABLED = not DEBUG +WEBMCP_ENABLED = False ALLOWED_HOSTS = ["*"] @@ -71,6 +72,7 @@ TEMPLATES = [ 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'public.context_processors.tianji_tracking', + 'public.context_processors.webmcp_context', ], }, }, diff --git a/company_site/docs/agentic-browsing.md b/company_site/docs/agentic-browsing.md index c67bc33..0aac6c3 100644 --- a/company_site/docs/agentic-browsing.md +++ b/company_site/docs/agentic-browsing.md @@ -25,8 +25,17 @@ Test at minimum: | **sitemap.xml** | `GET /sitemap.xml` — public marketing URLs | | **Accessibility tree** | Form labels, semantic nav controls, ARIA on dialogs | | **Layout stability** | Fixed cookie banner, reserved hero/marquee space, font fallbacks | +| **WebMCP tools** | `navigator.modelContext` tools behind `WEBMCP_ENABLED` (see [webmcp.md](webmcp.md)) | -WebMCP is intentionally deferred until browser and agent support stabilizes. +## WebMCP (issue #9) + +When `WEBMCP_ENABLED=True`: + +- Navigation tools (`list_services`, `get_page_content`, `navigate_to_service`, `open_contact_with_subject`) load on all public pages +- Contact page registers `submit_contact_inquiry` and annotates the HTML form with `toolname` / `tooldescription` +- Default is **disabled** (`WEBMCP_ENABLED=False`) until deliberately enabled per environment + +Full tool catalog, Chrome flag setup, and reCAPTCHA notes: **[docs/webmcp.md](webmcp.md)** ## Regression checklist @@ -36,10 +45,12 @@ Before merging public-facing template or CSS changes: 2. Nav dropdowns use `