Skip to content

Commit 09f517c

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c41c4d1 commit 09f517c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mci/cli/envs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ def extract_env_vars_from_schema(schema_path: str) -> dict[str, list[str]]:
8484
if var not in env_vars:
8585
env_vars[var] = set()
8686
env_vars[var].add(toolset_name)
87-
except Exception:
87+
except Exception as e:
8888
# Warn but continue if toolset file is invalid
89-
pass
89+
console = Console()
90+
console.print(f"[yellow]⚠[/yellow] Warning: Could not load toolset '{toolset_name}': {e}", style="yellow")
9091

9192
# Scan MCP servers
9293
mcp_servers = main_schema.get("mcp_servers", {})

0 commit comments

Comments
 (0)