|
42 | 42 | { |
43 | 43 | "id": "codacy:mcp", |
44 | 44 | "name": "Codacy MCP Server", |
45 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor", |
| 45 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf)", |
46 | 46 | "icon": "$(gear)", |
47 | 47 | "initialSize": 2 |
48 | 48 | }, |
|
84 | 84 | }, |
85 | 85 | { |
86 | 86 | "view": "codacy:mcp", |
87 | | - "contents": "Enable your Cursor AI Chat to talk to Codacy's Cloud API \n[Add Codacy MCP Server](command:codacy.configureMCP)", |
88 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor && !codacy:mcpConfigured" |
| 87 | + "contents": "Enable your AI Chat to talk to Codacy's Cloud API \n[Add Codacy MCP Server](command:codacy.configureMCP)", |
| 88 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && !codacy:mcpConfigured" |
89 | 89 | }, |
90 | 90 | { |
91 | 91 | "view": "codacy:mcp", |
92 | 92 | "contents": "MCP Server is enabled\n[Reset MCP Server](command:codacy.configureMCP.reset)", |
93 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor && codacy:mcpConfigured" |
| 93 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && codacy:mcpConfigured" |
94 | 94 | }, |
95 | 95 | { |
96 | 96 | "view": "codacy:statuses", |
|
193 | 193 | "command": "codacy.configureMCP", |
194 | 194 | "title": "Configure Codacy MCP Server", |
195 | 195 | "category": "Codacy commands", |
196 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor" |
| 196 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && !codacy:mcpConfigured" |
197 | 197 | }, |
198 | 198 | { |
199 | 199 | "command": "codacy.configureMCP.reset", |
200 | 200 | "title": "Reset Codacy MCP Server", |
201 | 201 | "category": "Codacy commands", |
202 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor && codacy:mcpConfigured" |
| 202 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && codacy:mcpConfigured" |
203 | 203 | }, |
204 | 204 | { |
205 | 205 | "command": "codacy.configureMCP", |
206 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor && !codacy:mcpConfigured" |
| 206 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && !codacy:mcpConfigured" |
207 | 207 | }, |
208 | 208 | { |
209 | 209 | "command": "codacy.configureMCP.reset", |
210 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor && codacy:mcpConfigured" |
| 210 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && codacy:mcpConfigured" |
211 | 211 | } |
212 | 212 | ], |
213 | 213 | "menus": { |
|
226 | 226 | }, |
227 | 227 | { |
228 | 228 | "command": "codacy.configureMCP", |
229 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor && !codacy:mcpConfigured" |
| 229 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && !codacy:mcpConfigured" |
230 | 230 | }, |
231 | 231 | { |
232 | 232 | "command": "codacy.configureMCP.reset", |
233 | | - "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && codacy:isCursor && codacy:mcpConfigured" |
| 233 | + "when": "Codacy:RepositoryManagerStateContext != NeedsAuthentication && (codacy:isCursor || codacy:isWindsurf) && codacy:mcpConfigured" |
234 | 234 | } |
235 | 235 | ], |
236 | 236 | "view/title": [ |
|
0 commit comments