From 09ae8f5cfdc62e6ac0bb7e6cc8ade621e9ebbf3e Mon Sep 17 00:00:00 2001 From: William Easton Date: Mon, 15 Sep 2025 10:09:32 -0500 Subject: [PATCH] fix: correct documentation link in deprecation warning (#1828) Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com> Co-authored-by: Jeremiah Lowin --- src/fastmcp/server/context.py | 2 +- tests/server/test_context.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fastmcp/server/context.py b/src/fastmcp/server/context.py index 974ca4be4..e5e98cce3 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/servers/context#http-requests for more details.", DeprecationWarning, stacklevel=2, ) diff --git a/tests/server/test_context.py b/tests/server/test_context.py index 9c00ac0e2..97c2c51b7 100644 --- a/tests/server/test_context.py +++ b/tests/server/test_context.py @@ -56,7 +56,7 @@ class TestContextDeprecations: "Use get_http_request() from fastmcp.server.dependencies instead" in str(warning.message) ) - assert "https://gofastmcp.com/patterns/http-requests" in str( + assert "https://gofastmcp.com/servers/context#http-requests" in str( warning.message )