mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
mcp
This commit is contained in:
@@ -394,7 +394,8 @@
|
||||
"enum": [
|
||||
"AGENTS_MD",
|
||||
"CONFIG",
|
||||
"SKILLS"
|
||||
"SKILLS",
|
||||
"MCP_SERVER_CONFIG"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -8980,7 +8980,8 @@
|
||||
"enum": [
|
||||
"AGENTS_MD",
|
||||
"CONFIG",
|
||||
"SKILLS"
|
||||
"SKILLS",
|
||||
"MCP_SERVER_CONFIG"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
"enum": [
|
||||
"AGENTS_MD",
|
||||
"CONFIG",
|
||||
"SKILLS"
|
||||
"SKILLS",
|
||||
"MCP_SERVER_CONFIG"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"enum": [
|
||||
"AGENTS_MD",
|
||||
"CONFIG",
|
||||
"SKILLS"
|
||||
"SKILLS",
|
||||
"MCP_SERVER_CONFIG"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user