Skip to content

Commit 1a06130

Browse files
authored
Fix GitHub MCP resource integration test (#4253)
1 parent 58e0f53 commit 1a06130

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/integration_tests/test_github_mcp_remote.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import pytest
55
from mcp import McpError
6-
from mcp.types import TextContent, Tool
6+
from mcp.types import Resource, TextContent, Tool
77

88
from fastmcp import Client
99
from fastmcp.client import StreamableHttpTransport
@@ -75,7 +75,10 @@ async def test_list_resources(
7575
assert streamable_http_client.is_connected()
7676
resources = await streamable_http_client.list_resources()
7777
assert isinstance(resources, list)
78-
assert len(resources) == 0
78+
for resource in resources:
79+
assert isinstance(resource, Resource)
80+
assert resource.name
81+
assert str(resource.uri)
7982

8083
async def test_list_prompts(
8184
self, streamable_http_client: Client[StreamableHttpTransport]

0 commit comments

Comments
 (0)