fastmcp/docs
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
..
.cursor/rules Clean up parameter documentation 2025-06-22 20:59:53 -04:00
assets Support custom server name, icons, and link in OAuth Proxy consent page (#2135) 2025-10-18 11:49:26 -04:00
clients Move sampling fallback handler docs to server section (#2163) 2025-10-21 10:02:11 -04:00
community Update docs (#2094) 2025-10-14 16:38:21 -07:00
css Update wordmark (#1832) 2025-09-15 18:14:37 -04:00
deployment Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
development Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
getting-started Docs (#2145) 2025-10-19 20:26:08 -04:00
integrations Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
patterns Add Documentation for FastMCP Server Testing (#2244) 2025-10-24 19:11:21 -04:00
public/schemas/fastmcp.json chore: Update fastmcp.json schema (#1955) 2025-09-29 20:12:24 -04:00
python-sdk Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
servers Add list_resources, list_prompts, and get_prompt methods to Context (#2249) 2025-10-24 19:24:02 -04:00
snippets Add MCP json output from CLI (#1056) 2025-07-06 10:23:50 -04:00
tutorials Add comprehensive OAuth 2.1 authentication system with WorkOS integration (#1327) 2025-08-01 17:06:55 -04:00
.ccignore Add comprehensive OAuth 2.1 authentication system with WorkOS integration (#1327) 2025-08-01 17:06:55 -04:00
changelog.mdx Update changelog for 2.12.5 (#2146) 2025-10-19 20:33:35 -04:00
docs.json Add Documentation for FastMCP Server Testing (#2244) 2025-10-24 19:11:21 -04:00
updates.mdx Update changelog for 2.12.5 (#2146) 2025-10-19 20:33:35 -04:00