| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- """
- -----------------------------------------------------------------------------------------
- INTERSEL - 4 cité d'Hauteville - 75010 PARIS
- RCS PARIS 488 379 660 - NAF 721Z
- File : config/settings.py
- Object : Configuration of 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)
- -----------------------------------------------------------------------------------------
- """
- import os
- from enum import Enum
- # ============================================================================
- # MODX API Configuration
- # ============================================================================
- MODX_API_BASE_URL = os.getenv("MODX_API_BASE_URL", "")
- # MODX_API_KEY = os.getenv("MODX_API_KEY", "")
- MODX_API_TIMEOUT = int(os.getenv("MODX_API_TIMEOUT", "30"))
- # ============================================================================
- # Authentification
- # ============================================================================
- AUTH_TYPE = os.getenv("AUTH_TYPE", "")
- AUTH_TOKEN = os.getenv("AUTH_TOKEN", "")
- # ============================================================================
- # Application
- # ============================================================================
- APP_NAME = "LW-Copilot"
- APP_VERSION = "1.0.0"
- LOG_LEVEL = os.getenv("LOG_LEVEL", "DEBUG")
- # ============================================================================
- # Chemins des endpoints MODX
- # ============================================================================
- MODX_ENDPOINTS = {
- "resource": {
- "create": "/tools/resource", # POST /tools/resource
- "read": "/tools/resource/{id}", # GET /tools/resource/{id}
- "update": "/tools/resource/{id}", # PUT /tools/resource/{id}
- "list": "/tools/resources", # GET /tools/resources
- }
- }
|