This commit is contained in:
alexsong-oai
2026-02-24 01:29:16 -08:00
parent f3de874b7c
commit d32a14b949
7 changed files with 15 additions and 5 deletions

View File

@@ -394,7 +394,8 @@
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
"SKILLS",
"MCP_SERVER_CONFIG"
],
"type": "string"
},

View File

@@ -8980,7 +8980,8 @@
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
"SKILLS",
"MCP_SERVER_CONFIG"
],
"type": "string"
},

View File

@@ -20,7 +20,8 @@
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
"SKILLS",
"MCP_SERVER_CONFIG"
],
"type": "string"
}

View File

@@ -5,7 +5,8 @@
"enum": [
"AGENTS_MD",
"CONFIG",
"SKILLS"
"SKILLS",
"MCP_SERVER_CONFIG"
],
"type": "string"
}

View File

@@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS";
export type ExternalAgentConfigMigrationItemType = "AGENTS_MD" | "CONFIG" | "SKILLS" | "MCP_SERVER_CONFIG";

View File

@@ -645,6 +645,9 @@ pub enum ExternalAgentConfigMigrationItemType {
#[serde(rename = "SKILLS")]
#[ts(rename = "SKILLS")]
Skills,
#[serde(rename = "MCP_SERVER_CONFIG")]
#[ts(rename = "MCP_SERVER_CONFIG")]
McpServerConfig,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]

View File

@@ -74,6 +74,8 @@ impl ExternalAgentConfigApi {
});
}
//TODO: add MCP server config detection
Ok(ExternalAgentConfigDetectResponse { items })
}
@@ -92,6 +94,7 @@ impl ExternalAgentConfigApi {
ExternalAgentConfigMigrationItemType::AgentsMd => self.import_agents_md(),
ExternalAgentConfigMigrationItemType::Config => self.import_config(),
ExternalAgentConfigMigrationItemType::Skills => self.import_skills(),
ExternalAgentConfigMigrationItemType::McpServerConfig => Ok(()),
}
.map_err(map_io_error)?;
}