# agent: Allow to explictly disable tools when using \`enable_all_context_servers\` \(\#29414\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 37fa437990c4231516fbd2c368dcf9e7f7724fff

Requested commit: 37fa437990c4231516fbd2c368dcf9e7f7724fff

Commit: 37fa437990c4231516fbd2c368dcf9e7f7724fff

Tree: b48bc0f63731b61d3ab51a312ed97522d0a7c656

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Allow to explictly disable tools when using `enable_all_context_servers` (#29414)

Previously, all MCP tools would be completed regardless if they were
disabled/enabled for the profile. This meant that the "Write" profile
was always using all MCP tools, even if you disabled them in the
settings.

Now, when `enable_all_context_servers` is set to `true`, we will enable
all tools from all MCP servers by default but disable the ones that are
explicitly disabled for the profile.

Also fixes an issue where the tools would not show up as enabled when
using `enable_all_context_servers: true`

Release Notes:

- agent: Fix an issue where MCP tools could not be enabled/disabled
```

## Parents

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

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