|
345 | 345 | ],
|
346 | 346 | "type": "object"
|
347 | 347 | },
|
| 348 | + "Cursor": { |
| 349 | + "description": "An opaque token used to represent a cursor for pagination.", |
| 350 | + "type": "string" |
| 351 | + }, |
348 | 352 | "EmptyResult": {
|
349 | 353 | "$ref": "#/definitions/Result"
|
350 | 354 | },
|
|
678 | 682 | "type": "string"
|
679 | 683 | },
|
680 | 684 | "params": {
|
681 |
| - "additionalProperties": {}, |
682 | 685 | "properties": {
|
683 |
| - "_meta": { |
684 |
| - "properties": { |
685 |
| - "progressToken": { |
686 |
| - "$ref": "#/definitions/ProgressToken", |
687 |
| - "description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications." |
688 |
| - } |
689 |
| - }, |
690 |
| - "type": "object" |
| 686 | + "cursor": { |
| 687 | + "description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.", |
| 688 | + "type": "string" |
691 | 689 | }
|
692 | 690 | },
|
693 | 691 | "type": "object"
|
|
706 | 704 | "description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.",
|
707 | 705 | "type": "object"
|
708 | 706 | },
|
| 707 | + "nextCursor": { |
| 708 | + "description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.", |
| 709 | + "type": "string" |
| 710 | + }, |
709 | 711 | "prompts": {
|
710 | 712 | "items": {
|
711 | 713 | "$ref": "#/definitions/Prompt"
|
|
718 | 720 | ],
|
719 | 721 | "type": "object"
|
720 | 722 | },
|
721 |
| - "ListResourcesRequest": { |
722 |
| - "description": "Sent from the client to request a list of resources the server has.", |
| 723 | + "ListResourceTemplatesRequest": { |
| 724 | + "description": "Sent from the client to request a list of resource templates the server has.", |
723 | 725 | "properties": {
|
724 | 726 | "method": {
|
725 |
| - "const": "resources/list", |
| 727 | + "const": "resources/templates/list", |
726 | 728 | "type": "string"
|
727 | 729 | },
|
728 | 730 | "params": {
|
729 |
| - "additionalProperties": {}, |
730 | 731 | "properties": {
|
731 |
| - "_meta": { |
732 |
| - "properties": { |
733 |
| - "progressToken": { |
734 |
| - "$ref": "#/definitions/ProgressToken", |
735 |
| - "description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications." |
736 |
| - } |
737 |
| - }, |
738 |
| - "type": "object" |
| 732 | + "cursor": { |
| 733 | + "description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.", |
| 734 | + "type": "string" |
739 | 735 | }
|
740 | 736 | },
|
741 | 737 | "type": "object"
|
|
746 | 742 | ],
|
747 | 743 | "type": "object"
|
748 | 744 | },
|
749 |
| - "ListResourcesResult": { |
750 |
| - "description": "The server's response to a resources/list request from the client.", |
| 745 | + "ListResourceTemplatesResult": { |
| 746 | + "description": "The server's response to a resources/templates/list request from the client.", |
751 | 747 | "properties": {
|
752 | 748 | "_meta": {
|
753 | 749 | "additionalProperties": {},
|
754 | 750 | "description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.",
|
755 | 751 | "type": "object"
|
756 | 752 | },
|
| 753 | + "nextCursor": { |
| 754 | + "description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.", |
| 755 | + "type": "string" |
| 756 | + }, |
757 | 757 | "resourceTemplates": {
|
758 | 758 | "items": {
|
759 | 759 | "$ref": "#/definitions/ResourceTemplate"
|
760 | 760 | },
|
761 | 761 | "type": "array"
|
| 762 | + } |
| 763 | + }, |
| 764 | + "required": [ |
| 765 | + "resourceTemplates" |
| 766 | + ], |
| 767 | + "type": "object" |
| 768 | + }, |
| 769 | + "ListResourcesRequest": { |
| 770 | + "description": "Sent from the client to request a list of resources the server has.", |
| 771 | + "properties": { |
| 772 | + "method": { |
| 773 | + "const": "resources/list", |
| 774 | + "type": "string" |
| 775 | + }, |
| 776 | + "params": { |
| 777 | + "properties": { |
| 778 | + "cursor": { |
| 779 | + "description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.", |
| 780 | + "type": "string" |
| 781 | + } |
| 782 | + }, |
| 783 | + "type": "object" |
| 784 | + } |
| 785 | + }, |
| 786 | + "required": [ |
| 787 | + "method" |
| 788 | + ], |
| 789 | + "type": "object" |
| 790 | + }, |
| 791 | + "ListResourcesResult": { |
| 792 | + "description": "The server's response to a resources/list request from the client.", |
| 793 | + "properties": { |
| 794 | + "_meta": { |
| 795 | + "additionalProperties": {}, |
| 796 | + "description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.", |
| 797 | + "type": "object" |
| 798 | + }, |
| 799 | + "nextCursor": { |
| 800 | + "description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.", |
| 801 | + "type": "string" |
762 | 802 | },
|
763 | 803 | "resources": {
|
764 | 804 | "items": {
|
|
767 | 807 | "type": "array"
|
768 | 808 | }
|
769 | 809 | },
|
| 810 | + "required": [ |
| 811 | + "resources" |
| 812 | + ], |
770 | 813 | "type": "object"
|
771 | 814 | },
|
772 | 815 | "ListToolsRequest": {
|
|
777 | 820 | "type": "string"
|
778 | 821 | },
|
779 | 822 | "params": {
|
780 |
| - "additionalProperties": {}, |
781 | 823 | "properties": {
|
782 |
| - "_meta": { |
783 |
| - "properties": { |
784 |
| - "progressToken": { |
785 |
| - "$ref": "#/definitions/ProgressToken", |
786 |
| - "description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications." |
787 |
| - } |
788 |
| - }, |
789 |
| - "type": "object" |
| 824 | + "cursor": { |
| 825 | + "description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.", |
| 826 | + "type": "string" |
790 | 827 | }
|
791 | 828 | },
|
792 | 829 | "type": "object"
|
|
805 | 842 | "description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.",
|
806 | 843 | "type": "object"
|
807 | 844 | },
|
| 845 | + "nextCursor": { |
| 846 | + "description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.", |
| 847 | + "type": "string" |
| 848 | + }, |
808 | 849 | "tools": {
|
809 | 850 | "items": {
|
810 | 851 | "$ref": "#/definitions/Tool"
|
|
883 | 924 | ],
|
884 | 925 | "type": "object"
|
885 | 926 | },
|
| 927 | + "PaginatedRequest": { |
| 928 | + "properties": { |
| 929 | + "method": { |
| 930 | + "type": "string" |
| 931 | + }, |
| 932 | + "params": { |
| 933 | + "properties": { |
| 934 | + "cursor": { |
| 935 | + "description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.", |
| 936 | + "type": "string" |
| 937 | + } |
| 938 | + }, |
| 939 | + "type": "object" |
| 940 | + } |
| 941 | + }, |
| 942 | + "required": [ |
| 943 | + "method" |
| 944 | + ], |
| 945 | + "type": "object" |
| 946 | + }, |
| 947 | + "PaginatedResult": { |
| 948 | + "properties": { |
| 949 | + "_meta": { |
| 950 | + "additionalProperties": {}, |
| 951 | + "description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.", |
| 952 | + "type": "object" |
| 953 | + }, |
| 954 | + "nextCursor": { |
| 955 | + "description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.", |
| 956 | + "type": "string" |
| 957 | + } |
| 958 | + }, |
| 959 | + "type": "object" |
| 960 | + }, |
886 | 961 | "PingRequest": {
|
887 | 962 | "description": "A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.",
|
888 | 963 | "properties": {
|
|
0 commit comments