InitializeParams is sent by the client to initialize the session.
| 671 | |
| 672 | // InitializeParams is sent by the client to initialize the session. |
| 673 | type InitializeParams struct { |
| 674 | // This property is reserved by the protocol to allow clients and servers to |
| 675 | // attach additional metadata to their responses. |
| 676 | Meta `json:"_meta,omitempty"` |
| 677 | // Capabilities describes the client's capabilities. |
| 678 | Capabilities *ClientCapabilities `json:"capabilities"` |
| 679 | // ClientInfo provides information about the client. |
| 680 | ClientInfo *Implementation `json:"clientInfo"` |
| 681 | // ProtocolVersion is the latest version of the Model Context Protocol that |
| 682 | // the client supports. |
| 683 | ProtocolVersion string `json:"protocolVersion"` |
| 684 | } |
| 685 | |
| 686 | func (p *InitializeParams) toV2() *initializeParamsV2 { |
| 687 | return &initializeParamsV2{ |
nothing calls this directly
no outgoing calls
no test coverage detected