From a68f6c381fa0a0a2f2adb834194d8362b002fb95 Mon Sep 17 00:00:00 2001 From: Marius Date: Wed, 8 Oct 2025 15:27:16 +0300 Subject: [PATCH] Fix: Preserve original encoding in claude-mcp-toggle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The save_config function was using json.dump with default ensure_ascii=True, which converted all Romanian characters to \uXXXX escape sequences, making the entire ~/.claude.json file appear modified even when only changing MCP server configuration for a specific project. Added ensure_ascii=False to preserve original UTF-8 encoding and minimize file changes to only the intended MCP server modifications. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- utils/claude-mcp-manager/claude-mcp-toggle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/claude-mcp-manager/claude-mcp-toggle b/utils/claude-mcp-manager/claude-mcp-toggle index 65dd8a1..17c1406 100644 --- a/utils/claude-mcp-manager/claude-mcp-toggle +++ b/utils/claude-mcp-manager/claude-mcp-toggle @@ -21,7 +21,7 @@ def load_config(): def save_config(data): with open(CLAUDE_CONFIG, 'w') as f: - json.dump(data, f, indent=2) + json.dump(data, f, indent=2, ensure_ascii=False) def list_servers(project_path=None): data = load_config()