From b90da481eb10dc0ea64c24c7daf3fbe11823bcdf Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Thu, 19 Dec 2024 20:46:27 +0000 Subject: [PATCH] docs: Update README to recommend mcp.server.lowlevel and deprecate mcp.server --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d9ba53..2b3561c 100644 --- a/README.md +++ b/README.md @@ -97,10 +97,10 @@ FastMCP was originally developed by Jeremiah Lowin at [jlowin/fastmcp](https://g ### Low-Level Implementation -For more control, you can use the low-level MCP implementation directly. This gives you full access to the protocol and allows you to customize every aspect of your server: +For more control, you can use the low-level MCP implementation directly. This gives you full access to the protocol and allows you to customize every aspect of your server. We recommend using `mcp.server.lowlevel` for all low-level server implementations, as the direct `mcp.server` imports will be deprecated and removed in SDK 2.0.0. ```python -from mcp.server import Server, NotificationOptions +from mcp.server.lowlevel import Server, NotificationOptions from mcp.server.models import InitializationOptions import mcp.server.stdio import mcp.types as types