NEW YORK -- Manager Willie Randolph won't be joining the National League All-Star coaching staff after all, he announced before Wednesday night's game.

Earlier in the week, Randolph was invited to serve as a coach for the July 10 game in San Francisco by Cardinals manager Tony La Russa, but he will be forced to decline because he will be having surgery on his right shoulder to counteract routine wear and tear to his throwing arm, which he said has been bothering him for a while.

Without the procedure, Randolph said, the shoulder could be compromised enough to keep him from throwing. He isn't looking forward to the surgery but recognizes its importance, reluctantly putting it ahead of the trip to San Francisco on his priority list.

"The doctor said it was too bad to wait," Randolph said. "Something had to be done. They pulled my teeth on it, so I just have to get it out of the way."

Randolph will be back with the Mets following the break, sporting a brace on his arm for a few weeks. Although he is disappointed that he won't be joining the rest of the coaching staff for the Midsummer Classic, he's looking on the bright side -- there's always next year.

"I bet some guys will be glad I'm not doing BP," he joked. "I'm ragging on myself, but I'm sure we have enough guys to hold the fort down. You'll see me next spring."

The procedure will be performed at the Hospital for Special Surgery in New York on July 9.

Easy does it for Endy: Endy Chavez hopes to be back on the field at Shea Stadium for his own bobblehead day on July 13, the outfielder said on Wednesday.

Although doctors told Chavez to expect a recovery time of four to six weeks, he believes he is progressing quickly enough to be back in three weeks.

"I think I'll be ready to play," Chavez said. "I don't want to force the leg, but the way I'm doing it, I'm getting there."

Chavez, who was placed on the 15-day disabled list on June 7 with a strained left hamstring, has been undergoing rehab treatments in Port St. Lucie, Fla., for the past two weeks. After beginning with non-active treatment for the first week, Chavez progressed to exercising his leg in a pool. He is now walking around his hotel complex and will begin to jog and bicycle soon.

Straight from Port St. Lucie: Pedro Martinez threw 45 pitches to Mets Minor Leaguers during live batting practice on Tuesday for the first time in Port St. Lucie. Randolph said that he's been pleased with Martinez's progress so far, noting that he's been advancing more quickly than expected.

"I'm not sure about his whole program, but the bottom line is that he's feeling good," Randolph said. "We're looking forward to getting him back, hopefully sooner than later. We're still going to be very cautious with him, regardless of where he is."

Coming up: Adam Wainwright, who caused trouble for the Mets in the National League Championship Series last year, will revisit the mound at Shea Stadium for the first time since then on Thursday at 7:10 p.m. ET. The Mets will counter with right-hander Orlando Hernandez, who is 3-3 this season.