Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ida_pro_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -289,6 +291,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}")
Expand All @@ -311,7 +314,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)")
Expand Down