Skip to content

Commit 28c7209

Browse files
committed
fix: collapse single-arg Server() to one line in migration example
1 parent bc9aaef commit 28c7209

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/migration.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,7 @@ from mcp.types import ProgressNotificationParams
536536
async def handle_progress(ctx: ServerRequestContext, params: ProgressNotificationParams) -> None:
537537
print(f"Progress: {params.progress}/{params.total}")
538538

539-
server = Server(
540-
"my-server",
541-
on_progress=handle_progress,
542-
)
539+
server = Server("my-server", on_progress=handle_progress)
543540
```
544541

545542
### Lowlevel `Server`: `request_context` property removed

0 commit comments

Comments
 (0)