Pass InputRequiredResult through the MCPServer prompt and resource pipelines (#3020)

This commit is contained in:
Max 2026-06-29 17:50:58 +02:00 • committed by GitHub
commit 8d0f928e40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
import pytest
from mcp_types import (
InputRequiredResult,
ListResourceTemplatesResult,
TextResourceContents,
)
@ -49,6 +50,7 @@ async def test_resource_template_edge_cases():
# Verify valid template works
result = await mcp.read_resource("resource://users/123/posts/456")
assert not isinstance(result, InputRequiredResult)
result_list = list(result)
assert len(result_list) == 1
assert result_list[0].content == "Post 456 by user 123"