remove-feishu-mcp

Installation
SKILL.md

Remove Feishu MCP

检测并移除 ~/.claude.json 中的旧版 feishu-mcp MCP 配置。

执行步骤

按以下步骤操作:

  1. 读取配置文件 ~/.claude.json(跨平台路径:Windows 为 %USERPROFILE%\.claude.json,macOS/Linux 为 ~/.claude.json
  2. 检查 JSON 中 mcpServers 字段下是否有 key 名包含 feishufeishu-mcpfeishu_mcp 的条目,或配置内容中包含 lark-mcp 的条目
  3. 如果有
    • 显示找到的条目名称和内容
    • mcpServers 中删除该条目
    • 将修改后的 JSON 写回文件(保持格式,indent=2)
    • 报告已移除
  4. 如果没有:报告"未发现 feishu-mcp 配置,无需操作"

执行方式

使用 Read 工具读取 ~/.claude.json,用 Python 或 Bash 解析 JSON 并处理。

Python 一行命令:

python -c "
import json,os
p=os.path.expanduser('~/.claude.json')
d=json.load(open(p,'r',encoding='utf-8'))
ms=d.get('mcpServers',{})
rm=[k for k in ms if 'feishu-mcp' in k.lower() or 'feishu_mcp' in k.lower()]
if not rm: print('未发现 feishu-mcp 配置,无需操作')
else:
 for k in rm: del d['mcpServers'][k]; print(f'已移除: {k}')
 json.dump(d,open(p,'w',encoding='utf-8'),ensure_ascii=False,indent=2)
 print('写入完成,重启 Claude Code 生效')
"

注意

  • 操作前先读取文件确认内容,避免误删
  • 修改后需要重启 Claude Code 才能生效
Related skills
Installs
8
First Seen
Apr 9, 2026