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

Method save_preferences

src/mcp_cli/utils/preferences.py:216–219  ·  view source on GitHub ↗

Save preferences to file.

(self)

Source from the content-addressed store, hash-verified

214 return MCPPreferences()
215
216 def save_preferences(self) -> None:
217 """Save preferences to file."""
218 with open(self.preferences_file, "w") as f:
219 json.dump(self.preferences.to_dict(), f, indent=2)
220
221 def get_theme(self) -> str:
222 """Get current theme."""

Callers 15

set_themeMethod · 0.95
set_verboseMethod · 0.95
set_confirm_toolsMethod · 0.95
set_tool_confirmationMethod · 0.95
add_trusted_domainMethod · 0.95
remove_trusted_domainMethod · 0.95
add_tool_patternMethod · 0.95
remove_tool_patternMethod · 0.95
set_risk_thresholdMethod · 0.95
set_active_providerMethod · 0.95

Calls 1

to_dictMethod · 0.45

Tested by 1