From 06ce9fb1f214887ac3178ed955ad33ed4a8f2d21 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Tue, 24 Mar 2026 08:49:59 +0100 Subject: [PATCH] chore(config) : update reference.php + remove disabled config files Co-Authored-By: Claude Opus 4.6 (1M context) --- config/packages/mcp.yaml.disabled | 20 ----------- config/packages/rate_limiter.yaml.disabled | 6 ---- config/reference.php | 41 +++++++++++++++++++--- 3 files changed, 37 insertions(+), 30 deletions(-) delete mode 100644 config/packages/mcp.yaml.disabled delete mode 100644 config/packages/rate_limiter.yaml.disabled diff --git a/config/packages/mcp.yaml.disabled b/config/packages/mcp.yaml.disabled deleted file mode 100644 index ddc2cc2..0000000 --- a/config/packages/mcp.yaml.disabled +++ /dev/null @@ -1,20 +0,0 @@ -mcp: - app: 'inventory' - version: '1.0.0' - description: 'Inventory MCP Server - Gestion inventaire industriel (machines, pièces, composants, produits)' - instructions: | - Serveur MCP pour gérer un inventaire industriel. - Entités principales : Machine, Composant, Pièce, Produit, Site, Constructeur. - Utilisez search_inventory pour chercher dans toutes les entités. - Utilisez get_model_type pour comprendre la structure attendue avant de créer un composant ou une pièce. - Consultez la resource inventory://schema/entities pour voir le schéma complet. - Authentification requise : envoyez X-Profile-Id et X-Profile-Password dans les headers HTTP. - client_transports: - stdio: true - http: true - http: - path: /_mcp - session: - store: file - directory: '%kernel.cache_dir%/mcp-sessions' - ttl: 3600 diff --git a/config/packages/rate_limiter.yaml.disabled b/config/packages/rate_limiter.yaml.disabled deleted file mode 100644 index 87b497b..0000000 --- a/config/packages/rate_limiter.yaml.disabled +++ /dev/null @@ -1,6 +0,0 @@ -framework: - rate_limiter: - mcp_auth: - policy: sliding_window - limit: 5 - interval: '1 minute' diff --git a/config/reference.php b/config/reference.php index 42493cb..a813706 100644 --- a/config/reference.php +++ b/config/reference.php @@ -1,7 +1,5 @@ , * }, * rate_limiter?: bool|array{ // Rate limiter configuration - * enabled?: bool|Param, // Default: false + * enabled?: bool|Param, // Default: true * limiters?: array, * } + * @psalm-type McpConfig = array{ + * app?: scalar|null|Param, // Default: "app" + * version?: scalar|null|Param, // Default: "0.0.1" + * description?: scalar|null|Param, // Default: null + * icons?: list, + * }>, + * website_url?: scalar|null|Param, // Default: null + * pagination_limit?: int|Param, // Default: 50 + * instructions?: scalar|null|Param, // Default: null + * client_transports?: array{ + * stdio?: bool|Param, // Default: false + * http?: bool|Param, // Default: false + * }, + * discovery?: array{ + * scan_dirs?: list, + * exclude_dirs?: list, + * }, + * http?: array{ + * path?: scalar|null|Param, // Default: "/_mcp" + * session?: array{ + * store?: "file"|"memory"|"cache"|Param, // Default: "file" + * directory?: scalar|null|Param, // Default: "%kernel.cache_dir%/mcp-sessions" + * cache_pool?: scalar|null|Param, // Default: "cache.mcp.sessions" + * prefix?: scalar|null|Param, // Default: "mcp-" + * ttl?: int|Param, // Default: 3600 + * }, + * }, + * } * @psalm-type ConfigType = array{ * imports?: ImportsConfig, * parameters?: ParametersConfig, @@ -1626,6 +1655,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * nelmio_cors?: NelmioCorsConfig, * api_platform?: ApiPlatformConfig, * lexik_jwt_authentication?: LexikJwtAuthenticationConfig, + * mcp?: McpConfig, * "when@dev"?: array{ * imports?: ImportsConfig, * parameters?: ParametersConfig, @@ -1638,6 +1668,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * nelmio_cors?: NelmioCorsConfig, * api_platform?: ApiPlatformConfig, * lexik_jwt_authentication?: LexikJwtAuthenticationConfig, + * mcp?: McpConfig, * }, * "when@prod"?: array{ * imports?: ImportsConfig, @@ -1651,6 +1682,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * nelmio_cors?: NelmioCorsConfig, * api_platform?: ApiPlatformConfig, * lexik_jwt_authentication?: LexikJwtAuthenticationConfig, + * mcp?: McpConfig, * }, * "when@test"?: array{ * imports?: ImportsConfig, @@ -1665,6 +1697,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * api_platform?: ApiPlatformConfig, * lexik_jwt_authentication?: LexikJwtAuthenticationConfig, * dama_doctrine_test?: DamaDoctrineTestConfig, + * mcp?: McpConfig, * }, * ...