After assembling the weapon parts in Metropolis in Sonic Chronicles: The Dark Brotherhood, the next step is to go underground and give them to Tails or Eggman. The source notes some uncertainty, so this may vary slightly depending on the exact game state.