python-sdk/tests/server/fastmcp/servers
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
..
__init__.py Integrate FastMCP 2024-12-21 00:41:38 +00:00
test_file_server.py fix: respect resource mime type in responses 2025-01-27 15:51:44 +00:00