python-sdk/tests/server/fastmcp
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
..
prompts style: Fix imports and line length formatting 2024-12-21 00:46:36 +00:00
resources add support for async resources 2025-01-18 19:37:39 +01:00
servers fix: respect resource mime type in responses 2025-01-27 15:51:44 +00:00
__init__.py Integrate FastMCP 2024-12-21 00:41:38 +00:00
test_func_metadata.py fix tests 2024-12-21 01:17:59 +00:00
test_parameter_descriptions.py feat: add example and test for parameter descriptions in FastMCP tools 2025-01-06 12:30:44 +00:00
test_server.py fix: respect resource mime type in responses 2025-01-27 15:51:44 +00:00
test_tool_manager.py style: Fix imports and line length formatting 2024-12-21 00:46:36 +00:00