# agent_ui: Remove duplicate MCP Servers menu item \(\#60712\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a5f696bfa318311764f64d9d5cb455abc59153a0

Requested commit: a5f696bfa318311764f64d9d5cb455abc59153a0

Commit: a5f696bfa318311764f64d9d5cb455abc59153a0

Tree: 7b256b717134cb3a5d70c2cb2d8d9d36baf7b319

Author: Dino

Committer: GitHub

## Message

```
agent_ui: Remove duplicate MCP Servers menu item (#60712)

# Objective

Fixes https://github.com/zed-industries/zed/issues/60709 by removing the
duplicate menu section for "MCP Servers".

## Solution

Update `agent_ui::agent_panel::AgentPanel::render_panel_options_menu` to
ensure the "MCP Servers" section is only rendered once, if not using a
Terminal Thread.

## Testing

Tested manually, comparing against the stable release, as this bug is
present in Preview. Screenshot is shown in the "Showcase" section.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

## Showcase

<details>
  <summary>Before</summary>
<img width="2736" height="1586" alt="CleanShot 2026-07-09 at 23 14
34@2x"
src="https://github.com/user-attachments/assets/ce2014db-bd72-46fb-bfa1-247cd5471daf"
/>

</details>

<details>
  <summary>After</summary>
<img width="2736" height="1586" alt="CleanShot 2026-07-09 at 23 15
13@2x"
src="https://github.com/user-attachments/assets/bbba9965-3f6a-4137-94e5-17704efd2cce"
/>

</details>


---

Release Notes:

- N/A
```

## Parents

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

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