|
1 | 1 | /// ----------------------------------------------------------------------------
|
2 |
| -/// This file is auto-generated by mcp-schema-gen v0.1.11. |
| 2 | +/// This file is auto-generated by mcp-schema-gen v0.1.15. |
3 | 3 | /// WARNING:
|
4 | 4 | /// It is not recommended to modify this file directly. You are free to
|
5 | 5 | /// modify or extend the implementations as needed, but please do so at your own risk.
|
6 | 6 | ///
|
7 | 7 | /// Generated from : <https://github.com/modelcontextprotocol/specification.git>
|
8 | 8 | /// Hash : eb4abdf2bb91e0d5afd94510741eadd416982350
|
9 |
| -/// Generated at : 2025-03-20 17:51:47 |
| 9 | +/// Generated at : 2025-03-22 09:38:48 |
10 | 10 | /// ----------------------------------------------------------------------------
|
11 | 11 | ///
|
12 | 12 | /// MCP Protocol Version
|
@@ -184,6 +184,9 @@ impl CallToolRequest {
|
184 | 184 | pub fn method(&self) -> &::std::string::String {
|
185 | 185 | &self.method
|
186 | 186 | }
|
| 187 | + pub fn method_name() -> ::std::string::String { |
| 188 | + "tools/call".to_string() |
| 189 | + } |
187 | 190 | }
|
188 | 191 | ///CallToolRequestParams
|
189 | 192 | ///
|
@@ -369,6 +372,9 @@ impl CancelledNotification {
|
369 | 372 | pub fn method(&self) -> &::std::string::String {
|
370 | 373 | &self.method
|
371 | 374 | }
|
| 375 | + pub fn method_name() -> ::std::string::String { |
| 376 | + "notifications/cancelled".to_string() |
| 377 | + } |
372 | 378 | }
|
373 | 379 | ///CancelledNotificationParams
|
374 | 380 | ///
|
@@ -773,6 +779,9 @@ impl CompleteRequest {
|
773 | 779 | pub fn method(&self) -> &::std::string::String {
|
774 | 780 | &self.method
|
775 | 781 | }
|
| 782 | + pub fn method_name() -> ::std::string::String { |
| 783 | + "completion/complete".to_string() |
| 784 | + } |
776 | 785 | }
|
777 | 786 | ///CompleteRequestParams
|
778 | 787 | ///
|
@@ -1067,6 +1076,9 @@ impl CreateMessageRequest {
|
1067 | 1076 | pub fn method(&self) -> &::std::string::String {
|
1068 | 1077 | &self.method
|
1069 | 1078 | }
|
| 1079 | + pub fn method_name() -> ::std::string::String { |
| 1080 | + "sampling/createMessage".to_string() |
| 1081 | + } |
1070 | 1082 | }
|
1071 | 1083 | ///CreateMessageRequestParams
|
1072 | 1084 | ///
|
@@ -1360,6 +1372,9 @@ impl EmbeddedResource {
|
1360 | 1372 | pub fn type_(&self) -> &::std::string::String {
|
1361 | 1373 | &self.type_
|
1362 | 1374 | }
|
| 1375 | + pub fn type_name() -> ::std::string::String { |
| 1376 | + "resource".to_string() |
| 1377 | + } |
1363 | 1378 | }
|
1364 | 1379 | ///EmbeddedResourceAnnotations
|
1365 | 1380 | ///
|
@@ -1496,6 +1511,9 @@ impl GetPromptRequest {
|
1496 | 1511 | pub fn method(&self) -> &::std::string::String {
|
1497 | 1512 | &self.method
|
1498 | 1513 | }
|
| 1514 | + pub fn method_name() -> ::std::string::String { |
| 1515 | + "prompts/get".to_string() |
| 1516 | + } |
1499 | 1517 | }
|
1500 | 1518 | ///GetPromptRequestParams
|
1501 | 1519 | ///
|
@@ -1649,6 +1667,9 @@ impl ImageContent {
|
1649 | 1667 | pub fn type_(&self) -> &::std::string::String {
|
1650 | 1668 | &self.type_
|
1651 | 1669 | }
|
| 1670 | + pub fn type_name() -> ::std::string::String { |
| 1671 | + "image".to_string() |
| 1672 | + } |
1652 | 1673 | }
|
1653 | 1674 | ///ImageContentAnnotations
|
1654 | 1675 | ///
|
@@ -1768,6 +1789,9 @@ impl InitializeRequest {
|
1768 | 1789 | pub fn method(&self) -> &::std::string::String {
|
1769 | 1790 | &self.method
|
1770 | 1791 | }
|
| 1792 | + pub fn method_name() -> ::std::string::String { |
| 1793 | + "initialize".to_string() |
| 1794 | + } |
1771 | 1795 | }
|
1772 | 1796 | ///InitializeRequestParams
|
1773 | 1797 | ///
|
@@ -1905,6 +1929,9 @@ impl InitializedNotification {
|
1905 | 1929 | pub fn method(&self) -> &::std::string::String {
|
1906 | 1930 | &self.method
|
1907 | 1931 | }
|
| 1932 | + pub fn method_name() -> ::std::string::String { |
| 1933 | + "notifications/initialized".to_string() |
| 1934 | + } |
1908 | 1935 | }
|
1909 | 1936 | ///InitializedNotificationParams
|
1910 | 1937 | ///
|
@@ -2369,6 +2396,9 @@ impl ListPromptsRequest {
|
2369 | 2396 | pub fn method(&self) -> &::std::string::String {
|
2370 | 2397 | &self.method
|
2371 | 2398 | }
|
| 2399 | + pub fn method_name() -> ::std::string::String { |
| 2400 | + "prompts/list".to_string() |
| 2401 | + } |
2372 | 2402 | }
|
2373 | 2403 | ///ListPromptsRequestParams
|
2374 | 2404 | ///
|
@@ -2480,6 +2510,9 @@ impl ListResourceTemplatesRequest {
|
2480 | 2510 | pub fn method(&self) -> &::std::string::String {
|
2481 | 2511 | &self.method
|
2482 | 2512 | }
|
| 2513 | + pub fn method_name() -> ::std::string::String { |
| 2514 | + "resources/templates/list".to_string() |
| 2515 | + } |
2483 | 2516 | }
|
2484 | 2517 | ///ListResourceTemplatesRequestParams
|
2485 | 2518 | ///
|
@@ -2592,6 +2625,9 @@ impl ListResourcesRequest {
|
2592 | 2625 | pub fn method(&self) -> &::std::string::String {
|
2593 | 2626 | &self.method
|
2594 | 2627 | }
|
| 2628 | + pub fn method_name() -> ::std::string::String { |
| 2629 | + "resources/list".to_string() |
| 2630 | + } |
2595 | 2631 | }
|
2596 | 2632 | ///ListResourcesRequestParams
|
2597 | 2633 | ///
|
@@ -2714,6 +2750,9 @@ impl ListRootsRequest {
|
2714 | 2750 | pub fn method(&self) -> &::std::string::String {
|
2715 | 2751 | &self.method
|
2716 | 2752 | }
|
| 2753 | + pub fn method_name() -> ::std::string::String { |
| 2754 | + "roots/list".to_string() |
| 2755 | + } |
2717 | 2756 | }
|
2718 | 2757 | ///ListRootsRequestParams
|
2719 | 2758 | ///
|
@@ -2847,6 +2886,9 @@ impl ListToolsRequest {
|
2847 | 2886 | pub fn method(&self) -> &::std::string::String {
|
2848 | 2887 | &self.method
|
2849 | 2888 | }
|
| 2889 | + pub fn method_name() -> ::std::string::String { |
| 2890 | + "tools/list".to_string() |
| 2891 | + } |
2850 | 2892 | }
|
2851 | 2893 | ///ListToolsRequestParams
|
2852 | 2894 | ///
|
@@ -3025,6 +3067,9 @@ impl LoggingMessageNotification {
|
3025 | 3067 | pub fn method(&self) -> &::std::string::String {
|
3026 | 3068 | &self.method
|
3027 | 3069 | }
|
| 3070 | + pub fn method_name() -> ::std::string::String { |
| 3071 | + "notifications/message".to_string() |
| 3072 | + } |
3028 | 3073 | }
|
3029 | 3074 | ///LoggingMessageNotificationParams
|
3030 | 3075 | ///
|
@@ -3359,6 +3404,9 @@ impl PingRequest {
|
3359 | 3404 | pub fn method(&self) -> &::std::string::String {
|
3360 | 3405 | &self.method
|
3361 | 3406 | }
|
| 3407 | + pub fn method_name() -> ::std::string::String { |
| 3408 | + "ping".to_string() |
| 3409 | + } |
3362 | 3410 | }
|
3363 | 3411 | ///PingRequestParams
|
3364 | 3412 | ///
|
@@ -3468,6 +3516,9 @@ impl ProgressNotification {
|
3468 | 3516 | pub fn method(&self) -> &::std::string::String {
|
3469 | 3517 | &self.method
|
3470 | 3518 | }
|
| 3519 | + pub fn method_name() -> ::std::string::String { |
| 3520 | + "notifications/progress".to_string() |
| 3521 | + } |
3471 | 3522 | }
|
3472 | 3523 | ///ProgressNotificationParams
|
3473 | 3524 | ///
|
@@ -3659,6 +3710,9 @@ impl PromptListChangedNotification {
|
3659 | 3710 | pub fn method(&self) -> &::std::string::String {
|
3660 | 3711 | &self.method
|
3661 | 3712 | }
|
| 3713 | + pub fn method_name() -> ::std::string::String { |
| 3714 | + "notifications/prompts/list_changed".to_string() |
| 3715 | + } |
3662 | 3716 | }
|
3663 | 3717 | ///PromptListChangedNotificationParams
|
3664 | 3718 | ///
|
@@ -3810,6 +3864,9 @@ impl PromptReference {
|
3810 | 3864 | pub fn type_(&self) -> &::std::string::String {
|
3811 | 3865 | &self.type_
|
3812 | 3866 | }
|
| 3867 | + pub fn type_name() -> ::std::string::String { |
| 3868 | + "ref/prompt".to_string() |
| 3869 | + } |
3813 | 3870 | }
|
3814 | 3871 | ///Sent from the client to the server, to read a specific resource URI.
|
3815 | 3872 | ///
|
@@ -3860,6 +3917,9 @@ impl ReadResourceRequest {
|
3860 | 3917 | pub fn method(&self) -> &::std::string::String {
|
3861 | 3918 | &self.method
|
3862 | 3919 | }
|
| 3920 | + pub fn method_name() -> ::std::string::String { |
| 3921 | + "resources/read".to_string() |
| 3922 | + } |
3863 | 3923 | }
|
3864 | 3924 | ///ReadResourceRequestParams
|
3865 | 3925 | ///
|
@@ -4266,6 +4326,9 @@ impl ResourceListChangedNotification {
|
4266 | 4326 | pub fn method(&self) -> &::std::string::String {
|
4267 | 4327 | &self.method
|
4268 | 4328 | }
|
| 4329 | + pub fn method_name() -> ::std::string::String { |
| 4330 | + "notifications/resources/list_changed".to_string() |
| 4331 | + } |
4269 | 4332 | }
|
4270 | 4333 | ///ResourceListChangedNotificationParams
|
4271 | 4334 | ///
|
@@ -4336,6 +4399,9 @@ impl ResourceReference {
|
4336 | 4399 | pub fn type_(&self) -> &::std::string::String {
|
4337 | 4400 | &self.type_
|
4338 | 4401 | }
|
| 4402 | + pub fn type_name() -> ::std::string::String { |
| 4403 | + "ref/resource".to_string() |
| 4404 | + } |
4339 | 4405 | }
|
4340 | 4406 | ///A template description for resources available on the server.
|
4341 | 4407 | ///
|
@@ -4490,6 +4556,9 @@ impl ResourceUpdatedNotification {
|
4490 | 4556 | pub fn method(&self) -> &::std::string::String {
|
4491 | 4557 | &self.method
|
4492 | 4558 | }
|
| 4559 | + pub fn method_name() -> ::std::string::String { |
| 4560 | + "notifications/resources/updated".to_string() |
| 4561 | + } |
4493 | 4562 | }
|
4494 | 4563 | ///ResourceUpdatedNotificationParams
|
4495 | 4564 | ///
|
@@ -4658,6 +4727,9 @@ impl RootsListChangedNotification {
|
4658 | 4727 | pub fn method(&self) -> &::std::string::String {
|
4659 | 4728 | &self.method
|
4660 | 4729 | }
|
| 4730 | + pub fn method_name() -> ::std::string::String { |
| 4731 | + "notifications/roots/list_changed".to_string() |
| 4732 | + } |
4661 | 4733 | }
|
4662 | 4734 | ///RootsListChangedNotificationParams
|
4663 | 4735 | ///
|
@@ -5179,6 +5251,9 @@ impl SetLevelRequest {
|
5179 | 5251 | pub fn method(&self) -> &::std::string::String {
|
5180 | 5252 | &self.method
|
5181 | 5253 | }
|
| 5254 | + pub fn method_name() -> ::std::string::String { |
| 5255 | + "logging/setLevel".to_string() |
| 5256 | + } |
5182 | 5257 | }
|
5183 | 5258 | ///SetLevelRequestParams
|
5184 | 5259 | ///
|
@@ -5253,6 +5328,9 @@ impl SubscribeRequest {
|
5253 | 5328 | pub fn method(&self) -> &::std::string::String {
|
5254 | 5329 | &self.method
|
5255 | 5330 | }
|
| 5331 | + pub fn method_name() -> ::std::string::String { |
| 5332 | + "resources/subscribe".to_string() |
| 5333 | + } |
5256 | 5334 | }
|
5257 | 5335 | ///SubscribeRequestParams
|
5258 | 5336 | ///
|
@@ -5342,6 +5420,9 @@ impl TextContent {
|
5342 | 5420 | pub fn type_(&self) -> &::std::string::String {
|
5343 | 5421 | &self.type_
|
5344 | 5422 | }
|
| 5423 | + pub fn type_name() -> ::std::string::String { |
| 5424 | + "text".to_string() |
| 5425 | + } |
5345 | 5426 | }
|
5346 | 5427 | ///TextContentAnnotations
|
5347 | 5428 | ///
|
@@ -5540,6 +5621,9 @@ impl ToolInputSchema {
|
5540 | 5621 | pub fn type_(&self) -> &::std::string::String {
|
5541 | 5622 | &self.type_
|
5542 | 5623 | }
|
| 5624 | + pub fn type_name() -> ::std::string::String { |
| 5625 | + "object".to_string() |
| 5626 | + } |
5543 | 5627 | }
|
5544 | 5628 | ///An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
|
5545 | 5629 | ///
|
@@ -5588,6 +5672,9 @@ impl ToolListChangedNotification {
|
5588 | 5672 | pub fn method(&self) -> &::std::string::String {
|
5589 | 5673 | &self.method
|
5590 | 5674 | }
|
| 5675 | + pub fn method_name() -> ::std::string::String { |
| 5676 | + "notifications/tools/list_changed".to_string() |
| 5677 | + } |
5591 | 5678 | }
|
5592 | 5679 | ///ToolListChangedNotificationParams
|
5593 | 5680 | ///
|
@@ -5664,6 +5751,9 @@ impl UnsubscribeRequest {
|
5664 | 5751 | pub fn method(&self) -> &::std::string::String {
|
5665 | 5752 | &self.method
|
5666 | 5753 | }
|
| 5754 | + pub fn method_name() -> ::std::string::String { |
| 5755 | + "resources/unsubscribe".to_string() |
| 5756 | + } |
5667 | 5757 | }
|
5668 | 5758 | ///UnsubscribeRequestParams
|
5669 | 5759 | ///
|
|
0 commit comments