A foldable anvil provides secure anastomosis in circular staplers and has an anvil cap with a main body, a clamping arm configured on the main body, a punch section and a punch surface corresponding to the punch section. The anvil cap includes multiple foldable wings, a command wire connected with the wings, and a wire wrap pulley directing the command wire.