fastmcp/docs/servers
William Easton 1e5776f69c
Add list_resources, list_prompts, and get_prompt methods to Context (#2249)
* Add list_resources, list_prompts, and get_prompt methods to Context

- Add Context.list_resources() to list all available resources
- Add Context.list_prompts() to list all available prompts
- Add Context.get_prompt() to get a specific prompt with arguments
- Update ToolInjectionMiddleware to use new Context methods instead of creating temporary Client instances
- Remove unused Client and FastMCPTransport imports from tool_injection.py

This improves API consistency by allowing middleware/tools to use Context methods directly without needing to create temporary Client instances.

Fixes #2245

Co-authored-by: William Easton <strawgate@users.noreply.github.com>

* Update docs

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: William Easton <strawgate@users.noreply.github.com>
Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
2025-10-24 19:24:02 -04:00
..
auth Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
composition.mdx Add storage backend documentation (#2137) 2025-10-19 19:24:13 -04:00
context.mdx Add list_resources, list_prompts, and get_prompt methods to Context (#2249) 2025-10-24 19:24:02 -04:00
elicitation.mdx Add storage backend documentation (#2137) 2025-10-19 19:24:13 -04:00
icons.mdx Add storage backend documentation (#2137) 2025-10-19 19:24:13 -04:00
logging.mdx Also push client messages (info/warn/debug) to server debug log (#2063) 2025-10-14 11:38:26 -07:00
middleware.mdx Add ToolInjectionMiddleware + Tools for Read/List Resource/Prompt for Client Compat (#2142) 2025-10-24 18:06:58 -04:00
progress.mdx Update parameter capitalization 2025-06-28 15:06:16 -04:00
prompts.mdx Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
proxy.mdx Improve docs on prefix rules (#2028) 2025-10-08 19:57:14 -04:00
resources.mdx Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
sampling.mdx Move sampling fallback handler docs to server section (#2163) 2025-10-21 10:02:11 -04:00
server.mdx Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
storage-backends.mdx Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
tools.mdx Update content type in advanced_tool function (#2147) 2025-10-20 08:43:35 -04:00