mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 14:34:17 +02:00
* feat: make ResourceContent the canonical internal type for resources Add Resource._read() private method that always returns ResourceContent, maintaining backwards compatibility for custom resources returning str/bytes from read(). Includes deprecation warning when str/bytes is returned. * fix: address review feedback for ResourceContent - Remove ResourceContent from root exports (import from fastmcp.resources) - Fix FunctionResource.read() return type to str | bytes | ResourceContent - Decode base64 blobs in proxy when receiving from remote servers - Preserve meta in ProxyResource cached content * fix: add empty result guards in proxy resource reads |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_caching.py | ||
| test_error_handling.py | ||
| test_initialization_middleware.py | ||
| test_logging.py | ||
| test_middleware.py | ||
| test_rate_limiting.py | ||
| test_timing.py | ||
| test_tool_injection.py | ||