@@ -38,50 +38,94 @@ func TestGetClientConfigPath(t *testing.T) {
38
38
expectedPath : filepath .Join (homeDir , ".codeium" , "windsurf" , "mcp_config.json" ),
39
39
},
40
40
41
- // Claude tests - Darwin
41
+ // Claude Desktop tests - Darwin
42
42
{
43
- name : "claude_darwin " ,
44
- client : MCPClientClaude ,
43
+ name : "claude_desktop_darwin " ,
44
+ client : MCPClientClaudeDesktop ,
45
45
goos : "darwin" ,
46
46
expectedPath : filepath .Join (homeDir , "Library" , "Application Support" , "Claude" , "claude_desktop_config.json" ),
47
47
},
48
48
49
- // Claude tests - Windows with APPDATA
49
+ // Claude Desktop tests - Windows with APPDATA
50
50
{
51
- name : "claude_windows_with_appdata " ,
52
- client : MCPClientClaude ,
51
+ name : "claude_desktop_windows_with_appdata " ,
52
+ client : MCPClientClaudeDesktop ,
53
53
goos : "windows" ,
54
54
appData : "C:\\ Users\\ TestUser\\ AppData\\ Roaming" ,
55
55
expectedPath : filepath .Join ("C:\\ Users\\ TestUser\\ AppData\\ Roaming" , "Claude" , "claude_desktop_config.json" ),
56
56
},
57
57
58
- // Claude tests - Windows without APPDATA
58
+ // Claude Desktop tests - Windows without APPDATA
59
59
{
60
- name : "claude_windows_without_appdata " ,
61
- client : MCPClientClaude ,
60
+ name : "claude_desktop_windows_without_appdata " ,
61
+ client : MCPClientClaudeDesktop ,
62
62
goos : "windows" ,
63
63
appData : "" ,
64
64
expectedPath : filepath .Join (homeDir , "AppData" , "Roaming" , "Claude" , "claude_desktop_config.json" ),
65
65
},
66
66
67
- // Claude tests - Linux with XDG_CONFIG_HOME
67
+ // Claude Desktop tests - Linux with XDG_CONFIG_HOME
68
68
{
69
- name : "claude_linux_with_xdg " ,
70
- client : MCPClientClaude ,
69
+ name : "claude_desktop_linux_with_xdg " ,
70
+ client : MCPClientClaudeDesktop ,
71
71
goos : "linux" ,
72
72
xdgConfigHome : "/home/testuser/.config" ,
73
73
expectedPath : filepath .Join ("/home/testuser/.config" , "Claude" , "claude_desktop_config.json" ),
74
74
},
75
75
76
- // Claude tests - Linux without XDG_CONFIG_HOME
76
+ // Claude Desktop tests - Linux without XDG_CONFIG_HOME
77
77
{
78
- name : "claude_linux_without_xdg " ,
79
- client : MCPClientClaude ,
78
+ name : "claude_desktop_linux_without_xdg " ,
79
+ client : MCPClientClaudeDesktop ,
80
80
goos : "linux" ,
81
81
xdgConfigHome : "" ,
82
82
expectedPath : filepath .Join (homeDir , ".config" , "Claude" , "claude_desktop_config.json" ),
83
83
},
84
84
85
+ // Claude Code tests - Darwin
86
+ {
87
+ name : "claude_code_darwin" ,
88
+ client : MCPClientClaudeCode ,
89
+ goos : "darwin" ,
90
+ expectedPath : filepath .Join (homeDir , ".claude.json" ),
91
+ },
92
+
93
+ // Claude Code tests - Linux with XDG_CONFIG_HOME
94
+ {
95
+ name : "claude_code_linux_with_xdg" ,
96
+ client : MCPClientClaudeCode ,
97
+ goos : "linux" ,
98
+ xdgConfigHome : "/home/testuser" ,
99
+ expectedPath : filepath .Join (homeDir , ".claude.json" ),
100
+ },
101
+
102
+ // Claude Code tests - Linux without XDG_CONFIG_HOME
103
+ {
104
+ name : "claude_code_linux_without_xdg" ,
105
+ client : MCPClientClaudeCode ,
106
+ goos : "linux" ,
107
+ xdgConfigHome : "" ,
108
+ expectedPath : filepath .Join (homeDir , ".claude.json" ),
109
+ },
110
+
111
+ // Claude Code tests - Windows with APPDATA
112
+ {
113
+ name : "claude_code_windows_with_appdata" ,
114
+ client : MCPClientClaudeCode ,
115
+ goos : "windows" ,
116
+ appData : "C:\\ Users\\ TestUser\\ AppData\\ Roaming" ,
117
+ expectedPath : filepath .Join (homeDir , ".claude.json" ),
118
+ },
119
+
120
+ // Claude code tests - Windows without APPDATA
121
+ {
122
+ name : "claude_code_windows_without_appdata" ,
123
+ client : MCPClientClaudeCode ,
124
+ goos : "windows" ,
125
+ appData : "" ,
126
+ expectedPath : filepath .Join (homeDir , ".claude.json" ),
127
+ },
128
+
85
129
// Cursor tests
86
130
{
87
131
name : "cursor" ,
0 commit comments