zed-industries/zed · error
Context server not found
Error message
Context server not found
What it means
Emitted by show_modal_for_existing_server when no settings entry exists in ProjectSettings.context_servers for the given server id and no built-in descriptor is registered in the ContextServerDescriptorRegistry. The requested context server configuration cannot be located anywhere, so there is nothing to open the edit modal for; the offending input is the server_id passed to the modal.
Source
Thrown at crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs:483
pub fn show_modal_for_existing_server(
server_id: ContextServerId,
language_registry: Arc<LanguageRegistry>,
workspace: WeakEntity<Workspace>,
window: &mut Window,
cx: &mut App,
) -> Task<Result<()>> {
let Some(settings) = ProjectSettings::get_global(cx)
.context_servers
.get(&server_id.0)
.cloned()
.or_else(|| {
ContextServerDescriptorRegistry::default_global(cx)
.read(cx)
.context_server_descriptor(&server_id.0)
.map(|_| ContextServerSettings::default_extension())
})
else {
return Task::ready(Err(anyhow::anyhow!("Context server not found")));
};
window.spawn(cx, async move |cx| {
let target = match settings {
ContextServerSettings::Stdio {
enabled: _,
command,
..
} => Some(ConfigurationTarget::Existing {
id: server_id,
command,
}),
ContextServerSettings::Http {
enabled: _,
url,
headers,
timeout: _,
oauth,View on GitHub (pinned to f4178619ac)
Solutions
- Verify the context server id is spelled correctly and exists in settings.json under context_servers
- Create the context server configuration before editing it
- Reinstall or update the extension that provides the built-in context server descriptor
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs:483 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/5ae03dd55eb5eece.
Report an issue: GitHub.