MCPcopy
hub / github.com/continuedev/continue / getOauthToken

Function getOauthToken

core/context/mcp/MCPOauth.ts:233–237  ·  view source on GitHub ↗
(mcpServerUrl: string, ide: IDE)

Source from the content-addressed store, hash-verified

231}
232
233export 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

Callers 2

connectClientMethod · 0.90
MCPOauth.vitest.tsFile · 0.90

Calls 1

tokensMethod · 0.95

Tested by

no test coverage detected