diff options
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(), }; |
