The Lonely Island made their live concert debut at Clusterfest on Friday, June 1, seemingly calling in every favor to show love for their hometown.

Surprise in-person appearances were made by past collaborators from the group’s “Saturday Night Live” digital short era, including Chris Parnell (“Lazy Sunday”), Michael Bolton (“Jack Sparrow”) and T-Pain (“I’m on a Boat”).

But the Berkeley-raised group was just as successful when they had to improvise. For their song “3-Way (The Golden Rule)” with Justin Timberlake and Lady Gaga, they used a pair of puppets. And a bit between songs involving a T-shirt cannon and a failed shirt design was just one example of comic glue between songs that made a live show work.

Andy Samberg, Akiva Schaffer and Jorma Taccone, who, as they told the audience during a rare moment of semi-seriousness, “grew up together — we went to Willard Jr. High (in Berkeley).” They split apart after graduating from Berkeley High School in the mid-1990s, then reunited in Los Angeles in the early 2000s. Their run on “Saturday Night Live” began in 2005, where they produced some of the first high-profile viral YouTube videos.

The majority of songs during the first night of the second annual comedy and music festival at Civic Center Plaza came from their existing catalogue.

The notable new song was an ode to former Oakland A’s Mark McGwire and Jose Canseco. Portions of the track had leaked on the Internet earlier in the week, but the finished product turned out to be much more epic — filled with deep Bay Area references (“Rolling to Hilltop Mall to get a pager”), satire portraying the steroid-using Bash Brothers as complicated heroes (“My beeper beeping more than my dialysis machine”) and vintage video of A’s games.

The Lonely Island used a drive-in movie sized central video screen, blasting it with clip-art animation, comic/violent imagery and other short-attention-span theater. Many of the best moments of the night can’t be described easily, either because of the boundary-pushing adult content, or the creative stage work. (A real-life fall off a horse during a photo shoot was built into a song and multimedia presentation, spinning in bizarre directions.)

They also had a running joke that invited audience members to a specific room number at a specific hotel in Emeryville. (“Bad bitches only.”)

The group didn’t seem to want the night to to end, speeding through “I’m On a Boat” with T-Pain before slinking off stage in submission to the strict 11 p.m. curfew San Francisco placed on the Comedy Central Presents Clusterfest event.

More Information Keep up with all the fun at Clusterfest: www.sfchronicle.com/entertainment

Read More

“That truly is our (last song),” Samberg said, “city ordinance and whatnot.”

Peter Hartlaub is The San Francisco Chronicle’s pop culture critic. Email: phartlaub@sfchronicle.com Twitter: @PeterHartlaub