fastmcp/examples
Chanwoo Noh 7a1e332aae fix: update mount_example.py for current fastmcp API
- Update mount() calls to use keyword arguments (server, prefix)
- Replace private API access with public async methods (get_tools, get_resources)
- Fix resource URI handling to use URL parsing instead of string prefixes
- Update resource access to use _mcp_read_resource with proper URI format
- Add urllib.parse import for URL parsing functionality

The mounting API and resource handling changed in recent fastmcp versions,
breaking the mount_example.py functionality. This update ensures the example
works correctly with fastmcp v2.9.0.

Tested on: fastmcp v2.9.0
2025-06-26 14:44:51 +09:00
..
atproto_mcp i dont think i need that 2025-06-23 12:43:42 -05:00
smart_home Remove empty parens 2025-06-04 15:41:28 -04:00
complex_inputs.py Remove empty parens 2025-06-04 15:37:55 -04:00
config_server.py Remove empty parens 2025-06-04 15:37:55 -04:00
desktop.py Remove empty parens 2025-06-04 15:37:55 -04:00
echo.py Remove empty parens 2025-06-04 15:37:55 -04:00
get_file.py Run pre-commit and fix typing issues 2025-06-16 07:12:41 +02:00
in_memory_proxy_example.py Add as_proxy improvements and tests 2025-05-17 12:23:48 -04:00
memory.py Remove empty parens 2025-06-04 15:37:55 -04:00
mount_example.py fix: update mount_example.py for current fastmcp API 2025-06-26 14:44:51 +09:00
sampling.py Remove empty parens 2025-06-04 15:37:55 -04:00
screenshot.py Deprecate top-level import 2025-06-14 09:12:21 -04:00
serializer.py Remove empty parens 2025-06-04 15:41:28 -04:00
simple_echo.py Remove empty parens 2025-06-04 15:37:55 -04:00
tags_example.py Add support for RouteMap tags, update docs 2025-05-22 21:59:16 -04:00
text_me.py Basic cleanup 2025-04-05 17:39:51 -04:00