@@ -171,10 +171,6 @@ async def test_get_allowed_mcp_servers_inheritance_logic(
171
171
with patch .object (
172
172
MCPRequestHandler , "_get_allowed_mcp_servers_for_team"
173
173
) as mock_team_servers :
174
- < << << << HEAD
175
-
176
- == == == =
177
- >> >> >> > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
178
174
# Configure mocks to return the test data
179
175
mock_key_servers .return_value = key_servers
180
176
mock_team_servers .return_value = team_servers
@@ -346,17 +342,11 @@ async def test_process_mcp_request_with_server_auth_headers(
346
342
# Create an async mock for user_api_key_auth
347
343
async def mock_user_api_key_auth (api_key , request ):
348
344
return UserAPIKeyAuth (
349
- << << << < HEAD
350
345
token = (
351
346
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
352
347
if api_key
353
348
else None
354
349
),
355
- == == == =
356
- token = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
357
- if api_key
358
- else None ,
359
- >> >> >> > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
360
350
api_key = api_key ,
361
351
user_id = "test-user-id" if api_key else None ,
362
352
team_id = "test-team-id" if api_key else None ,
@@ -374,10 +364,6 @@ async def mock_user_api_key_auth(api_key, request):
374
364
mcp_auth_header ,
375
365
mcp_servers ,
376
366
mcp_server_auth_headers ,
377
- << << << < HEAD
378
- mcp_protocol_version ,
379
- == == == =
380
- >> >> >> > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
381
367
) = await MCPRequestHandler .process_mcp_request (scope )
382
368
383
369
# Assert the results
@@ -557,10 +543,6 @@ async def test_header_extraction(self, headers, expected_result):
557
543
mcp_auth_header ,
558
544
mcp_servers_result ,
559
545
mcp_server_auth_headers ,
560
- << << << < HEAD
561
- mcp_protocol_version ,
562
- == == == =
563
- >> >> >> > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
564
546
) = await MCPRequestHandler .process_mcp_request (scope )
565
547
assert auth_result == mock_auth_result
566
548
assert mcp_auth_header == expected_result ["mcp_auth" ]
@@ -599,10 +581,6 @@ def test_get_mcp_client_side_auth_header_name(
599
581
with patch (
600
582
"litellm.proxy.proxy_server.general_settings"
601
583
) as mock_general_settings :
602
- << < << < < HEAD
603
-
604
- == == == =
605
- >> > >> > > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
606
584
# Configure mocks
607
585
mock_get_secret .return_value = env_var
608
586
mock_general_settings .get .return_value = general_setting
@@ -706,10 +684,6 @@ async def test_process_mcp_request_with_custom_auth_header(self):
706
684
"_get_mcp_client_side_auth_header_name" ,
707
685
return_value = "custom-auth-header" ,
708
686
):
709
- << << << < HEAD
710
-
711
- == == == =
712
- >> > >> > > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
713
687
# Create ASGI scope with custom header
714
688
scope = {
715
689
"type" : "http" ,
@@ -742,10 +716,6 @@ async def mock_user_api_key_auth(api_key, request):
742
716
mcp_auth_header ,
743
717
mcp_servers ,
744
718
mcp_server_auth_headers ,
745
- << << << < HEAD
746
- mcp_protocol_version ,
747
- == == == =
748
- >> >> >> > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
749
719
) = await MCPRequestHandler .process_mcp_request (scope )
750
720
751
721
# Assert the results
@@ -965,10 +935,6 @@ async def mock_user_api_key_auth(api_key, request):
965
935
mcp_auth_header ,
966
936
mcp_servers ,
967
937
mcp_server_auth_headers ,
968
- < << << << HEAD
969
- mcp_protocol_version ,
970
- == == == =
971
- >> >> >> > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
972
938
) = await MCPRequestHandler .process_mcp_request (scope )
973
939
974
940
# Assert the results
@@ -997,10 +963,6 @@ async def dummy_handle_request(scope, receive, send):
997
963
mcp_auth_header ,
998
964
mcp_servers ,
999
965
mcp_server_auth_headers ,
1000
- << << << < HEAD
1001
- mcp_protocol_version ,
1002
- == == == =
1003
- >> >> >> > 78 d744e15d (fix : remove adding Mcp - Protocol - Version header (#14069))
1004
966
) = get_auth_context ()
1005
967
1006
968
# Capture the MCP servers for testing
0 commit comments