diff --git a/src/fastmcp/server/context.py b/src/fastmcp/server/context.py index 974ca4be4..16053f1b1 100644 --- a/src/fastmcp/server/context.py +++ b/src/fastmcp/server/context.py @@ -573,7 +573,7 @@ class Context: warnings.warn( "Context.get_http_request() is deprecated and will be removed in a future version. " "Use get_http_request() from fastmcp.server.dependencies instead. " - "See https://gofastmcp.com/patterns/http-requests for more details.", + "See https://gofastmcp.com/python-sdk/fastmcp-server-dependencies for more details.", DeprecationWarning, stacklevel=2, ) diff --git a/tests/server/test_context.py b/tests/server/test_context.py index 9c00ac0e2..4022c09f9 100644 --- a/tests/server/test_context.py +++ b/tests/server/test_context.py @@ -56,8 +56,9 @@ class TestContextDeprecations: "Use get_http_request() from fastmcp.server.dependencies instead" in str(warning.message) ) - assert "https://gofastmcp.com/patterns/http-requests" in str( - warning.message + assert ( + "https://gofastmcp.com/python-sdk/fastmcp-server-dependencies" + in str(warning.message) )