python-sdk/tests/issues
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Soria Parra 8ff4b5e9d3
fix: respect resource mime type in responses
The server was ignoring mime types set on resources, defaulting to text/plain
for strings and application/octet-stream for bytes. Now properly preserves
the specified mime type in both FastMCP and low-level server implementations.

Note that this is breaks backwards compatibility as it changes the return
values of read_resource() on FastMCP. It is BC compatible on lowlevel since
it only extends the callback.

Github-Issue: #152
Reported-by: eiseleMichael
2025-01-27 15:51:44 +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_152_resource_mime_type.py fix: respect resource mime type in responses 2025-01-27 15:51:44 +00:00