// {{ display_name }} MCP server — generated by mcpify. Do not hand-edit.

export function captureConsole(): { logs: string[]; restore: () => void } {
  const logs: string[] = [];
  const original = console.log;
  console.log = (...args: unknown[]) => {
    logs.push(args.map(String).join(' '));
  };
  return {
    logs,
    restore: () => {
      console.log = original;
    },
  };
}
