Middle
What is MCP?
sobes.tech AI
Answer from AI
MCP (Model-View-Controller-Presenter) is an architectural pattern that extends the classic MVC, where the Presenter acts as an intermediary between the Model and the View. In the frontend, MCP helps separate presentation logic from business logic, improving testability and maintainability.
- Model — data and business logic.
- View — UI components that display data.
- Presenter — handles user interactions, updates the Model and View.
Example: The Presenter receives events from the View, updates the Model, and then updates the View with new data.