修复 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

@@ -1,5 +1,7 @@
'use strict';
const { toCodexMcpServerConfig } = require('./codex-mcp-config');
/**
* Gitea Webhook 工作流与 Codex App 之间的薄适配层。
*
@@ -118,7 +120,7 @@ function buildGiteaThreadConfig(options = {}) {
return {
cwd,
config: {
'mcp_servers.gitea': gitea,
'mcp_servers.gitea': toCodexMcpServerConfig(gitea),
},
// 便于调用方在需要时直接合并到 thread/start 参数;server.js 使用 config。
mcpServer: gitea,