@@ -11,53 +11,53 @@ import (
1111type MCPMethod string
1212
1313const (
14- // Initiates connection and negotiates protocol capabilities.
14+ // MethodInitialize initiates connection and negotiates protocol capabilities.
1515 // https://modelcontextprotocol.io/specification/2024-11-05/basic/lifecycle/#initialization
1616 MethodInitialize MCPMethod = "initialize"
1717
18- // Verifies connection liveness between client and server.
18+ // MethodPing verifies connection liveness between client and server.
1919 // https://modelcontextprotocol.io/specification/2024-11-05/basic/utilities/ping/
2020 MethodPing MCPMethod = "ping"
2121
22- // Lists all available server resources.
22+ // MethodResourcesList lists all available server resources.
2323 // https://modelcontextprotocol.io/specification/2024-11-05/server/resources/
2424 MethodResourcesList MCPMethod = "resources/list"
2525
26- // Provides URI templates for constructing resource URIs.
26+ // MethodResourcesTemplatesList provides URI templates for constructing resource URIs.
2727 // https://modelcontextprotocol.io/specification/2024-11-05/server/resources/
2828 MethodResourcesTemplatesList MCPMethod = "resources/templates/list"
2929
30- // Retrieves content of a specific resource by URI.
30+ // MethodResourcesRead retrieves content of a specific resource by URI.
3131 // https://modelcontextprotocol.io/specification/2024-11-05/server/resources/
3232 MethodResourcesRead MCPMethod = "resources/read"
3333
34- // Lists all available prompt templates.
34+ // MethodPromptsList lists all available prompt templates.
3535 // https://modelcontextprotocol.io/specification/2024-11-05/server/prompts/
3636 MethodPromptsList MCPMethod = "prompts/list"
3737
38- // Retrieves a specific prompt template with filled parameters.
38+ // MethodPromptsGet retrieves a specific prompt template with filled parameters.
3939 // https://modelcontextprotocol.io/specification/2024-11-05/server/prompts/
4040 MethodPromptsGet MCPMethod = "prompts/get"
4141
42- // Lists all available executable tools.
42+ // MethodToolsList lists all available executable tools.
4343 // https://modelcontextprotocol.io/specification/2024-11-05/server/tools/
4444 MethodToolsList MCPMethod = "tools/list"
4545
46- // Invokes a specific tool with provided parameters.
46+ // MethodToolsCall invokes a specific tool with provided parameters.
4747 // https://modelcontextprotocol.io/specification/2024-11-05/server/tools/
4848 MethodToolsCall MCPMethod = "tools/call"
4949
50- // Notifies when the list of available resources changes.
50+ // MethodNotificationResourcesListChanged notifies when the list of available resources changes.
5151 // https://modelcontextprotocol.io/specification/2025-03-26/server/resources#list-changed-notification
5252 MethodNotificationResourcesListChanged = "notifications/resources/list_changed"
5353
5454 MethodNotificationResourceUpdated = "notifications/resources/updated"
5555
56- // Notifies when the list of available prompt templates changes.
56+ // MethodNotificationPromptsListChanged notifies when the list of available prompt templates changes.
5757 // https://modelcontextprotocol.io/specification/2025-03-26/server/prompts#list-changed-notification
5858 MethodNotificationPromptsListChanged = "notifications/prompts/list_changed"
5959
60- // Notifies when the list of available tools changes.
60+ // MethodNotificationToolsListChanged notifies when the list of available tools changes.
6161 // https://spec.modelcontextprotocol.io/specification/2024-11-05/server/tools/list_changed/
6262 MethodNotificationToolsListChanged = "notifications/tools/list_changed"
6363)
@@ -132,7 +132,7 @@ type NotificationParams struct {
132132}
133133
134134// MarshalJSON implements custom JSON marshaling
135- func (p NotificationParams ) MarshalJSON () ([]byte , error ) {
135+ func (p * NotificationParams ) MarshalJSON () ([]byte , error ) {
136136 // Create a map to hold all fields
137137 m := make (map [string ]interface {})
138138
@@ -863,7 +863,6 @@ type RootsListChangedNotification struct {
863863 Notification
864864}
865865
866- /* Client messages */
867866// ClientRequest represents any request that can be sent from client to server.
868867type ClientRequest interface {}
869868
@@ -873,7 +872,6 @@ type ClientNotification interface{}
873872// ClientResult represents any result that can be sent from client to server.
874873type ClientResult interface {}
875874
876- /* Server messages */
877875// ServerRequest represents any request that can be sent from server to client.
878876type ServerRequest interface {}
879877
0 commit comments