Join the FastMCP community!
fastmcp.server.proxydefault_proxy_roots_handler default_proxy_roots_handler(context: RequestContext[ClientSession, LifespanContextT]) -> RootsList
ProxyManagerMixin ProxyToolManager get_tools get_tools(self) -> dict[str, Tool]
list_tools list_tools(self) -> list[Tool]
call_tool call_tool(self, key: str, arguments: dict[str, Any]) -> ToolResult
ProxyResourceManager get_resources get_resources(self) -> dict[str, Resource]
get_resource_templates get_resource_templates(self) -> dict[str, ResourceTemplate]
list_resources list_resources(self) -> list[Resource]
list_resource_templates list_resource_templates(self) -> list[ResourceTemplate]
read_resource read_resource(self, uri: AnyUrl | str) -> str | bytes
ProxyPromptManager get_prompts get_prompts(self) -> dict[str, Prompt]
list_prompts list_prompts(self) -> list[Prompt]
render_prompt render_prompt(self, name: str, arguments: dict[str, Any] | None = None) -> GetPromptResult
ProxyTool from_mcp_tool from_mcp_tool(cls, client: Client, mcp_tool: mcp.types.Tool) -> ProxyTool
run run(self, arguments: dict[str, Any], context: Context | None = None) -> ToolResult
ProxyResource from_mcp_resource from_mcp_resource(cls, client: Client, mcp_resource: mcp.types.Resource) -> ProxyResource
read read(self) -> str | bytes
ProxyTemplate from_mcp_template from_mcp_template(cls, client: Client, mcp_template: mcp.types.ResourceTemplate) -> ProxyTemplate
create_resource create_resource(self, uri: str, params: dict[str, Any], context: Context | None = None) -> ProxyResource
ProxyPrompt from_mcp_prompt from_mcp_prompt(cls, client: Client, mcp_prompt: mcp.types.Prompt) -> ProxyPrompt
render render(self, arguments: dict[str, Any]) -> list[PromptMessage]
FastMCPProxy ProxyClient default_sampling_handler default_sampling_handler(cls, messages: list[mcp.types.SamplingMessage], params: mcp.types.CreateMessageRequestParams, context: RequestContext[ClientSession, LifespanContextT]) -> mcp.types.CreateMessageResult
default_elicitation_handler default_elicitation_handler(cls, message: str, response_type: type, params: mcp.types.ElicitRequestParams, context: RequestContext[ClientSession, LifespanContextT]) -> ElicitResult
default_log_handler default_log_handler(cls, message: LogMessage) -> None
default_progress_handler default_progress_handler(cls, progress: float, total: float | None, message: str | None) -> None
StatefulProxyClient clear clear(self)
new_stateful new_stateful(self) -> Client[ClientTransportT]