# agent_ui: Route MCP configuration to active workspace \(\#61882\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f9a5bf918149ba623f5af1afd5468206910ed3dc

Requested commit: f9a5bf918149ba623f5af1afd5468206910ed3dc

Commit: f9a5bf918149ba623f5af1afd5468206910ed3dc

Tree: fe6d05eb4e19797aece088233ae0068c241d8819

Author: Ben Kunkle

Committer: GitHub

## Message

```
agent_ui: Route MCP configuration to active workspace (#61882)

# Objective

- Prevent MCP extension configuration dialogs from appearing when
switching to background workspaces.
- Closes FR-145.

## Solution

- Route configuration requests through the active application window and
workspace, while keeping uninstall settings cleanup global.

## Testing

- Added a regression test covering active and retained background
workspaces.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] 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)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- Agent: Fixed MCP extension configuration dialogs appearing in other
workspaces.
```

## Parents

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

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