Add resource Link (#974)
This commit is contained in:
parent
86bb54cb28
commit
d0443a1832
1 changed files with 66 additions and 22 deletions
|
|
@ -11,7 +11,7 @@ from anyio.abc import TaskStatus
|
|||
from mcp.client.session import ClientSession
|
||||
from mcp.server.lowlevel import Server
|
||||
from mcp.shared.exceptions import McpError
|
||||
from mcp.types import Content, TextContent
|
||||
from mcp.types import ContentBlock, TextContent
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
|
@ -31,7 +31,7 @@ async def test_notification_validation_error(tmp_path: Path):
|
|||
slow_request_complete = anyio.Event()
|
||||
|
||||
@server.call_tool()
|
||||
async def slow_tool(name: str, arg) -> Sequence[Content]:
|
||||
async def slow_tool(name: str, arg) -> Sequence[ContentBlock]:
|
||||
nonlocal request_count
|
||||
request_count += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue