python-sdk/tests/issues
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Soria Parra c8ce49c92d
Fix #177: Returning multiple tool results (#222)
* feat: allow lowlevel servers to return a list of resources

The resource/read message in MCP allows of multiple resources
to be returned. However, in the SDK we do not allow this. This
change is such that we allow returning multiple resource in
the lowlevel API if needed. However in FastMCP we stick to
one, since a FastMCP resource defines the mime_type in the decorator
and hence a resource cannot dynamically return different mime_typed resources.
It also is just the better default to only return one resource.
However in the lowlevel API we will allow this.

Strictly speaking this is not a BC break since the new return value
is additive, but if people subclassed server, it will break them.

* feat: lower the type requriements for call_tool to Iterable
2025-02-20 21:31:47 +00:00
..
test_88_random_error.py fix: improve error handling and request cancellation for issue #88 2025-02-04 18:20:17 +00:00
test_100_tool_listing.py style: Fix import sorting and update ruff version 2025-01-03 15:57:14 +00:00
test_129_resource_templates.py fix: #129 resource template handling in FastMCP server 2025-01-06 20:02:03 +00:00
test_141_resource_templates.py Fix #177: Returning multiple tool results (#222) 2025-02-20 21:31:47 +00:00
test_152_resource_mime_type.py Fix #177: Returning multiple tool results (#222) 2025-02-20 21:31:47 +00:00
test_176_progress_token.py test: add tests for server lifespan support 2025-02-11 12:16:47 +00:00
test_188_concurrency.py fix: mark test as pytest.mark.anyio 2025-02-20 11:05:50 +00:00
test_192_request_id.py Add test to verify request ID preservation 2025-02-12 16:32:21 +00:00