With just two days left until Congress goes on vacation, President Obama today urged lawmakers to get to work and "stop just hatin' all the time."

"We could do so much more if Congress would just come on and help out a little bit," Obama said, chuckling. "Stop being mad all the time. … I've only got a couple years left. Come on, then you can be mad at the next president."

In a rowdy, campaign-style speech before a packed house at the Uptown Theatre in Kansas City, Missouri, the president slammed Republicans for wasting time on a "political stunt."

"The main vote that they've scheduled for today is whether or not they decide to sue me for doing my job," he said, to boos from the crowd.

"It's not a productive thing to do," he added. "Instead of suing me for doing my job, I want Congress to do its job."

The president touted his executive actions and efforts to circumvent gridlock in Congress, declaring, "We act when Congress won't."

"They are mad because I'm doing my job," he said. "And by the way, I've told them, 'I'd be happy to do it with you. The only reason I'm doing it on my own is because you don't do anything.'

"Imagine how much further along we'd be, how much stronger our economy would be, if Congress was doing its job, too," he said.