makecindy / makecindy/cindy

Fork 会话未重新加载 mcpServers 配置,新增 MCP 服务器不生效

Open
#1,913 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: WZBBiao
**客户端版本**: 0.1.33

---

## 现象

在 `~/.claude/settings.json` 的 `mcpServers` 中新增了一个 stdio MCP 服务器配置后,通过 Cindy 的 fork 功能创建新会话,预期新会话应该重新读取配置文件并加载新 MCP 服务器,但实际上新 fork 的会话中该 MCP 服务器并未出现。

修改 settings.json 中的已有 MCP 服务器的 env 等字段后 fork,变更同样不生效。

## 复现步骤

1. 在 Cindy 中打开一个已有会话
2. 手动编辑 `~/.claude/settings.json`,在 `mcpServers` 中新增一个 stdio 类型的 MCP 服务器配置
3. 在原会话中点击 fork,创建新会话
4. 在新会话中检查可用的 MCP 工具列表

## 期望行为

Fork 新会话时,重新读取 `~/.claude/settings.json` 中的 `mcpServers` 配置,启动新增的 MCP 服务器,使其工具在新会话中立即可用。

## 实际行为

Fork 出来的新会话只有 fork 前原会话加载的那批 MCP 服务器,新增的 MCP 服务器没有出现。必须完全退出并重启 Cindy app 才能让新配置生效。

## 影响

用户修改 MCP 配置后无法通过 fork 快速验证,必须重启整个应用,开发体验差。尤其对于需要反复调试 MCP 配置参数(如 env、command path)的场景,每次改完都要重启,非常耗时。
---
**版本区域**: CN
**OS**: darwin arm64 (25.1.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start with the fork session entry point and the handling of ~/.claude/settings.json, especially its mcpServers section. Reproduce by adding or changing a stdio server, then verify that a forked session reloads the configuration and exposes the updated MCP tools without restarting Cindy.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.