From 1a06130fcfaece1d494bf444c1561e752d94c61a Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Sat, 30 May 2026 11:48:46 -0400 Subject: [PATCH] Fix GitHub MCP resource integration test (#4253) --- tests/integration_tests/test_github_mcp_remote.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/test_github_mcp_remote.py b/tests/integration_tests/test_github_mcp_remote.py index a58b17c63..552fc28dd 100644 --- a/tests/integration_tests/test_github_mcp_remote.py +++ b/tests/integration_tests/test_github_mcp_remote.py @@ -3,7 +3,7 @@ import os import pytest from mcp import McpError -from mcp.types import TextContent, Tool +from mcp.types import Resource, TextContent, Tool from fastmcp import Client from fastmcp.client import StreamableHttpTransport @@ -75,7 +75,10 @@ class TestGithubMCPRemote: assert streamable_http_client.is_connected() resources = await streamable_http_client.list_resources() assert isinstance(resources, list) - assert len(resources) == 0 + for resource in resources: + assert isinstance(resource, Resource) + assert resource.name + assert str(resource.uri) async def test_list_prompts( self, streamable_http_client: Client[StreamableHttpTransport]