Skip to content

fix: MCP 默认 URL 补 /mcp 路径,自动改名增加超时保护 - #121

Merged
error2913 merged 1 commit into
mainfrom
codex/mcp-url-and-setname-timeout
Aug 13, 2026
Merged

fix: MCP 默认 URL 补 /mcp 路径,自动改名增加超时保护#121
error2913 merged 1 commit into
mainfrom
codex/mcp-url-and-setname-timeout

Conversation

@error2913

Copy link
Copy Markdown
Owner

变更内容

  1. MCP 默认 URL 补 /mcp 路径:MCP服务器配置 默认值中 mcp-files-exec 的 url 由 http://127.0.0.1:3910 修正为 http://127.0.0.1:3910/mcp(与后端 Streamable HTTP 实际路径一致),并同步更新 docs/08-相关后端项目.md 中的默认地址说明。
  2. 自动改名超时保护:updateName 的昵称/群名片两个分支包 5 秒超时,ob11 依赖请求不 resolve 时不再让整条消息处理链路挂起,超时记录 warning 后继续。

实测结果(测试群)

  • 上传新构建并重载 JS 后,面板日志确认 5 个 MCP 工具全部注册成功(read_file / list_dir / write_file / delete_file / run_command),无注册报错。
  • .ai tool 列表新增 62-66 号 mcp-files-exec_* 工具。
  • .ai tool call mcp-files-exec_list_dir --path=. 返回沙箱目录列表。
  • .ai tool call mcp-files-exec_read_file --path=backend.json 返回文件内容。
  • 面板日志无任何错误。

配置变动提示

MCP服务器配置 默认值已更新:旧值(无 /mcp 后缀)会导致 mcp-files-exec 初始化失败(HTTP 404)。已保存过旧默认值的用户需在面板 工具->MCP服务器配置 中把 mcp-files-exec 的 url 改为 http://127.0.0.1:3910/mcp(本次测试已在面板通过 WebUI API 同步)。

- MCP 服务器配置默认值 mcp-files-exec 的 url 修正为 http://127.0.0.1:3910/mcp(与后端 Streamable HTTP 实际路径一致),面板实测 list_dir / read_file 调用正常
- 同步更新 docs/08-相关后端项目.md 中的默认地址说明
- 自动改名(昵称/群名片)调用包 5 秒超时:ob11 依赖请求未 resolve 时不再让整条消息处理链路挂起,超时记 warning 后继续
@error2913
error2913 merged commit 2262c3d into mainAug 13, 2026
1 check passed
@error2913
error2913 deleted the codex/mcp-url-and-setname-timeout branch August 13, 2026 17:56
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@error2913