# agent: Fix bug that prevented MCP servers to appear in the settings view \(\#33857\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 34322ef1cd0871dbe17ca80f8261ed0e2c83f7df

Requested commit: 34322ef1cd0871dbe17ca80f8261ed0e2c83f7df

Commit: 34322ef1cd0871dbe17ca80f8261ed0e2c83f7df

Tree: 68f9d6186815dc978941f47ca0e66f9227453749

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Fix bug that prevented MCP servers to appear in the settings view (#33857)

Closes https://github.com/zed-industries/zed/issues/33827

After #33644 was merged, we would not start MCP servers coming from
extensions correctly anymore. The optimization uncovered a bug in the
implementation of `ContextServerDescriptorRegistry`, because we never
called `cx.notify()` when adding/removing context servers.
`ContextServerStore` listens for these events, and before #33644 this
was just working because of aace condition.

Release Notes:

- agent: Fixed bug that prevented MCP servers to appear in the settings
view.

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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