Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

fix: correct documentation link in deprecation warning (#1828)

William Easton09ae8f5cfdc6
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
)