python-sdk/tests/server
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
..
fastmcp fix: respect resource mime type in responses 2025-01-27 15:51:44 +00:00
__init__.py Initial import 2024-09-24 22:04:19 +01:00
test_session.py fix: Address formatting and type checking issues 2025-01-03 15:23:58 +00:00
test_stdio.py rename mcp_python to mcp 2024-11-11 12:40:32 +00:00