Skip to main content
Defined in: server/auth/oauth/proxy.ts:6

Properties

endpoints

endpoints: {
  authorizationUrl: string;
  revocationUrl?: string;
  tokenUrl: string;
};
Defined in: server/auth/oauth/proxy.ts:13 Upstream OAuth server endpoint URLs.

authorizationUrl

authorizationUrl: string;

revocationUrl?

optional revocationUrl?: string;

tokenUrl

tokenUrl: string;

upstreamCredentials

upstreamCredentials: {
  clientId: string;
  clientSecret?: string;
};
Defined in: server/auth/oauth/proxy.ts:8 Pre-registered credentials this proxy uses when talking to the upstream server.

clientId

clientId: string;

clientSecret?

optional clientSecret?: string;

verifyAccessToken

verifyAccessToken: (token) => Promise<AuthInfo>;
Defined in: server/auth/oauth/proxy.ts:22 Verifies an access token issued by the upstream and returns information about it. Called for every MCP request to validate the bearer token.

Parameters

token
string

Returns

Promise<AuthInfo>