From 074d7037f37b1453c7b98d8af2233ce813d3087b Mon Sep 17 00:00:00 2001 From: Chapoly1305 Date: Fri, 6 Jun 2025 09:54:00 -0400 Subject: [PATCH 1/3] add support for Claude Code --- src/ida_pro_mcp/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ida_pro_mcp/server.py b/src/ida_pro_mcp/server.py index 4908678..69808bb 100644 --- a/src/ida_pro_mcp/server.py +++ b/src/ida_pro_mcp/server.py @@ -289,6 +289,7 @@ def install_mcp_servers(*, uninstall=False, quiet=False, env={}): # Claude not supported on Linux "Cursor": (os.path.join(os.path.expanduser("~"), ".cursor"), "mcp.json"), "Windsurf": (os.path.join(os.path.expanduser("~"), ".codeium", "windsurf"), "mcp_config.json"), + "Claude Code": (os.path.join(os.path.expanduser("~")), ".claude.json"), } else: print(f"Unsupported platform: {sys.platform}") From 1c67d3f8a38becb729a63f9a2d4ffe9d503e0c5a Mon Sep 17 00:00:00 2001 From: Chapoly1305 Date: Fri, 6 Jun 2025 09:54:37 -0400 Subject: [PATCH 2/3] load file content instead of load file again --- src/ida_pro_mcp/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ida_pro_mcp/server.py b/src/ida_pro_mcp/server.py index 69808bb..9fd9463 100644 --- a/src/ida_pro_mcp/server.py +++ b/src/ida_pro_mcp/server.py @@ -312,7 +312,7 @@ def install_mcp_servers(*, uninstall=False, quiet=False, env={}): config = {} else: try: - config = json.load(f) + config = json.loads(data) except json.decoder.JSONDecodeError: if not quiet: print(f"Skipping {name} uninstall\n Config: {config_path} (invalid JSON)") From 56dfa7575709ccf74324124de95d732980ba7193 Mon Sep 17 00:00:00 2001 From: Super Chiba Date: Wed, 11 Jun 2025 05:47:46 -0400 Subject: [PATCH 3/3] add Claude Code support for darwin --- src/ida_pro_mcp/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ida_pro_mcp/server.py b/src/ida_pro_mcp/server.py index 9fd9463..52b11b8 100644 --- a/src/ida_pro_mcp/server.py +++ b/src/ida_pro_mcp/server.py @@ -273,6 +273,7 @@ def install_mcp_servers(*, uninstall=False, quiet=False, env={}): "Claude": (os.path.join(os.getenv("APPDATA"), "Claude"), "claude_desktop_config.json"), "Cursor": (os.path.join(os.path.expanduser("~"), ".cursor"), "mcp.json"), "Windsurf": (os.path.join(os.path.expanduser("~"), ".codeium", "windsurf"), "mcp_config.json"), + # Windows does not support Claude Code, yet. } elif sys.platform == "darwin": configs = { @@ -281,6 +282,7 @@ def install_mcp_servers(*, uninstall=False, quiet=False, env={}): "Claude": (os.path.join(os.path.expanduser("~"), "Library", "Application Support", "Claude"), "claude_desktop_config.json"), "Cursor": (os.path.join(os.path.expanduser("~"), ".cursor"), "mcp.json"), "Windsurf": (os.path.join(os.path.expanduser("~"), ".codeium", "windsurf"), "mcp_config.json"), + "Claude Code": (os.path.join(os.path.expanduser("~")), ".claude.json"), } elif sys.platform == "linux": configs = {