Ronald Matarrita hasn’t played in several weeks, but he still was recalled by Costa Rica. (James Lang/USA TODAY Sports)

Two New York City FC players have been recalled by Costa Rica for two World Cup qualifying matches next month.

Defender Ronald Matarrita, who is injured, and forward Rodney Wallace, one of the bright spots for the Major League Soccer side, were among 27 players called into the team by head coach Oscar Ramirez.

The Ticos will play two home games — vs. Panama June 8 and Trinidad & Tobago June 13.

The roster:

GOALKEEPERS: Dany Carvajal (Saprissa), Leonel Moreira (Herediano), Keylor Navas (Real Madrid/Spain), Patrick Pemberton (Alajuelense)

DEFENDERS: Johnny Acosta (Herediano), Francisco Calvo (Minnesota United/USA), Cristian Gamboa (Celtic/Scotland), Giancarlo Gonzalez (Palermo/Italy), Kenner Gutierrez (Alajuelense), Ronald Matarrita (New York City FC/USA), Bryan Oviedo (Sunderland/England), Jose Salvatierra (Alajuelense), Michael Umaña (no club), Kendall Waston (Vancouver Whitecaps FC/Canada)

MIDFIELDERS: Randall Azofeifa (Herediano), Christian Bolaños (Vancouver Whitecaps FC/Canada), Celso Borges (Deportivo La Coruña/Spain), Daniel Colindres (Saprissa), David Guzman (Portland Timbers/USA), Bryan Ruiz (Sporting Lisbon/Portugal), Yeltsin Tejeda (Lausanne Sport/Switzerland), Rodney Wallace (New York City FC/USA)

FORWARDS: Joel Campbell (Sporting Lisbon/Portugal), David Ramirez (Saprissa), Ariel Rodriguez (Bangkok Glass FC/Thailand), Marco Ureña (San Jose Earthquakes/USA), Johan Venegas (Minnesota United/USA)