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, )