MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / InitializeParams

Struct InitializeParams

mcp/protocol.go:673–684  ·  view source on GitHub ↗

InitializeParams is sent by the client to initialize the session.

Source from the content-addressed store, hash-verified

671
672// InitializeParams is sent by the client to initialize the session.
673type 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
686func (p *InitializeParams) toV2() *initializeParamsV2 {
687 return &initializeParamsV2{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected