From 05eefe3330a54193719ffce2f2f8073868fa5861 Mon Sep 17 00:00:00 2001 From: SrzStephen Date: Sat, 7 Feb 2026 21:19:15 +0800 Subject: [PATCH] Updated deprecation URL for V2 (#3109) * Updated deprecation URL for V2 For V3 this should be https://gofastmcp.com/servers/dependency-injection#using-depends For V2 this should be https://gofastmcp.com/v2/servers/context#using-depends current url fails for both v2 and v3 documentation https://gofastmcp.com/servers/dependencies https://gofastmcp.com/v2/servers/dependencies * Updated url to point to v2 docs as outlined in review https://github.com/jlowin/fastmcp/pull/3109#pullrequestreview-3766965732 --- src/fastmcp/tools/tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastmcp/tools/tool.py b/src/fastmcp/tools/tool.py index e40a7115e..cf2042eb9 100644 --- a/src/fastmcp/tools/tool.py +++ b/src/fastmcp/tools/tool.py @@ -323,7 +323,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/v2/servers/context#using-depends for examples.", DeprecationWarning, stacklevel=2, )