Skip to content

Commit 87ed4b0

Browse files
maxisbeyKludex
andauthored
reword docs/migration.md to be injected instead of constructed
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
1 parent 116fb4c commit 87ed4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ app = Starlette(routes=[Mount("/", app=mcp.streamable_http_app(json_response=Tru
290290

291291
### `MCPServer.get_context()` removed
292292

293-
`MCPServer.get_context()` has been removed. Context is now constructed by the framework and passed explicitly — there is no ambient ContextVar to read from.
293+
`MCPServer.get_context()` has been removed. Context is now injected by the framework and passed explicitly — there is no ambient ContextVar to read from.
294294

295295
**If you were calling `get_context()` from inside a tool/resource/prompt:** use the `ctx: Context` parameter injection instead.
296296

0 commit comments

Comments
 (0)