{"record":{"id":"5ae03dd55eb5eece","repo":"zed-industries/zed","slug":"context-server-not-found-5ae03d","errorCode":null,"errorMessage":"Context server not found","messagePattern":"Context server not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs","lineNumber":483,"sourceCode":"    pub fn show_modal_for_existing_server(\n        server_id: ContextServerId,\n        language_registry: Arc<LanguageRegistry>,\n        workspace: WeakEntity<Workspace>,\n        window: &mut Window,\n        cx: &mut App,\n    ) -> Task<Result<()>> {\n        let Some(settings) = ProjectSettings::get_global(cx)\n            .context_servers\n            .get(&server_id.0)\n            .cloned()\n            .or_else(|| {\n                ContextServerDescriptorRegistry::default_global(cx)\n                    .read(cx)\n                    .context_server_descriptor(&server_id.0)\n                    .map(|_| ContextServerSettings::default_extension())\n            })\n        else {\n            return Task::ready(Err(anyhow::anyhow!(\"Context server not found\")));\n        };\n\n        window.spawn(cx, async move |cx| {\n            let target = match settings {\n                ContextServerSettings::Stdio {\n                    enabled: _,\n                    command,\n                    ..\n                } => Some(ConfigurationTarget::Existing {\n                    id: server_id,\n                    command,\n                }),\n                ContextServerSettings::Http {\n                    enabled: _,\n                    url,\n                    headers,\n                    timeout: _,\n                    oauth,","sourceCodeStart":465,"sourceCodeEnd":501,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs#L465-L501","documentation":"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.","triggerScenarios":"Thrown at crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs:483 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}