hyper-mcp 0.4.0

A fast, secure MCP server that extends its capabilities through WebAssembly plugins
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
{
  "version": "v1-draft",
  "exports": {
    "call_tool": {
      "description": "Execute a tool call. This is the primary entry point for tool execution in plugins.\n\nThe plugin receives a tool call request with the tool name and arguments, along with request context information. The plugin should execute the requested tool and return the result with content blocks and optional structured output.",
      "input": {
        "$ref": "#/components/schemas/CallToolRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/CallToolResult",
        "contentType": "application/json"
      }
    },
    "complete": {
      "description": "Provide completion suggestions for a partially-typed input.\n\nThis function is called when the user requests autocompletion. The plugin should analyze the partial input and return matching completion suggestions based on the reference (prompt or resource) and argument context.",
      "input": {
        "$ref": "#/components/schemas/CompleteRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/CompleteResult",
        "contentType": "application/json"
      }
    },
    "get_prompt": {
      "description": "Retrieve a specific prompt by name.\n\nThis function is called when the user requests a specific prompt. The plugin should return the prompt details including messages and optional description.",
      "input": {
        "$ref": "#/components/schemas/GetPromptRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/GetPromptResult",
        "contentType": "application/json"
      }
    },
    "list_prompts": {
      "description": "List all available prompts.\n\nThis function should return a list of prompts that the plugin provides. Each prompt should include its name and a brief description of what it does. Supports pagination via cursor.",
      "input": {
        "$ref": "#/components/schemas/ListPromptsRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/ListPromptsResult",
        "contentType": "application/json"
      }
    },
    "list_resource_templates": {
      "description": "List all available resource templates.\n\nThis function should return a list of resource templates that the plugin provides. Templates are URI patterns that can match multiple resources. Supports pagination via cursor.",
      "input": {
        "$ref": "#/components/schemas/ListResourceTemplatesRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/ListResourceTemplatesResult",
        "contentType": "application/json"
      }
    },
    "list_resources": {
      "description": "List all available resources.\n\nThis function should return a list of resources that the plugin provides. Resources are URI-based references to files, data, or services. Supports pagination via cursor.",
      "input": {
        "$ref": "#/components/schemas/ListResourcesRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/ListResourcesResult",
        "contentType": "application/json"
      }
    },
    "list_tools": {
      "description": "List all available tools.\n\nThis function should return a list of all tools that the plugin provides. Each tool should include its name, description, and input schema. Supports pagination via cursor.",
      "input": {
        "$ref": "#/components/schemas/ListToolsRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/ListToolsResult",
        "contentType": "application/json"
      }
    },
    "on_roots_list_changed": {
      "description": "Notification that the list of roots has changed.\n\nThis is an optional notification handler. If implemented, the plugin will be notified whenever the roots list changes on the client side. This allows plugins to react to changes in the file system roots or other root resources.",
      "input": {
        "$ref": "#/components/schemas/PluginNotificationContext",
        "contentType": "application/json"
      }
    },
    "read_resource": {
      "description": "Read the contents of a resource by its URI.\n\nThis function is called when the user wants to read the contents of a specific resource. The plugin should retrieve and return the resource data with appropriate MIME type information.",
      "input": {
        "$ref": "#/components/schemas/ReadResourceRequest",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/ReadResourceResult",
        "contentType": "application/json"
      }
    }
  },
  "imports": {
    "create_elicitation": {
      "description": "Request user input through the client's elicitation interface.\n\nPlugins can use this to ask users for input, decisions, or confirmations. This is useful for interactive plugins that need user guidance during tool execution. Returns the user's response with action and optional form data.",
      "input": {
        "description": "One of FormElicitRequestParamWithTimeout or UrlElicitRequestParamWithTimeout",
        "type": "object",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/ElicitResult",
        "contentType": "application/json"
      }
    },
    "create_message": {
      "description": "Request message creation through the client's sampling interface.\n\nPlugins can use this to have the client create messages, typically with AI assistance. This is used when plugins need intelligent text generation or analysis. Returns the generated message with model information.",
      "input": {
        "$ref": "#/components/schemas/CreateMessageRequestParam",
        "contentType": "application/json"
      },
      "output": {
        "$ref": "#/components/schemas/CreateMessageResult",
        "contentType": "application/json"
      }
    },
    "list_roots": {
      "description": "List the client's root directories or resources.\n\nPlugins can query this to discover what root resources (typically file system roots) are available on the client side. This helps plugins understand the scope of resources they can access.",
      "output": {
        "$ref": "#/components/schemas/ListRootsResult",
        "contentType": "application/json"
      }
    },
    "notify_logging_message": {
      "description": "Send a logging message to the client.\n\nPlugins use this to report diagnostic, informational, warning, or error messages. The client's logging level determines which messages are processed.",
      "input": {
        "$ref": "#/components/schemas/LoggingMessageNotificationParam",
        "contentType": "application/json"
      }
    },
    "notify_progress": {
      "description": "Send a progress notification to the client.\n\nPlugins use this to report progress during long-running operations. This allows clients to display progress bars or status information to users.",
      "input": {
        "$ref": "#/components/schemas/ProgressNotificationParam",
        "contentType": "application/json"
      }
    },
    "notify_prompt_list_changed": {
      "description": "Notify the client that the list of available prompts has changed.\n\nPlugins should call this when they add, remove, or modify their available prompts. The client will typically refresh its prompt list in response."
    },
    "notify_resource_list_changed": {
      "description": "Notify the client that the list of available resources has changed.\n\nPlugins should call this when they add, remove, or modify their available resources. The client will typically refresh its resource list in response."
    },
    "notify_resource_updated": {
      "description": "Notify the client that a specific resource has been updated.\n\nPlugins should call this when they modify the contents of a resource. The client can use this to invalidate caches and refresh resource displays.",
      "input": {
        "$ref": "#/components/schemas/ResourceUpdatedNotificationParam",
        "contentType": "application/json"
      }
    },
    "notify_tool_list_changed": {
      "description": "Notify the client that the list of available tools has changed.\n\nPlugins should call this when they add, remove, or modify their available tools. The client will typically refresh its tool list in response."
    },
    "notify_url_elicitation_completed": {
      "description": "Notify the client that a specific url elicitation has been completed.\n\nPlugins should call this when they notice that an url elicitation is done. The client can use this to manage the tracking of elicitations.",
      "input": {
        "$ref": "#/components/schemas/ElicitationResponseNotificationParam",
        "contentType": "application/json"
      }
    }
  },
  "components": {
    "schemas": {
      "Annotations": {
        "description": "Content annotations for categorization and priority",
        "properties": {
          "audience": {
            "description": "Intended audience for the resource",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          },
          "lastModified": {
            "description": "Last modified timestamp for the resource",
            "type": "string",
            "format": "date-time"
          },
          "priority": {
            "description": "Priority level indicating the importance of the resource",
            "type": "number",
            "format": "float"
          }
        }
      },
      "AudioContent": {
        "description": "Audio content block",
        "properties": {
          "data": {
            "type": "string",
            "description": "Base64-encoded audio data"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the audio (e.g. 'audio/mpeg')"
          },
          "type": {
            "$ref": "#/components/schemas/AudioType"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations",
            "description": "Optional content annotations"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the content block"
          }
        },
        "required": ["data", "mimeType", "type"]
      },
      "AudioType": {
        "type": "string",
        "enum": ["audio"]
      },
      "BlobResourceContents": {
        "description": "Binary content of a resource",
        "properties": {
          "blob": {
            "type": "string",
            "description": "Base64-encoded binary data of the resource"
          },
          "uri": {
            "type": "string",
            "description": "URI of the resource"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the binary content (e.g. 'application/pdf')"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the blob resource"
          }
        },
        "required": ["blob", "uri"]
      },
      "BooleanSchema": {
        "description": "Schema for a boolean input",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/BooleanType"
          },
          "description": {
            "type": "string",
            "description": "Description of the boolean input"
          },
          "title": {
            "type": "string",
            "description": "Optional human-readable title"
          },
          "default": {
            "type": "boolean",
            "description": "Optional default value"
          }
        },
        "required": ["type"]
      },
      "BooleanType": {
        "type": "string",
        "enum": ["boolean"]
      },
      "CallToolRequest": {
        "description": "Input for the call_tool export function",
        "properties": {
          "request": {
            "$ref": "#/components/schemas/CallToolRequestParam"
          },
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["request", "context"]
      },
      "CallToolRequestParam": {
        "description": "Parameters for a tool call request",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the tool to call"
          },
          "arguments": {
            "type": "object",
            "description": "Arguments to pass to the tool"
          }
        },
        "required": ["name"]
      },
      "CallToolResult": {
        "description": "Result of a tool call containing content blocks and optional structured output",
        "properties": {
          "content": {
            "type": "array",
            "description": "Array of TextContent, ImageContent, AudioContent, EmbeddedResource, or ResourceLinks representing the result",
            "items": {
              "type": "object"
            }
          },
          "isError": {
            "type": "boolean",
            "description": "Whether the tool call ended in an error. If not set, defaults to false."
          },
          "structuredContent": {
            "type": "object",
            "description": "Optional structured JSON result from the tool"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the tool call result"
          }
        },
        "required": ["content"]
      },
      "CompleteRequest": {
        "description": "Input for the complete export function",
        "properties": {
          "request": {
            "$ref": "#/components/schemas/CompleteRequestParam"
          },
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["request", "context"]
      },
      "CompleteRequestParam": {
        "description": "Parameters for a completion request",
        "properties": {
          "ref": {
            "type": "object",
            "description": "Reference to either a PromptReference or ResourceTemplateReference"
          },
          "argument": {
            "$ref": "#/components/schemas/CompleteRequestParamArgument"
          },
          "context": {
            "type": "object",
            "description": "Optional completion context with previously-resolved arguments"
          }
        },
        "required": ["ref", "argument"]
      },
      "CompleteRequestParamArgument": {
        "description": "The argument being completed",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the argument"
          },
          "value": {
            "type": "string",
            "description": "Current value to complete"
          }
        },
        "required": ["name", "value"]
      },
      "CompleteResult": {
        "description": "Result of a completion request",
        "properties": {
          "completion": {
            "$ref": "#/components/schemas/CompleteResultCompletion"
          }
        },
        "required": ["completion"]
      },
      "CompleteResultCompletion": {
        "description": "Completion result with values",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of completion values (max 100 items)"
          },
          "total": {
            "type": "integer",
            "description": "Total number of available completions"
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether there are more completions available"
          }
        },
        "required": ["values"]
      },
      "FormElicitRequestMode": {
        "type": "string",
        "enum": "form"
      },
      "FormElicitRequestParamWithTimeout": {
        "description": "Input for the create_elicitation import function",
        "properties": {
          "message": {
            "type": "string",
            "description": "Message to present to the user"
          },
          "mode": {
            "$ref": "#/components/schemas/FormElicitRequestMode"
          },
          "requestedSchema": {
            "$ref": "#/components/schemas/Schema"
          },
          "timeout": {
            "type": "integer",
            "description": "Optional timeout in milliseconds"
          }
        },
        "required": ["message", "mode", "requestedSchema"]
      },
      "ElicitResult": {
        "description": "Result of an elicitation request",
        "properties": {
          "action": {
            "$ref": "#/components/schemas/ElicitResultAction"
          },
          "content": {
            "type": "object",
            "description": "Form data submitted by user (only present when action is accept)"
          }
        },
        "required": ["action"]
      },
      "ElicitResultAction": {
        "description": "User's action in response to elicitation",
        "type": "string",
        "enum": ["accept", "decline", "cancel"]
      },
      "CreateMessageRequestParam": {
        "description": "Input for the create_message import function",
        "properties": {
          "messages": {
            "type": "array",
            "description": "Conversation messages of of TextContent, ImageContent or AudioContent",
            "items": {
              "type": "object"
            }
          },
          "maxTokens": {
            "type": "integer",
            "description": "Maximum tokens to sample"
          },
          "systemPrompt": {
            "type": "string",
            "description": "Optional system prompt"
          },
          "temperature": {
            "type": "number",
            "description": "Sampling temperature"
          },
          "stopSequences": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Stop sequences"
          },
          "modelPreferences": {
            "$ref": "#/components/schemas/ModelPreferences",
            "description": "Preferences for model selection"
          },
          "includeContext": {
            "$ref": "#/components/schemas/CreateMessageRequestParamIncludeContext"
          }
        },
        "required": ["messages", "maxTokens"]
      },
      "CreateMessageRequestParamIncludeContext": {
        "description": "Context inclusion level",
        "type": "string",
        "enum": ["none", "thisServer", "allServers"]
      },
      "CreateMessageResult": {
        "description": "Result of message creation",
        "properties": {
          "content": {
            "type": "object",
            "description": "One of TextContent, ImageContent or AudioContent"
          },
          "model": {
            "type": "string",
            "description": "Name of the model used"
          },
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "stopReason": {
            "type": "string",
            "description": "Optional reason sampling stopped"
          }
        },
        "required": ["content", "model", "role"]
      },
      "ElicitationResponseNotificationParam": {
        "description": "Parameters for notify_url_elicitation_completed to notify about specific url elicitation",
        "properties": {
          "elicitationId": {
            "type": "string",
            "description": "The id of the completed elicitation"
          }
        },
        "required": ["elicitationId"]
      },
      "EmbeddedResource": {
        "description": "An embedded resource with data",
        "properties": {
          "resource": {
            "type": "object",
            "description": "The embedded TextResourceContents or BlobResourceContents"
          },
          "type": {
            "$ref": "#/components/schemas/ResourceType"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the embedded resource"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations",
            "description": "Optional resource annotations"
          }
        },
        "required": ["resource", "type"]
      },
      "EnumSchema": {
        "description": "Schema for an enum input",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/StringType"
          },
          "description": {
            "type": "string",
            "description": "Description of the enum input"
          },
          "enum": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of allowed string values"
          },
          "enumNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Optional array of human-readable names for the enum values"
          },
          "title": {
            "type": "string",
            "description": "Optional human-readable title"
          }
        },
        "required": ["type", "enum"]
      },
      "GetPromptRequest": {
        "description": "Input for the get_prompt export function",
        "properties": {
          "request": {
            "$ref": "#/components/schemas/GetPromptRequestParam"
          },
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["request", "context"]
      },
      "GetPromptRequestParam": {
        "description": "Parameters for get_prompt request",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the prompt to retrieve"
          },
          "arguments": {
            "type": "object",
            "description": "Arguments for templating the prompt"
          }
        },
        "required": ["name"]
      },
      "GetPromptResult": {
        "description": "Result of retrieving a prompt",
        "properties": {
          "messages": {
            "type": "array",
            "description": "Array of prompt messages",
            "items": {
              "$ref": "#/components/schemas/PromptMessage"
            }
          },
          "description": {
            "type": "string",
            "description": "Optional description of the prompt"
          }
        },
        "required": ["messages"]
      },
      "ImageContent": {
        "description": "Image content block",
        "properties": {
          "data": {
            "type": "string",
            "description": "Base64-encoded image data"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the image (e.g. 'image/png')"
          },
          "type": {
            "$ref": "#/components/schemas/ImageType"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations",
            "description": "Optional content annotations"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the content block"
          }
        },
        "required": ["data", "mimeType", "type"]
      },
      "ImageType": {
        "type": "string",
        "enum": ["image"]
      },
      "ListPromptsRequest": {
        "description": "Input for the list_prompts export function",
        "properties": {
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["context"]
      },
      "ListPromptsResult": {
        "description": "Result of listing prompts",
        "properties": {
          "prompts": {
            "type": "array",
            "description": "Array of available prompts",
            "items": {
              "$ref": "#/components/schemas/Prompt"
            }
          }
        },
        "required": ["prompts"]
      },
      "ListResourceTemplatesRequest": {
        "description": "Input for the list_resource_templates export function",
        "properties": {
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["context"]
      },
      "ListResourceTemplatesResult": {
        "description": "Result of listing resource templates",
        "properties": {
          "resourceTemplates": {
            "type": "array",
            "description": "Array of resource templates",
            "items": {
              "$ref": "#/components/schemas/ResourceTemplate"
            }
          },
          "nextCursor": {
            "type": "string",
            "description": "Optional cursor for pagination"
          }
        },
        "required": ["resourceTemplates"]
      },
      "ListResourcesRequest": {
        "description": "Input for the list_resources export function",
        "properties": {
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["context"]
      },
      "ListResourcesResult": {
        "description": "Result of listing resources",
        "properties": {
          "resources": {
            "type": "array",
            "description": "Array of available resources",
            "items": {
              "$ref": "#/components/schemas/Resource"
            }
          }
        },
        "required": ["resources"]
      },
      "ListRootsResult": {
        "description": "Result of listing roots",
        "properties": {
          "roots": {
            "type": "array",
            "description": "Array of root directories/resources",
            "items": {
              "$ref": "#/components/schemas/Root"
            }
          }
        },
        "required": ["roots"]
      },
      "ListToolsRequest": {
        "description": "Input for the list_tools export function",
        "properties": {
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["context"]
      },
      "ListToolsResult": {
        "description": "Result of listing tools",
        "properties": {
          "tools": {
            "type": "array",
            "description": "Array of available tools",
            "items": {
              "$ref": "#/components/schemas/Tool"
            }
          }
        },
        "required": ["tools"]
      },
      "LoggingLevel": {
        "description": "Logging level (syslog severity)",
        "type": "string",
        "enum": [
          "debug",
          "info",
          "notice",
          "warning",
          "error",
          "critical",
          "alert",
          "emergency"
        ]
      },
      "LoggingMessageNotificationParam": {
        "description": "Parameters for notify_logging_message",
        "properties": {
          "level": {
            "$ref": "#/components/schemas/LoggingLevel"
          },
          "data": {
            "description": "Data to log (any JSON-serializable type)",
            "type": "object"
          },
          "logger": {
            "type": "string",
            "description": "Optional logger name"
          }
        },
        "required": ["level", "data"]
      },
      "ModelHint": {
        "description": "A hint for model selection",
        "properties": {
          "name": {
            "type": "string",
            "description": "Suggested model name or family"
          }
        }
      },
      "ModelPreferences": {
        "description": "Server preferences for model selection",
        "properties": {
          "costPriority": {
            "type": "number",
            "format": "float",
            "description": "Priority for cost (0-1)"
          },
          "speedPriority": {
            "type": "number",
            "format": "float",
            "description": "Priority for speed (0-1)"
          },
          "intelligencePriority": {
            "type": "number",
            "format": "float",
            "description": "Priority for intelligence (0-1)"
          },
          "hints": {
            "type": "array",
            "description": "Model name hints",
            "items": {
              "$ref": "#/components/schemas/ModelHint"
            }
          }
        }
      },
      "NumberSchema": {
        "description": "Schema for a number input",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/NumberType"
          },
          "description": {
            "type": "string",
            "description": "Description of the number input"
          },
          "minimum": {
            "type": "number",
            "description": "Minimum value"
          },
          "maximum": {
            "type": "number",
            "description": "Maximum value"
          },
          "title": {
            "type": "string",
            "description": "Optional human-readable title"
          }
        },
        "required": ["type"]
      },
      "NumberType": {
        "description": "Number type",
        "type": "string",
        "enum": ["number", "integer"]
      },
      "ObjectType": {
        "description": "The type of schema requested for elicitation",
        "type": "string",
        "enum": ["object"]
      },
      "PluginNotificationContext": {
        "description": "Context information for notification-type plugin function calls. Contains metadata passed through the MCP protocol.",
        "properties": {
          "_meta": {
            "type": "object",
            "description": "Additional metadata about the notification"
          }
        },
        "required": ["_meta"]
      },
      "PluginRequestContext": {
        "description": "Context information for request-type plugin function calls. Contains the request ID and metadata passed through the MCP protocol.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this request"
          },
          "_meta": {
            "type": "object",
            "description": "Additional metadata about the request"
          }
        },
        "required": ["id", "_meta"]
      },
      "ProgressNotificationParam": {
        "description": "Parameters for notify_progress to track long-running operations",
        "properties": {
          "progress": {
            "type": "number",
            "description": "The progress thus far"
          },
          "progressToken": {
            "type": "string",
            "description": "A token identifying the progress context"
          },
          "total": {
            "type": "number",
            "description": "Optional total units of work"
          },
          "message": {
            "type": "string",
            "description": "Optional progress message describing current operation"
          }
        },
        "required": ["progress", "progressToken"]
      },
      "Prompt": {
        "description": "A prompt template",
        "properties": {
          "name": {
            "type": "string",
            "description": "Unique name of the prompt"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title"
          },
          "description": {
            "type": "string",
            "description": "Description of what the prompt does"
          },
          "arguments": {
            "type": "array",
            "description": "Optional prompt arguments",
            "items": {
              "$ref": "#/components/schemas/PromptArgument"
            }
          }
        },
        "required": ["name"]
      },
      "PromptArgument": {
        "description": "An argument that a prompt accepts",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the argument"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title"
          },
          "description": {
            "type": "string",
            "description": "Description of the argument"
          },
          "required": {
            "type": "boolean",
            "description": "Whether this argument is required"
          }
        },
        "required": ["name"]
      },
      "PromptMessage": {
        "description": "A message in a prompt",
        "properties": {
          "role": {
            "$ref": "#/components/schemas/Role"
          },
          "content": {
            "type": "object",
            "description": "One of TextContent, ImageContent, AudioContent, EmbeddedResource, or ResourceLink"
          }
        },
        "required": ["role", "content"]
      },
      "PromptReference": {
        "description": "Reference to a prompt by name",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/PromptReferenceType"
          },
          "name": {
            "type": "string",
            "description": "Name of the prompt"
          },
          "title": {
            "type": "string",
            "description": "Optional human-readable title"
          }
        },
        "required": ["type", "name"]
      },
      "PromptReferenceType": {
        "description": "The type of prompt content",
        "type": "string",
        "enum": ["prompt"]
      },
      "ReadResourceRequest": {
        "description": "Input for the read_resource export function",
        "properties": {
          "request": {
            "$ref": "#/components/schemas/ReadResourceRequestParam"
          },
          "context": {
            "$ref": "#/components/schemas/PluginRequestContext"
          }
        },
        "required": ["request", "context"]
      },
      "ReadResourceRequestParam": {
        "description": "Parameters for a read resource request",
        "properties": {
          "uri": {
            "type": "string",
            "description": "URI of the resource to read"
          }
        },
        "required": ["uri"]
      },
      "ReadResourceResult": {
        "description": "Result of reading a resource",
        "properties": {
          "contents": {
            "type": "array",
            "description": "Array of TextResourceContents or BlobResourceContents",
            "items": {
              "type": "object"
            }
          }
        },
        "required": ["contents"]
      },
      "Resource": {
        "description": "A resource available from the plugin",
        "properties": {
          "uri": {
            "type": "string",
            "description": "URI of the resource"
          },
          "name": {
            "type": "string",
            "description": "Human-readable name"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title"
          },
          "description": {
            "type": "string",
            "description": "Description of the resource"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the resource"
          },
          "size": {
            "type": "integer",
            "description": "Size in bytes"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations",
            "description": "Optional resource annotations"
          }
        },
        "required": ["name", "uri"]
      },
      "ResourceLink": {
        "description": "A link to a resource by its URI",
        "properties": {
          "uri": {
            "type": "string",
            "description": "URI of the resource"
          },
          "name": {
            "type": "string",
            "description": "Optional human-readable name"
          },
          "title": {
            "type": "string",
            "description": "Optional human-readable title"
          },
          "description": {
            "type": "string",
            "description": "Optional description of the resource"
          },
          "mimeType": {
            "type": "string",
            "description": "Optional MIME type of the resource"
          },
          "size": {
            "type": "integer",
            "description": "Optional size in bytes"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations",
            "description": "Optional resource annotations"
          },
          "type": {
            "$ref": "#/components/schemas/ResourceLinkType"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the resource link"
          }
        },
        "required": ["uri", "name", "type"]
      },
      "ResourceLinkType": {
        "description": "The type of resource link",
        "type": "string",
        "enum": ["resource_link"]
      },
      "ResourceReferenceType": {
        "description": "The type of resource content",
        "type": "string",
        "enum": ["resource"]
      },
      "ResourceTemplate": {
        "description": "A template for resources matching a URI pattern",
        "properties": {
          "uriTemplate": {
            "type": "string",
            "description": "RFC 6570 URI template pattern"
          },
          "name": {
            "type": "string",
            "description": "Human-readable name"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title"
          },
          "description": {
            "type": "string",
            "description": "Description of the template"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type for resources matching this template"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations"
          }
        },
        "required": ["name", "uriTemplate"]
      },
      "ResourceTemplateReference": {
        "description": "Reference to a resource template by URI pattern",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ResourceReferenceType"
          },
          "uri": {
            "type": "string",
            "description": "URI or URI template pattern of the resource"
          }
        },
        "required": ["type", "uri"]
      },
      "ResourceType": {
        "description": "The type of resource content",
        "type": "string",
        "enum": ["resource"]
      },
      "ResourceUpdatedNotificationParam": {
        "description": "Parameters for notify_resource_updated to notify about specific resource updates",
        "properties": {
          "uri": {
            "type": "string",
            "description": "URI of the updated resource"
          }
        },
        "required": ["uri"]
      },
      "Role": {
        "description": "Intended audience/role for content or resources",
        "type": "string",
        "enum": ["assistant", "user"]
      },
      "Root": {
        "description": "A root directory or resource",
        "properties": {
          "uri": {
            "type": "string",
            "description": "URI of the root (typically file://)"
          },
          "name": {
            "type": "string",
            "description": "Optional human-readable name"
          }
        },
        "required": ["uri"]
      },
      "Schema": {
        "description": "A JSON Schema definitions",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ObjectType"
          },
          "properties": {
            "type": "object",
            "description": "A map of StringSchema, NumberSchema, BooleanSchema or EnumSchema definitions (no nesting)"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Required property names"
          }
        },
        "required": ["type", "properties"]
      },
      "StringSchema": {
        "description": "Schema for a string input",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/StringType"
          },
          "description": {
            "type": "string",
            "description": "Description of the string input"
          },
          "minLength": {
            "type": "integer",
            "description": "Minimum length of the string"
          },
          "maxLength": {
            "type": "integer",
            "description": "Maximum length of the string"
          },
          "format": {
            "$ref": "#/components/schemas/StringSchemaFormat"
          },
          "title": {
            "type": "string",
            "description": "Optional human-readable title"
          }
        },
        "required": ["type"]
      },
      "StringSchemaFormat": {
        "description": "Format of the string schema",
        "type": "string",
        "enum": ["email", "uri", "date", "date_time"]
      },
      "StringType": {
        "description": "String type",
        "type": "string",
        "enum": ["string"]
      },
      "TextContent": {
        "description": "Text content block",
        "properties": {
          "text": {
            "type": "string",
            "description": "The text content"
          },
          "type": {
            "$ref": "#/components/schemas/TextType"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations",
            "description": "Optional content annotations"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the content block"
          }
        },
        "required": ["text", "type"]
      },
      "TextResourceContents": {
        "description": "Text content of a resource",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text content of the resource"
          },
          "uri": {
            "type": "string",
            "description": "URI of the resource"
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the text content (e.g. 'text/plain')"
          },
          "_meta": {
            "type": "object",
            "description": "Optional additional metadata about the text resource"
          }
        },
        "required": ["text", "uri"]
      },
      "TextType": {
        "type": "string",
        "enum": ["text"]
      },
      "Tool": {
        "description": "A tool offered by the plugin",
        "properties": {
          "name": {
            "type": "string",
            "description": "Unique name of the tool"
          },
          "title": {
            "type": "string",
            "description": "Human-readable title"
          },
          "description": {
            "type": "string",
            "description": "Description of what the tool does"
          },
          "inputSchema": {
            "$ref": "#/components/schemas/ToolSchema"
          },
          "outputSchema": {
            "$ref": "#/components/schemas/ToolSchema"
          },
          "annotations": {
            "$ref": "#/components/schemas/Annotations",
            "description": "Optional tool annotations"
          }
        },
        "required": ["name", "inputSchema"]
      },
      "ToolSchema": {
        "description": "Schema for tool input/output arguments",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ObjectType"
          },
          "properties": {
            "type": "object",
            "description": "Schema properties"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Required properties"
          }
        },
        "required": ["type"]
      },
      "UrlElicitRequestMode": {
        "type": "string",
        "enum": "url"
      },
      "UrlElicitRequestParamWithTimeout": {
        "description": "Input for the create_elicitation import function",
        "properties": {
          "elicitationId": {
            "type": "string",
            "description": "The unique identifier for this elicitation"
          },
          "message": {
            "type": "string",
            "description": "Message to present to the user"
          },
          "mode": {
            "$ref": "#/components/schemas/UrlElicitRequestMode"
          },
          "timeout": {
            "type": "integer",
            "description": "Optional timeout in milliseconds"
          },
          "url": {
            "type": "string",
            "description": "The URL where the user can provide the requested information"
          }
        },
        "required": ["elicitationId", "message", "mode", "url"]
      }
    }
  }
}