From 173e0ee3b8a5934491b6c0abb816ba34ad898551 Mon Sep 17 00:00:00 2001 From: Takayuki SHIMIZUKAWA Date: Tue, 13 May 2025 20:12:26 +0900 Subject: [PATCH] fix typo: server has get_context attribute instead of request_context. (#446) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 863e058..034b8d4 100644 --- a/README.md +++ b/README.md @@ -619,7 +619,7 @@ server = Server("example-server", lifespan=server_lifespan) # Access lifespan context in handlers @server.call_tool() async def query_db(name: str, arguments: dict) -> list: - ctx = server.request_context + ctx = server.get_context() db = ctx.lifespan_context["db"] return await db.query(arguments["query"]) ```