I gave Claude Code direct control over our SaaS in-app messaging (Without breaking production)
Описание и применение
С помощью Model Context Protocol (MCP) и JSON‑правил AI‑агент Claude Code управляет внутренними сообщениями SaaS без изменения кода, уменьшая размер бандла и предотвращая стилистические ошибки.
Задача
AI agents generating ad‑hoc React components for temporary in‑app announcements risk bundle bloat, CSS inconsistencies, and SSR layout breaks.
Результат
Dynamic in‑app messaging is now driven by deterministic JSON rules, eliminating bundle bloat and styling drift while maintaining zero server latency.
Рабочий процесс
- 1. Prompt Claude Code or Cursor to announce a release.
- 2. Agent connects to https://www.neotic.app/api/mcp using OAuth 2.1 PKCE S256.
- 3. Agent emits a structured JSON payload with slot_id, rules (path_pattern, user_properties), and content (headline, cta).
- 4. Browser evaluates rules locally via a micro‑SDK (<4KB) with zero server latency.
- 5. Matching rules trigger the in‑app message without adding new React components.
Доказательства
Model Context Protocol (MCP) is usually framed as a way for LLMs to read local files or query SQL databases. But the highest‑leverage application of MCP isn't reading data—it's runtime app orchestration.
The better architectural pattern is Deterministic JSON Rules governed by MCP.
- Дата записи: 2026-09-21T22:00:23.142Z