| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- """
- -----------------------------------------------------------------------------------------
- INTERSEL - 4 cité d'Hauteville - 75010 PARIS
- RCS PARIS 488 379 660 - NAF 721Z
- File : core/context/context_manager.py
- Object : Context manager for the MCP server
- -----------------------------------------------------------------------------------------
- Modifications :
- - 2026/01/16 - Damien Lugagne-Delpon - V1.0.0- Creation
- -----------------------------------------------------------------------------------------
- @copyright : Intersel 2026
- @author : Damien Lugagne-Delpon - damien.lugagne-delpon@livinweb.fr
- @version : 1.0.0 (to be updated to the current_version of the developed software if file is touched)
- -----------------------------------------------------------------------------------------
- """
- from .context_schema import DEFAULT_CONTEXT
- class ContextManager:
- """Context manager for the MCP server."""
-
- def __init__(self):
- """Initialize the context manager."""
- self.context = DEFAULT_CONTEXT.copy()
-
- def add_context(self, key: str, value):
- """"""
- pass
-
- def remove_context(self, key: str):
- """Supprimer du contexte."""
- pass
-
- def get_context(self):
- """Obtenir le contexte complet."""
- return self.context
|