@@ -392,10 +392,10 @@ type CancelledNotificationParams struct {
392
392
// connects, asking it to begin initialization.
393
393
type InitializeRequest struct {
394
394
Request
395
- Params InitializeRequestParams `json:"params"`
395
+ Params InitializeParams `json:"params"`
396
396
}
397
397
398
- type InitializeRequestParams struct {
398
+ type InitializeParams struct {
399
399
// The latest version of the Model Context Protocol that the client supports.
400
400
// The client MAY decide to support older versions as well.
401
401
ProtocolVersion string `json:"protocolVersion"`
@@ -512,10 +512,10 @@ type ProgressNotificationParams struct {
512
512
513
513
type PaginatedRequest struct {
514
514
Request
515
- Params PaginatedRequestParams `json:"params,omitempty"`
515
+ Params PaginatedParams `json:"params,omitempty"`
516
516
}
517
517
518
- type PaginatedRequestParams struct {
518
+ type PaginatedParams struct {
519
519
// An opaque token representing the current pagination position.
520
520
// If provided, the server should return results starting after this cursor.
521
521
Cursor Cursor `json:"cursor,omitempty"`
@@ -561,10 +561,10 @@ type ListResourceTemplatesResult struct {
561
561
// specific resource URI.
562
562
type ReadResourceRequest struct {
563
563
Request
564
- Params ReadResourceRequestParams `json:"params"`
564
+ Params ReadResourceParams `json:"params"`
565
565
}
566
566
567
- type ReadResourceRequestParams struct {
567
+ type ReadResourceParams struct {
568
568
// The URI of the resource to read. The URI can use any protocol; it is up
569
569
// to the server how to interpret it.
570
570
URI string `json:"uri"`
@@ -591,10 +591,10 @@ type ResourceListChangedNotification struct {
591
591
// notifications from the server whenever a particular resource changes.
592
592
type SubscribeRequest struct {
593
593
Request
594
- Params SubscribeRequestParams `json:"params"`
594
+ Params SubscribeParams `json:"params"`
595
595
}
596
596
597
- type SubscribeRequestParams struct {
597
+ type SubscribeParams struct {
598
598
// The URI of the resource to subscribe to. The URI can use any protocol; it
599
599
// is up to the server how to interpret it.
600
600
URI string `json:"uri"`
@@ -605,10 +605,10 @@ type SubscribeRequestParams struct {
605
605
// resources/subscribe request.
606
606
type UnsubscribeRequest struct {
607
607
Request
608
- Params UnsubscribeRequestParams `json:"params"`
608
+ Params UnsubscribeParams `json:"params"`
609
609
}
610
610
611
- type UnsubscribeRequestParams struct {
611
+ type UnsubscribeParams struct {
612
612
// The URI of the resource to unsubscribe from.
613
613
URI string `json:"uri"`
614
614
}
@@ -710,10 +710,10 @@ func (BlobResourceContents) isResourceContents() {}
710
710
// adjust logging.
711
711
type SetLevelRequest struct {
712
712
Request
713
- Params SetLevelRequestParams `json:"params"`
713
+ Params SetLevelParams `json:"params"`
714
714
}
715
715
716
- type SetLevelRequestParams struct {
716
+ type SetLevelParams struct {
717
717
// The level of logging that the client wants to receive from the server.
718
718
// The server should send all logs at this level and higher (i.e., more severe) to
719
719
// the client as notifications/logging/message.
@@ -763,10 +763,10 @@ const (
763
763
// the request (human in the loop) and decide whether to approve it.
764
764
type CreateMessageRequest struct {
765
765
Request
766
- CreateMessageRequestParams `json:"params"`
766
+ CreateMessageParams `json:"params"`
767
767
}
768
768
769
- type CreateMessageRequestParams struct {
769
+ type CreateMessageParams struct {
770
770
Messages []SamplingMessage `json:"messages"`
771
771
ModelPreferences * ModelPreferences `json:"modelPreferences,omitempty"`
772
772
SystemPrompt string `json:"systemPrompt,omitempty"`
@@ -932,10 +932,10 @@ type ModelHint struct {
932
932
// CompleteRequest is a request from the client to the server, to ask for completion options.
933
933
type CompleteRequest struct {
934
934
Request
935
- Params CompleteRequestParams `json:"params"`
935
+ Params CompleteParams `json:"params"`
936
936
}
937
937
938
- type CompleteRequestParams struct {
938
+ type CompleteParams struct {
939
939
Ref any `json:"ref"` // Can be PromptReference or ResourceReference
940
940
Argument struct {
941
941
// The name of the argument
0 commit comments