(mcpServerUrl: string, ide: IDE)
| 231 | } |
| 232 | |
| 233 | export async function getOauthToken(mcpServerUrl: string, ide: IDE) { |
| 234 | const authProvider = new MCPConnectionOauthProvider(mcpServerUrl, ide); |
| 235 | const tokens = await authProvider.tokens(); |
| 236 | return tokens?.access_token; |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * checks if the authentication is already done for the current server |
no test coverage detected