Class: Profiler::MCP::Tools::ResetAllEnvVars
- Inherits:
-
Object
- Object
- Profiler::MCP::Tools::ResetAllEnvVars
- Defined in:
- lib/profiler/mcp/tools/reset_all_env_vars.rb
Class Method Summary collapse
Class Method Details
.call(_params) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/profiler/mcp/tools/reset_all_env_vars.rb', line 7 def self.call(_params) overrides = Profiler.env_override_store.all_overrides count = overrides.size if count.zero? return [{ type: "text", text: "No active overrides to reset." }] end Profiler.env_override_store.reset_all [{ type: "text", text: "Reset #{count} environment variable#{"s" if count != 1} to original values." }] end |