tavily_fastmcp.client

FastMCP client helpers for local inspection.

Purpose:

Provide tiny wrappers that make it easy to inspect tools, resources, and prompts from an in-process FastMCP server during development.

Examples

>>> callable(iter_component_names)
True

Functions

iter_component_names(→ dict[str, list[str]])

Inspect a FastMCP client for tools, prompts, and resources.

Module Contents

async tavily_fastmcp.client.iter_component_names(client: Any) dict[str, list[str]][source]

Inspect a FastMCP client for tools, prompts, and resources.

Parameters:

client – A FastMCP client instance already bound to a server.

Returns:

A dictionary containing component name lists.

Raises:

AttributeError – If the client does not expose the required methods.

Examples

>>> isinstance({"tools": []}, dict)
True