feat: updated enabled_skills handling to support both list and comma-separated strings

This commit is contained in:
2026-06-03 12:24:10 -06:00
parent 4a14d80d97
commit c36c4f4699
7 changed files with 129 additions and 27 deletions
+3 -2
View File
@@ -38,7 +38,8 @@ pub struct AppConfig {
pub visible_tools: Option<Vec<String>>,
pub skills_enabled: bool,
pub enabled_skills: Option<String>,
#[serde(default, deserialize_with = "super::deserialize_csv_or_vec")]
pub enabled_skills: Option<Vec<String>>,
pub visible_skills: Option<Vec<String>>,
pub mcp_server_support: bool,
@@ -400,7 +401,7 @@ impl AppConfig {
}
if let Some(v) = super::read_env_value::<String>(&get_env_name("enabled_skills")) {
self.enabled_skills = v;
self.enabled_skills = v.map(|raw| super::csv_to_vec(&raw));
}
if let Some(Some(v)) = super::read_env_bool(&get_env_name("mcp_server_support")) {