To build AI-controllable frontend apps with MCP-Web, you need to model your frontend state declaratively. Break your state into atomic and derived units, and describe it with Zod schemas. Exposing your state as tools is then straightforward. MCP-Web comes with utilities to streamline all this.