Centralized Behavior Aware AI Context Management Framework: An MCP Inspired Cross-Platform LLM Personalization System
A. P. C. T. De Vaas Gunawardana, D. P. Gamage, G. A. C. T. Dayananda, R. P. U. S. Gunasekara, Dushanthi Sadeepa Kuruppu, Nuwan Kodagoda, Chathura Ekanayake
External supervisor of the research
LLMs are stateless by design: conversations restart without prior context, preferences are lost at context-window overflow, and cross-platform personalization is absent. The paper presents a centralized, behavior-aware context management framework built on a microservices architecture inspired by the Model Context Protocol. It contributes the Adaptive Tiered Context Enrichment (ATCE) algorithm, a token-budget-aware, position-informed memory approach that cuts context assembly latency by 40% against naive full-history injection; a five-detector behavioral drift pipeline covering topic emergence, abandonment, preference reversal, intensity shifts and context expansion; the Core Behaviour Identification Engine (CBIE), combining Adaptive DBSCAN clustering, Mann-Kendall trend analysis and AHP-weighted scoring for long-term profiling; and a tiered PHI classification system reaching 94% precision on critical medical information.