fastmcp/docs/python-sdk/fastmcp-server-transforms-search-regex.mdx
marvin-context-protocol[bot] c3537ef580
chore: Update SDK documentation (#5767)
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
2026-11-02 00:05:17 +00:00

24 lines
735 B
Text

---
title: regex
sidebarTitle: regex
---
# `fastmcp.server.transforms.search.regex`
Regex-based search transform.
## Classes
### `RegexSearchTransform` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/fastmcp_slim/fastmcp/server/transforms/search/regex.py#L20" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
Search transform using regex pattern matching.
Tools are matched against their name, description, and parameter
information using Pydantic's Rust regex engine with case-insensitive
matching. Lookarounds and backreferences are not supported.
A search stops after about a second and returns the matches found so
far, so a costly pattern cannot hold the worker for long.