From adb8a50a8eb23b1b1eba995b19ab46586808c2a4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Feb 2026 13:23:05 +0000 Subject: [PATCH] Fix broken /servers/dependencies deprecation URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with Claude Code https://claude.ai/code/session_01Fq4Ruzsg2oBBbjNCqbvQxp --- docs/docs.json | 8 ++++++++ src/fastmcp/tools/function_tool.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/docs.json b/docs/docs.json index 2864855fe..8a05a154b 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -906,6 +906,14 @@ { "destination": "/servers/transforms/transforms", "source": "/patterns/tool-transformation" + }, + { + "destination": "/servers/dependency-injection", + "source": "/servers/dependencies" + }, + { + "destination": "/v2/servers/context#using-depends", + "source": "/v2/servers/dependencies" } ], "search": { diff --git a/src/fastmcp/tools/function_tool.py b/src/fastmcp/tools/function_tool.py index 38d3116c6..7ef6df398 100644 --- a/src/fastmcp/tools/function_tool.py +++ b/src/fastmcp/tools/function_tool.py @@ -193,7 +193,7 @@ class FunctionTool(Tool): warnings.warn( "The `exclude_args` parameter is deprecated as of FastMCP 2.14. " "Use dependency injection with `Depends()` instead for better lifecycle management. " - "See https://gofastmcp.com/servers/dependencies for examples.", + "See https://gofastmcp.com/servers/dependency-injection#using-depends for examples.", DeprecationWarning, stacklevel=2, )