{"record":{"id":"fbe53863e3cdb1bd","repo":"zed-industries/zed","slug":"remote-context-server-settings-not-supported-in-0","errorCode":null,"errorMessage":"remote context server settings not supported in 0.6.0","messagePattern":"remote context server settings not supported in 0\\.6\\.0","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/extension_host/src/wasm_host/wit/since_v0_8_0.rs","lineNumber":1029,"sourceCode":"                            })\n                            .cloned()\n                            .unwrap_or_else(|| {\n                                project::project_settings::ContextServerSettings::default_extension(\n                                )\n                            });\n\n                        match settings {\n                            project::project_settings::ContextServerSettings::Stdio {\n                                enabled: _,\n                                command,\n                                ..\n                            } => Ok(serde_json::to_string(&settings::ContextServerSettings {\n                                command: Some(settings::CommandSettings {\n                                    path: command.path.to_str().map(|path| path.to_string()),\n                                    arguments: Some(command.args),\n                                    env: command.env.map(|env| env.into_iter().collect()),\n                                }),\n                                settings: None,\n                            })?),\n                            project::project_settings::ContextServerSettings::Extension {\n                                enabled: _,\n                                settings,\n                                ..\n                            } => Ok(serde_json::to_string(&settings::ContextServerSettings {\n                                command: None,\n                                settings: Some(settings),\n                            })?),\n                            project::project_settings::ContextServerSettings::Http { .. } => {\n                                bail!(\"remote context server settings not supported in 0.6.0\")\n                            }\n                        }\n                    }\n                    _ => {\n                        bail!(\"Unknown settings category: {}\", category);\n                    }\n                })","sourceCodeStart":1011,"sourceCodeEnd":1047,"githubUrl":"https://github.com/zed-industries/zed/blob/5a9b9558db01a6b906cec2fb70a797affdc58cdd/crates/extension_host/src/wasm_host/wit/since_v0_8_0.rs#L1011-L1047","documentation":"While serving get_settings(\"context_servers\", ...) through compatibility bindings, the host serializes project ContextServerSettings into the v0.6.0-shaped settings::ContextServerSettings type, which has only `command` (stdio) and `settings` (extension) fields. A project configured with the Http variant — a remote context server — cannot be represented, so the host bails rather than silently dropping the configuration.","triggerScenarios":"get_settings called with category \"context_servers\" and a key whose settings.json entry uses the `http`/remote variant, while the extension runs on bindings old enough to target the v0.6.0 shape.","commonSituations":"A user configures a remote (HTTP) context server in settings.json, then uses an extension compiled against an older extension API that asks for that server's settings.","solutions":["Update the extension's extension_api_version to a release whose bindings model remote context servers","Reconfigure the context server entry in settings.json as a stdio command or extension-provided server","As a last resort, remove the http context-server entry the extension is querying"],"exampleFix":"// settings.json before\n\"context_servers\": { \"docs\": { \"http\": { \"url\": \"https://...\" } } }\n\n// after — stdio variant representable on old bindings\n\"context_servers\": { \"docs\": { \"command\": { \"path\": \"npx\", \"args\": [\"-y\", \"docs-mcp\"] } } }","handlingStrategy":"validation","validationCode":"// before exposing context-server settings to an old-API extension\nif matches!(settings, ContextServerSettings::Http { .. }) {\n    return Err(\"remote context servers need a newer extension API\".into());\n}","typeGuard":"fn is_representable_on_old_api(s: &ContextServerSettings) -> bool {\n    !matches!(s, ContextServerSettings::Http { .. })\n}","tryCatchPattern":"match get_settings(None, \"context_servers\".into(), Some(key)) {\n    Ok(json) => { /* ... */ }\n    Err(e) if e.contains(\"remote context server\") => { /* show upgrade hint, default settings */ }\n    Err(e) => return Err(e),\n}","preventionTips":["Document stdio/extension context servers as the supported variants for older extension APIs","Keep extension_api_version current so Http-variant settings never reach the downconversion"],"tags":["settings","context-server","mcp","wasm","extension","zed","version-mismatch"],"backgroundTag":"api-version-mismatch","analyzedSha":"5a9b9558db01a6b906cec2fb70a797affdc58cdd","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}