remove bad try/catch
This commit is contained in:
@@ -21,7 +21,6 @@ export const codex = agent({
|
||||
if (mcpServers && Object.keys(mcpServers).length > 0) {
|
||||
log.info("Configuring MCP servers for Codex...");
|
||||
for (const [serverName, serverConfig] of Object.entries(mcpServers)) {
|
||||
try {
|
||||
// Only configure stdio servers (Codex CLI supports stdio MCP servers)
|
||||
// Check if it's a stdio server config (has 'command' property)
|
||||
if (!("command" in serverConfig)) {
|
||||
@@ -58,12 +57,6 @@ export const codex = agent({
|
||||
);
|
||||
}
|
||||
log.info(`✓ MCP server '${serverName}' configured`);
|
||||
} catch (error) {
|
||||
log.warning(
|
||||
`Failed to configure MCP server '${serverName}': ${error instanceof Error ? error.message : String(error)}`
|
||||
);
|
||||
// Continue with other servers
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41411,7 +41411,6 @@ var codex = agent({
|
||||
if (mcpServers && Object.keys(mcpServers).length > 0) {
|
||||
log.info("Configuring MCP servers for Codex...");
|
||||
for (const [serverName, serverConfig] of Object.entries(mcpServers)) {
|
||||
try {
|
||||
if (!("command" in serverConfig)) {
|
||||
log.warning(`MCP server '${serverName}' is not a stdio server, skipping...`);
|
||||
continue;
|
||||
@@ -41438,11 +41437,6 @@ var codex = agent({
|
||||
);
|
||||
}
|
||||
log.info(`\u2713 MCP server '${serverName}' configured`);
|
||||
} catch (error2) {
|
||||
log.warning(
|
||||
`Failed to configure MCP server '${serverName}': ${error2 instanceof Error ? error2.message : String(error2)}`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
log.info("Running Codex via CLI...");
|
||||
|
||||
Reference in New Issue
Block a user