Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Fix kwarg

Jeremiah Lowin5f0193b23796
diff --git a/examples/serializer.py b/examples/serializer.py
index a791751d0..72e60843d 100644
--- a/examples/serializer.py
+++ b/examples/serializer.py
@@ -11,7 +11,7 @@ def custom_dict_serializer(data: Any) -> str:
return yaml.dump(data, width=100, sort_keys=False)
-server = FastMCP(name="CustomSerializerExample", serializer=custom_dict_serializer)
+server = FastMCP(name="CustomSerializerExample", tool_serializer=custom_dict_serializer)
@server.tool()