From 34ec9da0123da2fbff09951c3160911ade09eeff Mon Sep 17 00:00:00 2001 From: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com> Date: Sat, 19 Sep 2026 12:01:17 -0700 Subject: [PATCH] test(mcp): verify catalog wire aliases after SDK2 upgrade --- .../proxy/_experimental/mcp_server/test_rest_endpoints.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py b/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py index 5cc7444de21..f71099234a6 100644 --- a/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py +++ b/tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py @@ -2482,6 +2482,8 @@ class TestListPromptsAndResourcesRestAPI: assert [str(resource.uri) for resource in result.resources] == ["demo://readme"] assert result.resources[0].mime_type == "text/markdown" assert [template.uri_template for template in result.resource_templates] == ["demo://users/{user_id}/profile"] + assert result.model_dump(by_alias=True)["resources"][0]["mimeType"] == "text/markdown" + assert result.model_dump(by_alias=True)["resource_templates"][0]["uriTemplate"] == "demo://users/{user_id}/profile" for upstream in (get_resources, get_templates): upstream.assert_awaited_once() assert upstream.await_args.args[0] is server