tavily_fastmcp.server¶
FastMCP server factory for Tavily FastMCP.
- Purpose:
Build a discoverable FastMCP server exposing typed Tavily-backed tools, prompt catalogs, profile catalogs, static resources, and dynamic resource templates.
- Design:
Accept a service dependency so tests can inject a fake backend.
Publish tool, prompt, and resource metadata with tags and custom meta.
Keep prompt markdown as package data and surface it through MCP.
Examples
>>> callable(create_server)
True
Attributes¶
Functions¶
|
|
|
Create a configured FastMCP server instance. |
|
Build the CLI argument parser. |
|
Run the MCP server from the command line. |
Module Contents¶
- tavily_fastmcp.server._build_catalog() tavily_fastmcp.models.ServerCatalog[source]¶
- tavily_fastmcp.server.create_server(*, settings: tavily_fastmcp.settings.Settings | None = None, service: tavily_fastmcp.service.TavilyServiceProtocol | None = None) Any[source]¶
Create a configured FastMCP server instance.
- Parameters:
settings – Optional validated settings object.
service – Optional Tavily service implementation for dependency injection in tests.
- Returns:
A configured FastMCP server instance.
- Raises:
RuntimeError – If FastMCP is not installed.
Examples
>>> callable(create_server) True