Files
juliandickieandAgrici Daniel 0dd05386d4 fix(extensions): write MCP config to ~/.claude.json, not settings.json
The dataforseo, firecrawl, ahrefs and banana installers merge their MCP
server block into ~/.claude/settings.json. Claude Code does not read
`mcpServers` from that file, so the block is written, the installer reports
success, and the server never loads. `claude mcp list` does not show it and
no tools appear. Reinstalling cannot fix it because the destination is wrong.

Repoint those four extensions at ~/.claude.json, the file `claude mcp add`
writes, across install/uninstall scripts (.sh and .ps1), banana's Python
helpers, and the setup docs. The existing atomic read-modify-write is kept,
so unrelated keys in that file are preserved.

Deliberately NOT changed: bing-webmaster, profound and seranking also write
to settings.json, but they write the `env` key, which IS supported there.
Moving those would break them.

Also renames the path variables (SETTINGS_FILE -> MCP_CONFIG_FILE, etc.) so
the name matches the file, and adds a short comment at each write site so the
distinction is not lost again.

Verified by running every installer and uninstaller against a sandboxed HOME:
the install/uninstall round trip exits 0, writes and removes only its own
server, preserves unrelated servers and unrelated top-level keys, and never
creates settings.json. Test suite: 410 passed before and after.

PowerShell scripts are checked for path and variable consistency but not
executed - no PowerShell available on the machine used.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
(cherry picked from commit 1c839de8ab)
2026-09-10 20:47:28 +03:00
..