agent: Fix issue where unconfigured MCP extensions would not start
server (backport #33365)
This commit is contained in:
parent
d5b7ca180b
commit
182ec4f3e8
1 changed files with 5 additions and 1 deletions
|
@ -945,7 +945,11 @@ impl ExtensionImports for WasmState {
|
||||||
.get(key.as_str())
|
.get(key.as_str())
|
||||||
})
|
})
|
||||||
.cloned()
|
.cloned()
|
||||||
.context("Failed to get context server configuration")?;
|
.unwrap_or_else(|| {
|
||||||
|
project::project_settings::ContextServerSettings::Extension {
|
||||||
|
settings: serde_json::json!({}),
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
match settings {
|
match settings {
|
||||||
project::project_settings::ContextServerSettings::Custom {
|
project::project_settings::ContextServerSettings::Custom {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue