Files
cc-web/.trellis/spec/backend/codex-mcp-config.md

9 lines
863 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Codex MCP 配置输出
- cc-web 内部允许读取旧 MCP `type` 并保留传输类型元数据,用于工具目录和工作流判断。
- 发送给 Codex 的 MCP 服务器配置不输出顶层 `type`。Codex 通过 `command` 或 `url` 识别传输方式。
- 使用 `lib/codex-mcp-config.js` 生成出站副本,不直接删除内部对象上的字段;嵌套 `env.type` 等同名字段保留。
- CLI 的内置和项目 MCP 参数均省略 `type`;App Server 在公共线程配置出口统一处理,覆盖 start/resume/fork 和 Gitea 注入。
- Gitea 内部 `mcpServer` 元数据和对外 `config` 分开,线程配置使用出站副本。
- 回归直接检查实际参数或协议对象没有顶层 `type`,同时检查连接、环境、认证及超时字段保持完整。仅从 `command`/`url` 推导传输方式无法证明字段已经省略。