You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+62
Original file line number
Diff line number
Diff line change
@@ -380,6 +380,68 @@ server.tool(
380
380
381
381
## Advanced Usage
382
382
383
+
### Dynamic Servers
384
+
385
+
If you want to offer an initial set of tools/prompts/resources, but later add additional ones based on user action or external state change, you can add/update/remove them _after_ the Server is connected. This will automatically emit the corresponding `listChanged` notificaions:
0 commit comments