# agent: Fix MCP server handler subscription race condition \(\#32133\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6ea4d2b30dddf6e2eeb1fef3eb320cf641ff4350)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6ea4d2b30dddf6e2eeb1fef3eb320cf641ff4350

Requested commit: 6ea4d2b30dddf6e2eeb1fef3eb320cf641ff4350

Commit: 6ea4d2b30dddf6e2eeb1fef3eb320cf641ff4350

Tree: da2bf856e8510f3d4699effd8d50a79c5648fd07

Author: Jonathan LEI

Committer: GitHub

## Message

```
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>
```

## Parents

- [380d8c56627e34c0a226b57bb942539ea80bb83a](https://git.cafe/gitcafe/zed/commit/380d8c56627e34c0a226b57bb942539ea80bb83a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6ea4d2b30dddf6e2eeb1fef3eb320cf641ff4350?format=markdown)
