We present a new model for cost sharing in minimum cost spanning tree problems, so that the planner can identify the agents that merge. Under this new framework, and as opposed to the traditional model, there exist rules that satisfy merge-proofness. Besides, by strengthening this property and adding some other properties, such as population-monotonicity and solidarity, we characterize a unique rule that coincides with the weighted Shapley value of an associated cost game.