From 4b472d1883098ffd724bf59b677dfb7e4e06e6b6 Mon Sep 17 00:00:00 2001 From: Pankaj Telang Date: Fri, 14 Nov 2025 12:51:10 -0500 Subject: [PATCH] Add skipped-workloads to environment mapping --- src/mcp_optimizer/cli.py | 4 +--- src/mcp_optimizer/config.py | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mcp_optimizer/cli.py b/src/mcp_optimizer/cli.py index 314fffb..c0af79e 100644 --- a/src/mcp_optimizer/cli.py +++ b/src/mcp_optimizer/cli.py @@ -32,9 +32,7 @@ # Fields that should not be exposed via CLI or environment variables # These fields can only be set via configuration files -CLI_EXCLUDED_FIELDS = { - "skipped_workloads", # Config-only field for workload filtering -} +CLI_EXCLUDED_FIELDS = {} def _generate_config_params(): diff --git a/src/mcp_optimizer/config.py b/src/mcp_optimizer/config.py index 7a7575f..7d41057 100644 --- a/src/mcp_optimizer/config.py +++ b/src/mcp_optimizer/config.py @@ -496,6 +496,7 @@ def _populate_config_from_env() -> dict[str, Any]: "WORKLOAD_INGESTION_BATCH_SIZE": "workload_ingestion_batch_size", "MAX_TOOL_RESPONSE_TOKENS": "max_tool_response_tokens", "ALLOWED_GROUPS": "allowed_groups", + "SKIPPED_WORKLOADS": "skipped_workloads", "RICH_TRACEBACKS": "rich_tracebacks", "COLORED_LOGS": "colored_logs", "K8S_API_SERVER_URL": "k8s_api_server_url",