agent: Fix issue where unconfigured MCP extensions would not start

Bennet Bo Fenner created

server (backport #33365)

Change summary

crates/extension_host/src/wasm_host/wit/since_v0_6_0.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Detailed changes

crates/extension_host/src/wasm_host/wit/since_v0_6_0.rs 🔗

@@ -945,7 +945,11 @@ impl ExtensionImports for WasmState {
                                     .get(key.as_str())
                             })
                             .cloned()
-                            .context("Failed to get context server configuration")?;
+                            .unwrap_or_else(|| {
+                                project::project_settings::ContextServerSettings::Extension {
+                                    settings: serde_json::json!({}),
+                                }
+                            });
 
                         match settings {
                             project::project_settings::ContextServerSettings::Custom {