Join the FastMCP community!
fastmcp.server.middleware.tool_injectionlist_prompts list_prompts(context: Context) -> list[Prompt]
get_prompt get_prompt(context: Context, name: Annotated[str, 'The name of the prompt to render.'], arguments: Annotated[dict[str, Any] | None, 'The arguments to pass to the prompt.'] = None) -> mcp.types.GetPromptResult
list_resources list_resources(context: Context) -> list[mcp.types.Resource]
read_resource read_resource(context: Context, uri: Annotated[AnyUrl | str, 'The URI of the resource to read.']) -> list[ReadResourceContents]
ToolInjectionMiddleware on_list_tools on_list_tools(self, context: MiddlewareContext[mcp.types.ListToolsRequest], call_next: CallNext[mcp.types.ListToolsRequest, Sequence[Tool]]) -> Sequence[Tool]
on_call_tool on_call_tool(self, context: MiddlewareContext[mcp.types.CallToolRequestParams], call_next: CallNext[mcp.types.CallToolRequestParams, ToolResult]) -> ToolResult
PromptToolMiddleware ResourceToolMiddleware