Repository navigation
Expand file tree
/
Copy pathschema.json
More file actions
2127 lines (2127 loc) · 94.7 KB
/
Copy pathschema.json
File metadata and controls
2127 lines (2127 loc) · 94.7 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://modelcontextprotocol.io/ext-skills/beta/schema.json",
"title": "MCP Skills Extension (Beta)",
"description": "Wire types for io.modelcontextprotocol/skills, based on MCP 2026-07-28. Validate a named $defs entry, not the schema container itself.",
"$defs": {
"SkillResource": {
"description": "A file belonging to a skill, with the digest and size of its content.",
"type": "object",
"properties": {
"uri": {
"description": "Resource URI of the file.",
"type": "string"
},
"digest": {
"description": "SHA-256 digest of the file's raw bytes, formatted as `sha256:{hex}`\nwhere {hex} is 64 lowercase hexadecimal characters.",
"type": "string"
},
"size": {
"description": "Length in bytes of the file's raw content (the same bytes that `digest` covers).",
"type": "integer"
}
},
"required": [
"digest",
"size",
"uri"
]
},
"Skill": {
"description": "The entry for a single skill.",
"type": "object",
"properties": {
"uri": {
"description": "Resource URI of the skill's SKILL.md, readable via resources/read.",
"type": "string"
},
"frontmatter": {
"description": "The skill's SKILL.md YAML frontmatter, rendered verbatim as a JSON object.\n`name` and `description` are always present; every other field the author\nwrote passes through unchanged.",
"type": "object",
"additionalProperties": {},
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"description",
"name"
]
},
"resources": {
"description": "The skill's files: a complete enumeration of SKILL.md and every supporting\nfile, or the string \"dynamic\" when the skill's content is generated such\nthat stable digests cannot be published.",
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/SkillResource"
}
},
{
"const": "dynamic",
"type": "string"
}
]
},
"_meta": {
"description": "See the base protocol's notes on `_meta` usage. Keys defined by this\nextension use the `io.modelcontextprotocol.skills/` prefix.",
"$ref": "#/$defs/MetaObject"
}
},
"required": [
"frontmatter",
"resources",
"uri"
]
},
"ListSkillsRequest": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "skills/list"
},
"params": {
"$ref": "#/$defs/PaginatedRequestParams"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
]
},
"ListSkillsResult": {
"type": "object",
"properties": {
"skills": {
"type": "array",
"items": {
"$ref": "#/$defs/Skill"
}
},
"nextCursor": {
"description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.",
"type": "string"
},
"_meta": {
"description": "Extends {@link MetaObject} with additional result-specific fields. All key naming rules from `MetaObject` apply.",
"$ref": "#/$defs/ResultMetaObject"
},
"resultType": {
"description": "Indicates the type of the result, which allows the client to determine\nhow to parse the result object.\n\nServers implementing this protocol version MUST include this field.\nFor backward compatibility, when a client receives a result from a\nserver implementing an earlier protocol version (which does not include\n`resultType`), the client MUST treat the absent field as `\"complete\"`.",
"type": "string"
},
"ttlMs": {
"description": "A hint from the server indicating how long (in milliseconds) the\nclient MAY cache this response before re-fetching. Semantics are\nanalogous to HTTP Cache-Control max-age.\n\n- If 0, The response SHOULD be considered immediately stale,\n The client MAY re-fetch every time the result is needed.\n- If positive, the client SHOULD consider the result fresh for this many\n milliseconds after receiving the response.",
"minimum": 0,
"type": "integer"
},
"cacheScope": {
"description": "Indicates the intended scope of the cached response, analogous to HTTP\n`Cache-Control: public` vs `Cache-Control: private`.\n\n- `\"public\"`: The response does not contain user-specific data. Any\n client or intermediary (e.g., shared gateway, caching proxy) MAY cache\n the response and serve it across authorization contexts.\n- `\"private\"`: The response MAY be cached and reused only within the\n same authorization context. Caches MUST NOT be shared across\n authorization contexts (e.g., a different access token requires a\n different cache).",
"enum": [
"private",
"public"
],
"type": "string"
}
},
"required": [
"cacheScope",
"resultType",
"skills",
"ttlMs"
]
},
"ListSkillsResultResponse": {
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/ListSkillsResult"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
},
"GetSkillRequestParams": {
"type": "object",
"properties": {
"uri": {
"description": "URI of the skill's SKILL.md.",
"type": "string"
},
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
}
},
"required": [
"_meta",
"uri"
]
},
"GetSkillRequest": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "skills/get"
},
"params": {
"$ref": "#/$defs/GetSkillRequestParams"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
]
},
"GetSkillResult": {
"type": "object",
"properties": {
"skill": {
"$ref": "#/$defs/Skill"
},
"ttlMs": {
"description": "A hint from the server indicating how long (in milliseconds) the\nclient MAY cache this response before re-fetching. Semantics are\nanalogous to HTTP Cache-Control max-age.\n\n- If 0, The response SHOULD be considered immediately stale,\n The client MAY re-fetch every time the result is needed.\n- If positive, the client SHOULD consider the result fresh for this many\n milliseconds after receiving the response.",
"minimum": 0,
"type": "integer"
},
"cacheScope": {
"description": "Indicates the intended scope of the cached response, analogous to HTTP\n`Cache-Control: public` vs `Cache-Control: private`.\n\n- `\"public\"`: The response does not contain user-specific data. Any\n client or intermediary (e.g., shared gateway, caching proxy) MAY cache\n the response and serve it across authorization contexts.\n- `\"private\"`: The response MAY be cached and reused only within the\n same authorization context. Caches MUST NOT be shared across\n authorization contexts (e.g., a different access token requires a\n different cache).",
"enum": [
"private",
"public"
],
"type": "string"
},
"_meta": {
"description": "Extends {@link MetaObject} with additional result-specific fields. All key naming rules from `MetaObject` apply.",
"$ref": "#/$defs/ResultMetaObject"
},
"resultType": {
"description": "Indicates the type of the result, which allows the client to determine\nhow to parse the result object.\n\nServers implementing this protocol version MUST include this field.\nFor backward compatibility, when a client receives a result from a\nserver implementing an earlier protocol version (which does not include\n`resultType`), the client MUST treat the absent field as `\"complete\"`.",
"type": "string"
}
},
"required": [
"cacheScope",
"resultType",
"skill",
"ttlMs"
]
},
"GetSkillResultResponse": {
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/GetSkillResult"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
},
"ReadResourceDirectoryRequestParams": {
"type": "object",
"properties": {
"uri": {
"description": "URI of the directory resource to read.",
"type": "string"
},
"cursor": {
"description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.",
"type": "string"
},
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
}
},
"required": [
"_meta",
"uri"
]
},
"ReadResourceDirectoryRequest": {
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "resources/directory/read"
},
"params": {
"$ref": "#/$defs/ReadResourceDirectoryRequestParams"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
]
},
"ReadResourceDirectoryResult": {
"type": "object",
"properties": {
"resources": {
"description": "Resource metadata of the directory's direct children.",
"type": "array",
"items": {
"$ref": "#/$defs/Resource"
}
},
"nextCursor": {
"description": "An opaque token representing the pagination position after the last returned result.\nIf present, there may be more results available.",
"type": "string"
},
"_meta": {
"description": "Extends {@link MetaObject} with additional result-specific fields. All key naming rules from `MetaObject` apply.",
"$ref": "#/$defs/ResultMetaObject"
},
"resultType": {
"description": "Indicates the type of the result, which allows the client to determine\nhow to parse the result object.\n\nServers implementing this protocol version MUST include this field.\nFor backward compatibility, when a client receives a result from a\nserver implementing an earlier protocol version (which does not include\n`resultType`), the client MUST treat the absent field as `\"complete\"`.",
"type": "string"
},
"ttlMs": {
"description": "A hint from the server indicating how long (in milliseconds) the\nclient MAY cache this response before re-fetching. Semantics are\nanalogous to HTTP Cache-Control max-age.\n\n- If 0, The response SHOULD be considered immediately stale,\n The client MAY re-fetch every time the result is needed.\n- If positive, the client SHOULD consider the result fresh for this many\n milliseconds after receiving the response.",
"minimum": 0,
"type": "integer"
},
"cacheScope": {
"description": "Indicates the intended scope of the cached response, analogous to HTTP\n`Cache-Control: public` vs `Cache-Control: private`.\n\n- `\"public\"`: The response does not contain user-specific data. Any\n client or intermediary (e.g., shared gateway, caching proxy) MAY cache\n the response and serve it across authorization contexts.\n- `\"private\"`: The response MAY be cached and reused only within the\n same authorization context. Caches MUST NOT be shared across\n authorization contexts (e.g., a different access token requires a\n different cache).",
"enum": [
"private",
"public"
],
"type": "string"
}
},
"required": [
"cacheScope",
"resources",
"resultType",
"ttlMs"
]
},
"ReadResourceDirectoryResultResponse": {
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/ReadResourceDirectoryResult"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
},
"ReadResourceRequest": {
"description": "Sent from the client to the server, to read a specific resource URI.",
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "resources/read"
},
"params": {
"$ref": "#/$defs/ReadResourceRequestParams"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"method",
"params"
]
},
"ReadResourceResultResponse": {
"description": "A successful response from the server for a {@link ReadResourceRequestresources/read} request.",
"type": "object",
"properties": {
"result": {
"anyOf": [
{
"$ref": "#/$defs/InputRequiredResult"
},
{
"$ref": "#/$defs/ReadResourceResult"
}
]
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"$ref": "#/$defs/RequestId"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
},
"JSONRPCErrorResponse": {
"description": "A response to a request that indicates an error occurred.",
"type": "object",
"properties": {
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"id": {
"description": "A uniquely identifying ID for a request in JSON-RPC.",
"type": [
"string",
"integer"
]
},
"error": {
"$ref": "#/$defs/Error"
}
},
"required": [
"error",
"jsonrpc"
]
},
"MetaObject": {
"description": "Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.\n\nCertain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions.\n\nValid keys have two segments:\n\n**Prefix:**\n- Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).\n- Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).\n- Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).\n- Any prefix where the second label is `modelcontextprotocol` or `mcp` is **reserved** for MCP use. For example: `io.modelcontextprotocol/`, `dev.mcp/`, `org.modelcontextprotocol.api/`, and `com.mcp.tools/` are all reserved. However, `com.example.mcp/` is NOT reserved, as the second label is `example`.\n\n**Name:**\n- Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).\n- Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).",
"type": "object"
},
"PaginatedRequestParams": {
"description": "Common params for paginated requests.",
"type": "object",
"properties": {
"cursor": {
"description": "An opaque token representing the current pagination position.\nIf provided, the server should return results starting after this cursor.",
"type": "string"
},
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
}
},
"required": [
"_meta"
]
},
"RequestMetaObject": {
"description": "Extends {@link MetaObject} with additional request-specific fields. All key naming rules from `MetaObject` apply.",
"type": "object",
"properties": {
"progressToken": {
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by {@link ProgressNotificationnotifications/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.",
"type": [
"string",
"integer"
]
},
"io.modelcontextprotocol/protocolVersion": {
"description": "The MCP Protocol Version being used for this request. Required.\n\nFor the HTTP transport, this value MUST match the `MCP-Protocol-Version`\nheader; otherwise the server MUST return a `400 Bad Request`. If the\nserver does not support the requested version, it MUST return an\n{@link UnsupportedProtocolVersionError}.",
"type": "string"
},
"io.modelcontextprotocol/clientInfo": {
"description": "Identifies the client software making the request. Clients SHOULD\ninclude this field on every request unless specifically configured not\nto do so.\n\nThe {@link Implementation} schema requires `name` and `version`; other\nfields are optional.\n\nThe value is self-reported by the client and is not verified by the\nprotocol. It is intended for display, logging, and debugging. Servers\nSHOULD NOT use it to change their behavior, and SHOULD NOT rely on it for\nsecurity decisions.",
"$ref": "#/$defs/Implementation"
},
"io.modelcontextprotocol/clientCapabilities": {
"$ref": "#/$defs/ClientCapabilities",
"description": "The client's capabilities for this specific request. Required.\n\nCapabilities are declared per-request rather than once at initialization;\nan empty object means the client supports no optional capabilities.\nServers MUST NOT infer capabilities from prior requests."
},
"io.modelcontextprotocol/logLevel": {
"description": "The desired log level for this request. Optional.\n\nIf absent, the server MUST NOT send any {@link LoggingMessageNotificationnotifications/message}\nnotifications for this request. The client opts in to log messages by\nexplicitly setting a level. Replaces the former `logging/setLevel` RPC.",
"enum": [
"alert",
"critical",
"debug",
"emergency",
"error",
"info",
"notice",
"warning"
],
"type": "string"
}
},
"required": [
"io.modelcontextprotocol/clientCapabilities",
"io.modelcontextprotocol/protocolVersion"
]
},
"Implementation": {
"description": "Describes the MCP implementation.",
"type": "object",
"properties": {
"version": {
"description": "The version of this implementation.",
"type": "string"
},
"description": {
"description": "An optional human-readable description of what this implementation does.\n\nThis can be used by clients or servers to provide context about their purpose\nand capabilities. For example, a server might describe the types of resources\nor tools it provides, while a client might describe its intended use case.",
"type": "string"
},
"websiteUrl": {
"description": "An optional URL of the website for this implementation.",
"format": "uri",
"type": "string"
},
"name": {
"description": "Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).",
"type": "string"
},
"title": {
"description": "Intended for UI and end-user contexts — optimized to be human-readable and easily understood,\neven by those unfamiliar with domain-specific terminology.\n\nIf not provided, the name should be used for display (except for {@link Tool},\nwhere `annotations.title` should be given precedence over using `name`,\nif present).",
"type": "string"
},
"icons": {
"description": "Optional set of sized icons that the client can display in a user interface.\n\nClients that support rendering icons MUST support at least the following MIME types:\n- `image/png` - PNG images (safe, universal compatibility)\n- `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)\n\nClients that support rendering icons SHOULD also support:\n- `image/svg+xml` - SVG images (scalable but requires security precautions)\n- `image/webp` - WebP images (modern, efficient format)",
"type": "array",
"items": {
"$ref": "#/$defs/Icon"
}
}
},
"required": [
"name",
"version"
]
},
"Icon": {
"description": "An optionally-sized icon that can be displayed in a user interface.",
"type": "object",
"properties": {
"src": {
"description": "A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a\n`data:` URI with Base64-encoded image data.\n\nConsumers SHOULD take steps to ensure URLs serving icons are from the\nsame domain as the client/server or a trusted domain.\n\nConsumers SHOULD take appropriate precautions when consuming SVGs as they can contain\nexecutable JavaScript.",
"format": "uri",
"type": "string"
},
"mimeType": {
"description": "Optional MIME type override if the source MIME type is missing or generic.\nFor example: `\"image/png\"`, `\"image/jpeg\"`, or `\"image/svg+xml\"`.",
"type": "string"
},
"sizes": {
"description": "Optional array of strings that specify sizes at which the icon can be used.\nEach string should be in WxH format (e.g., `\"48x48\"`, `\"96x96\"`) or `\"any\"` for scalable formats like SVG.\n\nIf not provided, the client should assume that the icon can be used at any size.",
"type": "array",
"items": {
"type": "string"
}
},
"theme": {
"description": "Optional specifier for the theme this icon is designed for. `\"light\"` indicates\nthe icon is designed to be used with a light background, and `\"dark\"` indicates\nthe icon is designed to be used with a dark background.\n\nIf not provided, the client should assume the icon can be used with any theme.",
"enum": [
"dark",
"light"
],
"type": "string"
}
},
"required": [
"src"
]
},
"ClientCapabilities": {
"description": "Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.",
"type": "object",
"properties": {
"experimental": {
"description": "Experimental, non-standard capabilities that the client supports.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/JSONObject"
}
},
"roots": {
"description": "Present if the client supports listing roots.",
"type": "object",
"properties": {}
},
"sampling": {
"description": "Present if the client supports sampling from an LLM.",
"type": "object",
"properties": {
"context": {
"description": "Whether the client supports context inclusion via `includeContext` parameter.\nIf not declared, servers SHOULD only use `includeContext: \"none\"` (or omit it).",
"$ref": "#/$defs/JSONObject"
},
"tools": {
"description": "Whether the client supports tool use via `tools` and `toolChoice` parameters.",
"$ref": "#/$defs/JSONObject"
}
}
},
"elicitation": {
"description": "Present if the client supports elicitation from the server.",
"type": "object",
"properties": {
"form": {
"$ref": "#/$defs/JSONObject"
},
"url": {
"$ref": "#/$defs/JSONObject"
}
}
},
"extensions": {
"description": "Optional MCP extensions that the client supports. Keys are extension identifiers\n(e.g., \"io.modelcontextprotocol/oauth-client-credentials\"), and values are\nper-extension settings objects. An empty object indicates support with no settings.\n\nKeys MUST follow the {@link MetaObject`_meta` key naming rules}, with a\nmandatory prefix.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/JSONObject"
}
}
}
},
"JSONValue": {
"anyOf": [
{
"$ref": "#/$defs/JSONObject"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/JSONValue"
}
},
{
"type": [
"null",
"string",
"integer",
"boolean"
]
}
]
},
"JSONObject": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/JSONValue"
}
},
"RequestId": {
"description": "A uniquely identifying ID for a request in JSON-RPC.",
"type": [
"string",
"integer"
]
},
"ResultMetaObject": {
"description": "Extends {@link MetaObject} with additional result-specific fields. All key naming rules from `MetaObject` apply.",
"type": "object",
"properties": {
"io.modelcontextprotocol/serverInfo": {
"description": "Identifies the server software producing the response. Servers SHOULD\ninclude this field on every response unless specifically configured not\nto do so.\n\nThe {@link Implementation} schema requires `name` and `version`; other\nfields are optional.\n\nThe value is self-reported by the server and is not verified by the\nprotocol. It is intended for display, logging, and debugging. Clients\nSHOULD NOT use it to change their behavior, and SHOULD NOT rely on it for\nsecurity decisions.",
"$ref": "#/$defs/Implementation"
}
}
},
"Resource": {
"description": "A known resource that the server is capable of reading.",
"type": "object",
"properties": {
"uri": {
"description": "The URI of this resource.",
"format": "uri",
"type": "string"
},
"description": {
"description": "A description of what this resource represents.\n\nThis can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a \"hint\" to the model.",
"type": "string"
},
"mimeType": {
"description": "The MIME type of this resource, if known.",
"type": "string"
},
"annotations": {
"description": "Optional annotations for the client.",
"$ref": "#/$defs/Annotations"
},
"size": {
"description": "The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.\n\nThis can be used by Hosts to display file sizes and estimate context window usage.",
"type": "integer"
},
"_meta": {
"description": "Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.\n\nCertain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions.\n\nValid keys have two segments:\n\n**Prefix:**\n- Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).\n- Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).\n- Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).\n- Any prefix where the second label is `modelcontextprotocol` or `mcp` is **reserved** for MCP use. For example: `io.modelcontextprotocol/`, `dev.mcp/`, `org.modelcontextprotocol.api/`, and `com.mcp.tools/` are all reserved. However, `com.example.mcp/` is NOT reserved, as the second label is `example`.\n\n**Name:**\n- Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).\n- Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).",
"$ref": "#/$defs/MetaObject"
},
"name": {
"description": "Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).",
"type": "string"
},
"title": {
"description": "Intended for UI and end-user contexts — optimized to be human-readable and easily understood,\neven by those unfamiliar with domain-specific terminology.\n\nIf not provided, the name should be used for display (except for {@link Tool},\nwhere `annotations.title` should be given precedence over using `name`,\nif present).",
"type": "string"
},
"icons": {
"description": "Optional set of sized icons that the client can display in a user interface.\n\nClients that support rendering icons MUST support at least the following MIME types:\n- `image/png` - PNG images (safe, universal compatibility)\n- `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)\n\nClients that support rendering icons SHOULD also support:\n- `image/svg+xml` - SVG images (scalable but requires security precautions)\n- `image/webp` - WebP images (modern, efficient format)",
"type": "array",
"items": {
"$ref": "#/$defs/Icon"
}
}
},
"required": [
"name",
"uri"
]
},
"Annotations": {
"description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",
"type": "object",
"properties": {
"audience": {
"description": "Describes who the intended audience of this object or data is.\n\nIt can include multiple entries to indicate content useful for multiple audiences (e.g., `[\"user\", \"assistant\"]`).",
"type": "array",
"items": {
"$ref": "#/$defs/Role"
}
},
"priority": {
"description": "Describes how important this data is for operating the server.\n\nA value of 1 means \"most important,\" and indicates that the data is\neffectively required, while 0 means \"least important,\" and indicates that\nthe data is entirely optional.",
"type": "number",
"minimum": 0,
"maximum": 1
},
"lastModified": {
"description": "The moment the resource was last modified, as an ISO 8601 formatted string.\n\nShould be an ISO 8601 formatted string (e.g., \"2025-01-12T15:00:58Z\").\n\nExamples: last activity timestamp in an open file, timestamp when the resource\nwas attached, etc.",
"type": "string"
}
}
},
"Role": {
"description": "The sender or recipient of messages and data in a conversation.",
"enum": [
"assistant",
"user"
],
"type": "string"
},
"ReadResourceRequestParams": {
"description": "Parameters for a `resources/read` request.",
"type": "object",
"properties": {
"uri": {
"description": "The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.",
"format": "uri",
"type": "string"
},
"_meta": {
"$ref": "#/$defs/RequestMetaObject"
},
"inputResponses": {
"description": "A map of client responses to server-initiated requests.\nKeys correspond to the keys in the {@link InputRequests} map;\nvalues are the client's result for each request.",
"$ref": "#/$defs/InputResponses"
},
"requestState": {
"type": "string"
}
},
"required": [
"_meta",
"uri"
]
},
"InputResponses": {
"description": "A map of client responses to server-initiated requests.\nKeys correspond to the keys in the {@link InputRequests} map;\nvalues are the client's result for each request.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/InputResponse"
}
},
"InputResponse": {
"anyOf": [
{
"$ref": "#/$defs/CreateMessageResult"
},
{
"$ref": "#/$defs/ListRootsResult"
},
{
"$ref": "#/$defs/ElicitResult"
}
]
},
"CreateMessageResult": {
"description": "The result returned by the client for a {@link CreateMessageRequestsampling/createMessage} request.\nThe client should inform the user before returning the sampled message, to allow them\nto inspect the response (human in the loop) and decide whether to allow the server to see it.",
"type": "object",
"properties": {
"model": {
"description": "The name of the model that generated the message.",
"type": "string"
},
"stopReason": {
"description": "The reason why sampling stopped, if known.\n\nStandard values:\n- `\"endTurn\"`: Natural end of the assistant's turn\n- `\"stopSequence\"`: A stop sequence was encountered\n- `\"maxTokens\"`: Maximum token limit was reached\n- `\"toolUse\"`: The model wants to use one or more tools\n\nThis field is an open string to allow for provider-specific stop reasons.",
"type": "string"
},
"role": {
"$ref": "#/$defs/Role"
},
"content": {
"anyOf": [
{
"$ref": "#/$defs/TextContent"
},
{
"$ref": "#/$defs/ImageContent"
},
{
"$ref": "#/$defs/AudioContent"
},
{
"$ref": "#/$defs/ToolUseContent"
},
{
"$ref": "#/$defs/ToolResultContent"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/SamplingMessageContentBlock"
}
}
]
},
"_meta": {
"description": "Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.\n\nCertain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions.\n\nValid keys have two segments:\n\n**Prefix:**\n- Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).\n- Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).\n- Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).\n- Any prefix where the second label is `modelcontextprotocol` or `mcp` is **reserved** for MCP use. For example: `io.modelcontextprotocol/`, `dev.mcp/`, `org.modelcontextprotocol.api/`, and `com.mcp.tools/` are all reserved. However, `com.example.mcp/` is NOT reserved, as the second label is `example`.\n\n**Name:**\n- Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).\n- Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).",
"$ref": "#/$defs/MetaObject"
}
},
"required": [
"content",
"model",
"role"
]
},
"TextContent": {
"description": "Text provided to or from an LLM.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"description": "The text content of the message.",
"type": "string"
},
"annotations": {
"description": "Optional annotations for the client.",
"$ref": "#/$defs/Annotations"
},
"_meta": {
"description": "Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.\n\nCertain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions.\n\nValid keys have two segments:\n\n**Prefix:**\n- Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).\n- Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).\n- Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).\n- Any prefix where the second label is `modelcontextprotocol` or `mcp` is **reserved** for MCP use. For example: `io.modelcontextprotocol/`, `dev.mcp/`, `org.modelcontextprotocol.api/`, and `com.mcp.tools/` are all reserved. However, `com.example.mcp/` is NOT reserved, as the second label is `example`.\n\n**Name:**\n- Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).\n- Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).",
"$ref": "#/$defs/MetaObject"
}
},
"required": [
"text",
"type"
]
},
"ImageContent": {
"description": "An image provided to or from an LLM.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "image"
},
"data": {
"description": "The base64-encoded image data.",
"format": "byte",
"type": "string"
},
"mimeType": {
"description": "The MIME type of the image. Different providers may support different image types.",
"type": "string"
},
"annotations": {
"description": "Optional annotations for the client.",
"$ref": "#/$defs/Annotations"
},
"_meta": {
"description": "Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.\n\nCertain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions.\n\nValid keys have two segments:\n\n**Prefix:**\n- Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).\n- Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).\n- Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).\n- Any prefix where the second label is `modelcontextprotocol` or `mcp` is **reserved** for MCP use. For example: `io.modelcontextprotocol/`, `dev.mcp/`, `org.modelcontextprotocol.api/`, and `com.mcp.tools/` are all reserved. However, `com.example.mcp/` is NOT reserved, as the second label is `example`.\n\n**Name:**\n- Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).\n- Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).",
"$ref": "#/$defs/MetaObject"
}
},
"required": [
"data",
"mimeType",
"type"
]
},
"AudioContent": {
"description": "Audio provided to or from an LLM.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "audio"
},
"data": {
"description": "The base64-encoded audio data.",
"format": "byte",
"type": "string"
},
"mimeType": {
"description": "The MIME type of the audio. Different providers may support different audio types.",
"type": "string"
},
"annotations": {
"description": "Optional annotations for the client.",
"$ref": "#/$defs/Annotations"
},
"_meta": {
"description": "Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.\n\nCertain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions.\n\nValid keys have two segments:\n\n**Prefix:**\n- Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).\n- Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).\n- Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).\n- Any prefix where the second label is `modelcontextprotocol` or `mcp` is **reserved** for MCP use. For example: `io.modelcontextprotocol/`, `dev.mcp/`, `org.modelcontextprotocol.api/`, and `com.mcp.tools/` are all reserved. However, `com.example.mcp/` is NOT reserved, as the second label is `example`.\n\n**Name:**\n- Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).\n- Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).",
"$ref": "#/$defs/MetaObject"
}
},
"required": [
"data",
"mimeType",
"type"
]
},
"ToolUseContent": {
"description": "A request from the assistant to call a tool.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "tool_use"
},
"id": {
"description": "A unique identifier for this tool use.\n\nThis ID is used to match tool results to their corresponding tool uses.",
"type": "string"
},
"name": {
"description": "The name of the tool to call.",
"type": "string"
},
"input": {
"description": "The arguments to pass to the tool, conforming to the tool's input schema.",
"type": "object",
"additionalProperties": {}
},
"_meta": {
"description": "Optional metadata about the tool use. Clients SHOULD preserve this field when\nincluding tool uses in subsequent sampling requests to enable caching optimizations.",
"$ref": "#/$defs/MetaObject"
}
},
"required": [
"id",
"input",
"name",
"type"
]
},
"ToolResultContent": {
"description": "The result of a tool use, provided by the user back to the assistant.",
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "tool_result"
},
"toolUseId": {
"description": "The ID of the tool use this result corresponds to.\n\nThis MUST match the ID from a previous {@link ToolUseContent}.",
"type": "string"
},
"content": {
"description": "The unstructured result content of the tool use.\n\nThis has the same format as {@link CallToolResult.content} and can include text, images,\naudio, resource links, and embedded resources.",
"type": "array",
"items": {
"$ref": "#/$defs/ContentBlock"
}
},
"structuredContent": {
"description": "An optional structured result value.\n\nThis can be any JSON value (object, array, string, number, boolean, or null).\nIf the tool defined an {@link Tool.outputSchema}, this SHOULD conform to that schema."
},