MCPcopy Create free account
hub / github.com/IBM/mcp-cli / check_configuration_files

Function check_configuration_files

diagnostics/debug_models.py:70–92  ·  view source on GitHub ↗

Check what configuration files exist.

()

Source from the content-addressed store, hash-verified

68
69
70def check_configuration_files():
71 """Check what configuration files exist."""
72 print("\n📁 Configuration Files:")
73
74 # chuk-llm config locations
75 chuk_config_dir = Path.home() / ".chuk_llm"
76 mcp_config_dir = Path.home() / ".mcp-cli"
77
78 config_files = [
79 (chuk_config_dir / "config.yaml", "chuk-llm main config"),
80 (chuk_config_dir / "providers.yaml", "chuk-llm provider overrides"),
81 (chuk_config_dir / ".env", "chuk-llm environment"),
82 (mcp_config_dir / "preferences.yaml", "MCP CLI preferences"),
83 (mcp_config_dir / "preferences.json", "MCP CLI preferences (legacy)"),
84 (mcp_config_dir / "models.json", "MCP CLI models (legacy)"),
85 ]
86
87 for file_path, description in config_files:
88 if file_path.exists():
89 size = file_path.stat().st_size
90 print(f" ✅ {description}: {file_path} ({size} bytes)")
91 else:
92 print(f" ❌ {description}: {file_path} (not found)")
93
94
95def test_client_creation():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected