fastmcp/docs
Jeremiah Lowin c96c0400f3
feat: Search transforms for tool discovery (#3154)
* feat: Add search transforms for tool discovery

RegexSearchTransform and BM25SearchTransform collapse large tool
catalogs into a search interface so LLMs discover tools on demand
instead of receiving the full listing.

* chore: Update SDK documentation

* fix: call_tool recursion guard, atomic BM25 rebuild, hash includes descriptions

* Extract CatalogTransform base class for catalog-aware transforms

Transforms that replace list_tools() with synthetic components (like
search) need to read the real catalog at call time without triggering
their own replacement logic. CatalogTransform handles the re-entrant
bypass via per-instance ContextVar, exposing transform_tools() as the
subclass hook and get_tool_catalog() for catalog access.

* Add search transform examples for regex and BM25

* Add README for search transform examples

* Polish search example clients with rich output

* Remove hardcoded tool counts from search example subtitles

* Clarify that review bot feedback should be evaluated on its merits

* Expand search transform docs with proper hierarchy

---------

Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
2026-02-26 22:42:38 -05:00
..
.cursor/rules Clean up parameter documentation 2025-06-22 20:59:53 -04:00
apps Reorganize docs navigation around Server/Client/Apps pillars (#3197) 2026-02-16 15:33:16 -05:00
assets Animated (#3231) 2026-02-19 11:56:51 -05:00
clients Normalize repo references to PrefectHQ/fastmcp casing (#3218) 2026-02-18 14:51:18 -05:00
community Normalize repo references to PrefectHQ/fastmcp casing (#3218) 2026-02-18 14:51:18 -05:00
css fix: remove position override from docs banner CSS (#3282) 2026-02-23 11:26:48 -05:00
deployment Pin httpx < 1.0 and simplify beta install docs (#2975) 2026-01-21 21:08:46 -05:00
development Normalize repo references to PrefectHQ/fastmcp casing (#3218) 2026-02-18 14:51:18 -05:00
getting-started Document mounted server state store isolation in upgrade guide (#3236) 2026-02-19 12:05:50 -05:00
integrations Add JWT audience validation and RFC 8707 warnings to auth providers (#3204) 2026-02-17 18:16:05 -05:00
patterns Normalize repo references to PrefectHQ/fastmcp casing (#3218) 2026-02-18 14:51:18 -05:00
public/schemas/fastmcp.json chore: Update fastmcp.json schema (#1955) 2025-09-29 20:12:24 -04:00
python-sdk chore: Update SDK documentation (#3273) 2026-02-26 11:19:53 -05:00
servers feat: Search transforms for tool discovery (#3154) 2026-02-26 22:42:38 -05:00
snippets Reorganize docs around provider architecture (#2723) 2025-12-25 09:00:20 -05:00
tutorials Remove trailing slashes from MCP endpoint URLs in docs (#2277) 2025-10-27 10:36:47 -04:00
v2 Remove stale add_resource() key parameter from docs (#3309) 2026-02-26 16:10:02 -05:00
.ccignore Add comprehensive OAuth 2.1 authentication system with WorkOS integration (#1327) 2025-08-01 17:06:55 -04:00
changelog.mdx Add v3.0.2 release notes (#3276) 2026-02-22 11:41:37 -05:00
docs.json feat: Search transforms for tool discovery (#3154) 2026-02-26 22:42:38 -05:00
updates.mdx Add v3.0.2 release notes (#3276) 2026-02-22 11:41:37 -05:00
v2-banner.js Update docs for 3.0 GA release (#3216) 2026-02-18 14:29:28 -05:00