修复 Codex MCP type 配置并更新发布包
This commit is contained in:
@@ -6,6 +6,7 @@ const os = require('os');
|
||||
const { spawn, spawnSync } = require('child_process');
|
||||
const { WebSocketServer } = require('ws');
|
||||
const { createAgentRuntime } = require('./lib/agent-runtime');
|
||||
const { toCodexMcpServerConfig } = require('./lib/codex-mcp-config');
|
||||
const { createCodexAppServerClient } = require('./lib/codex-app-server-client');
|
||||
const { createCodexAppWorkerClient } = require('./lib/codex-app-worker-client');
|
||||
const { createCodexAppRuntime } = require('./lib/codex-app-runtime');
|
||||
@@ -14144,6 +14145,11 @@ function codexAppThreadConfig(session, options = {}) {
|
||||
cwd: session?.cwd || options.cwd || getDefaultSessionCwd(),
|
||||
}));
|
||||
}
|
||||
for (const [key, value] of Object.entries(config)) {
|
||||
if (key.startsWith('mcp_servers.') && value && typeof value === 'object') {
|
||||
config[key] = toCodexMcpServerConfig(value);
|
||||
}
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user