From 7e0fffca259f5bcb794bf7ddb658546a2816033f Mon Sep 17 00:00:00 2001 From: Denis Palnitsky Date: Mon, 30 Mar 2026 20:16:16 +0200 Subject: [PATCH] Add undefined fields for logo_uri and tos_uri in OAuth metadata tests --- packages/api/src/mcp/__tests__/handler.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/api/src/mcp/__tests__/handler.test.ts b/packages/api/src/mcp/__tests__/handler.test.ts index ae0412ab0c..d9b0b46492 100644 --- a/packages/api/src/mcp/__tests__/handler.test.ts +++ b/packages/api/src/mcp/__tests__/handler.test.ts @@ -1460,6 +1460,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { 'user-123', {}, undefined, + undefined, mockFindToken, ); @@ -1502,6 +1503,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { client_id: 'new-client-id', client_secret: 'new-client-secret', redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'], + logo_uri: undefined, + tos_uri: undefined, }); mockStartAuthorization.mockResolvedValueOnce({ @@ -1515,6 +1518,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { 'user-123', {}, undefined, + undefined, mockFindToken, ); @@ -1544,6 +1548,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { client_id: 'new-client-id', client_secret: 'new-client-secret', redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'], + logo_uri: undefined, + tos_uri: undefined, }); mockStartAuthorization.mockResolvedValueOnce({ @@ -1591,6 +1597,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { client_id: 'new-client-id', client_secret: 'new-client-secret', redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'], + logo_uri: undefined, + tos_uri: undefined, }); mockStartAuthorization.mockResolvedValueOnce({ @@ -1604,6 +1612,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { 'user-123', {}, undefined, + undefined, mockFindToken, ); @@ -1643,6 +1652,8 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { client_id: 'new-client-id', client_secret: 'new-client-secret', redirect_uris: ['http://localhost:3080/api/mcp/test-server/oauth/callback'], + logo_uri: undefined, + tos_uri: undefined, }); mockStartAuthorization.mockResolvedValueOnce({ @@ -1656,6 +1667,7 @@ describe('MCPOAuthHandler - Configurable OAuth Metadata', () => { 'user-123', {}, undefined, + undefined, mockFindToken, );