agent: Show custom MCP servers in agent configuration (#38500)

Fixes a regression introduced in #38419

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner
2025-09-19 12:21:28 +00:00
committed by GitHub
parent 194a13ffb5
commit 5f728efccf
2 changed files with 43 additions and 56 deletions
+11 -10
View File
@@ -282,16 +282,17 @@ impl ContextServerStore {
self.servers.get(id).map(|state| state.configuration())
}
pub fn all_server_ids(&self) -> Vec<ContextServerId> {
self.servers.keys().cloned().collect()
}
pub fn all_registry_descriptor_ids(&self, cx: &App) -> Vec<ContextServerId> {
self.registry
.read(cx)
.context_server_descriptors()
.into_iter()
.map(|(id, _)| ContextServerId(id))
pub fn server_ids(&self, cx: &App) -> HashSet<ContextServerId> {
self.servers
.keys()
.cloned()
.chain(
self.registry
.read(cx)
.context_server_descriptors()
.into_iter()
.map(|(id, _)| ContextServerId(id)),
)
.collect()
}