Bug: add resource parameter to MCP OAuth Flow (#4981)

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
Brian Ray
2025-07-27 14:09:45 -04:00
committed by GitHub
parent 576cebc928
commit c45c14ee0e
3 changed files with 49 additions and 10 deletions
@@ -28,6 +28,7 @@ export interface MCPOAuthCredentials {
token: MCPOAuthToken;
clientId?: string;
tokenUrl?: string;
mcpServerUrl?: string;
updatedAt: number;
}
@@ -91,12 +92,14 @@ export class MCPOAuthTokenStorage {
* @param token The OAuth token to save
* @param clientId Optional client ID used for this token
* @param tokenUrl Optional token URL used for this token
* @param mcpServerUrl Optional MCP server URL
*/
static async saveToken(
serverName: string,
token: MCPOAuthToken,
clientId?: string,
tokenUrl?: string,
mcpServerUrl?: string,
): Promise<void> {
await this.ensureConfigDir();
@@ -107,6 +110,7 @@ export class MCPOAuthTokenStorage {
token,
clientId,
tokenUrl,
mcpServerUrl,
updatedAt: Date.now(),
};