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
- Supports notifications for list changes (tools, prompts, resources)
37
38
38
39
### Supported Methods
39
40
-`initialize` - Initializes the protocol and returns server capabilities
@@ -46,13 +47,46 @@ It implements the Model Context Protocol specification, handling model context r
46
47
-`resources/read` - Retrieves a specific resource by name
47
48
-`resources/templates/list` - Lists all registered resource templates and their schemas
48
49
50
+
### Notifications
51
+
52
+
The server supports sending notifications to clients when lists of tools, prompts, or resources change. This enables real-time updates without polling.
53
+
54
+
#### Notification Methods
55
+
56
+
The server provides three notification methods:
57
+
-`notify_tools_list_changed()` - Send a notification when the tools list changes
58
+
-`notify_prompts_list_changed()` - Send a notification when the prompts list changes
59
+
-`notify_resources_list_changed()` - Send a notification when the resources list changes
60
+
61
+
#### Notification Format
62
+
63
+
Notifications follow the JSON-RPC 2.0 specification and use these method names:
64
+
-`notifications/tools/list_changed`
65
+
-`notifications/prompts/list_changed`
66
+
-`notifications/resources/list_changed`
67
+
68
+
#### Transport Support
69
+
70
+
-**HTTP Transport**: Notifications are sent as Server-Sent Events (SSE) to all connected sessions
71
+
-**Stdio Transport**: Notifications are sent as JSON-RPC 2.0 messages to stdout
0 commit comments