DEV Community

drake
drake

Posted on

claude code mcp的全局配置方案

  • 文件所在目录~/.claude.json

  • 配置:

如果没有这个key ==> mcpServers 就新增,有的话就在这个key的value中编辑,就是标准的mcp配置方式

{ "numStartups": 41, "installMethod": "unknown", "autoUpdates": true, "tipsHistory": { "new-user-warmup": 1, "shift-enter": 27, "memory-command": 40, "theme-command": 8, "enter-to-steer-in-relatime": 11, "todo-list": 12, "# for memory": 34, "install-github-app": 35, "permissions": 36, "drag-and-drop-images": 37, "vscode-command-install": 17, "double-esc": 39, "continue": 19, "custom-commands": 20, "shift-tab": 21 }, "promptQueueUseCount": 11, "firstStartTime": "2025-06-28T11:38:57.179Z", "userID": "xxx", "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest" ] } } } 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)