修复 Codex MCP type 配置并更新发布包

This commit is contained in:
shiyue
2026-10-08 14:55:58 +08:00
parent caf8947cd9
commit 747771a048
17 changed files with 181 additions and 4 deletions

View File

@@ -690,6 +690,8 @@ function completeMcpToolTurn(thread, turnId) {
webSearchMode: thread.config?.web_search || null,
hasCcwebMcpConfig: Boolean(ccwebConfig),
hasProjectMcpConfig: Boolean(projectConfig),
ccwebHasTopLevelType: Boolean(ccwebConfig && Object.hasOwn(ccwebConfig, 'type')),
projectHasTopLevelType: Boolean(projectConfig && Object.hasOwn(projectConfig, 'type')),
ccwebType: ccwebConfig?.type || (ccwebConfig?.url ? 'streamable_http' : (ccwebConfig?.command ? 'stdio' : null)),
ccwebUrl: ccwebConfig?.url || null,
ccwebBearerTokenEnvVar: ccwebConfig?.bearer_token_env_var || null,