π The fast, Pythonic way to build MCP servers and clients.
Document transforms kwarg in server constructor reference
Jeremiah Lowin18d5902367e5
diff --git a/docs/servers/server.mdx b/docs/servers/server.mdxindex b28985df9..ed84b5e48 100644--- a/docs/servers/server.mdx+++ b/docs/servers/server.mdx@@ -67,7 +67,11 @@ The `FastMCP` constructor accepts several configuration options. The most commonA list of tools (or functions to convert to tools) to add to the server. In some cases, providing tools programmatically may be more convenient than using the `@mcp.tool` decorator</ParamField>+<ParamField body="transforms" type="list[Transform] | None">+ <VersionBadge version="3.1.0" />+ Server-level [transforms](/servers/transforms/transforms) to apply to all components. Transforms modify how tools, resources, and prompts are presented to clients β for example, [search transforms](/servers/transforms/tool-search) replace large catalogs with on-demand discovery, and [CodeMode](/servers/transforms/code-mode) lets LLMs write scripts that chain tool calls in a sandbox+</ParamField><ParamField body="on_duplicate" type='Literal["warn", "error", "replace", "ignore"]' default="warn">How to handle duplicate component registrations