fix: change Resource URI fields from AnyUrl to str (#1863)
This commit is contained in:
parent
f2abefffaf
commit
cfb2909631
1 changed files with 343 additions and 179 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import pytest
|
||||
from pydantic import AnyUrl
|
||||
from typing_extensions import AsyncGenerator
|
||||
|
||||
from mcp.client.session import ClientSession
|
||||
|
|
@ -16,7 +15,7 @@ def mcp_server() -> Server:
|
|||
async def handle_list_resources(): # pragma: no cover
|
||||
return [
|
||||
Resource(
|
||||
uri=AnyUrl("memory://test"),
|
||||
uri="memory://test",
|
||||
name="Test Resource",
|
||||
description="A test resource",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue