diff options
| author | Brian Ray <[email protected]> | 2025-07-27 14:09:45 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-27 18:09:45 +0000 |
| commit | c45c14ee0ea7c3b6c9f66816e82671adf7cde54e (patch) | |
| tree | 608085113327eb6eeed8ffef3d7f1cc00799b422 /packages/core/src/mcp/oauth-token-storage.ts | |
| parent | 576cebc9282cfbe57d45321105d72cc61597ce9b (diff) | |
Bug: add resource parameter to MCP OAuth Flow (#4981)
Co-authored-by: Your Name <[email protected]>
Diffstat (limited to 'packages/core/src/mcp/oauth-token-storage.ts')
| -rw-r--r-- | packages/core/src/mcp/oauth-token-storage.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/core/src/mcp/oauth-token-storage.ts b/packages/core/src/mcp/oauth-token-storage.ts index fc9da8af..0500b43e 100644 --- a/packages/core/src/mcp/oauth-token-storage.ts +++ b/packages/core/src/mcp/oauth-token-storage.ts @@ -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(), }; |
