54
55
56
57
58
59
60
61
62
63
|
# File 'lib/evilution/mcp/session_tool.rb', line 54
def call(server_context:, action: nil, results_dir: nil, limit: nil, path: nil, base: nil, head: nil)
return error_response("config_error", "action is required") unless action
return error_response("config_error", "unknown action: #{action}") unless VALID_ACTIONS.include?(action)
case action
when "list" then list_action(results_dir: results_dir, limit: limit)
when "show" then show_action(path: path, results_dir: results_dir)
when "diff" then diff_action(base: base, head: head, results_dir: results_dir)
end
end
|