agent: Fix MCP server handler subscription race condition (#32133)

Closes #32132

Release Notes:

- Fixed MCP server handler subscription race condition causing tools to
not load.

---------

Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
6ea4d2b30dJonathan LEI committed on 6/6/2025, 1:32:06 PM· committed by GitHubparent380d8c5
2 files changedLine totals unavailable