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

Method set_config_file

src/mcp_cli/utils/preferences.py:504–507  ·  view source on GitHub ↗

Set default config file path.

(self, config_file: str)

Source from the content-addressed store, hash-verified

502 return self.preferences.config_file
503
504 def set_config_file(self, config_file: str) -> None:
505 """Set default config file path."""
506 self.preferences.config_file = config_file
507 self.save_preferences()
508
509 def reset_preferences(self) -> None:
510 """Reset all preferences to defaults."""

Callers 1

test_config_fileMethod · 0.95

Calls 1

save_preferencesMethod · 0.95

Tested by 1

test_config_fileMethod · 0.76