From 5a153b792106506bfad654095f6b66ad49026dae Mon Sep 17 00:00:00 2001 From: Takayuki SHIMIZUKAWA Date: Mon, 7 Apr 2025 20:31:04 +0900 Subject: [PATCH] Update README.md fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05d607254..73249c924 100644 --- a/README.md +++ b/README.md @@ -480,7 +480,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"]) ```