Add Codex MCP agent provider
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Options as ClaudeAgentOptions } from "@anthropic-ai/claude-agent-sdk";
|
||||
|
||||
export type AgentProvider = "codex" | "claude";
|
||||
export type AgentProvider = "codex" | "codex-mcp" | "claude";
|
||||
|
||||
export type AgentMode = {
|
||||
id: string;
|
||||
|
||||
@@ -26,7 +26,7 @@ export async function fetchProviderModelCatalog(
|
||||
if (provider === "claude") {
|
||||
return fetchClaudeModelCatalog(options);
|
||||
}
|
||||
if (provider === "codex") {
|
||||
if (provider === "codex" || provider === "codex-mcp") {
|
||||
return fetchCodexModelCatalog();
|
||||
}
|
||||
throw new Error(`Unsupported provider '${provider}'`);
|
||||
|
||||
@@ -68,6 +68,14 @@ export const AGENT_PROVIDER_DEFINITIONS: AgentProviderDefinition[] = [
|
||||
defaultModeId: "auto",
|
||||
modes: CODEX_MODES,
|
||||
},
|
||||
{
|
||||
id: "codex-mcp",
|
||||
label: "Codex MCP",
|
||||
description:
|
||||
"Codex workspace agent via MCP with streaming events and permission elicitation",
|
||||
defaultModeId: "auto",
|
||||
modes: CODEX_MODES,
|
||||
},
|
||||
];
|
||||
|
||||
export function getAgentProviderDefinition(provider: AgentProvider): AgentProviderDefinition {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user