@jangmanj/mcp-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/auth/client-credentials.d.ts +54 -0
  4. package/dist/auth/client-credentials.d.ts.map +1 -0
  5. package/dist/auth/client-credentials.js +242 -0
  6. package/dist/auth/client-credentials.js.map +1 -0
  7. package/dist/auth/discovery.d.ts +27 -0
  8. package/dist/auth/discovery.d.ts.map +1 -0
  9. package/dist/auth/discovery.js +114 -0
  10. package/dist/auth/discovery.js.map +1 -0
  11. package/dist/auth/index.d.ts +10 -0
  12. package/dist/auth/index.d.ts.map +1 -0
  13. package/dist/auth/index.js +6 -0
  14. package/dist/auth/index.js.map +1 -0
  15. package/dist/auth/node-ports.d.ts +9 -0
  16. package/dist/auth/node-ports.d.ts.map +1 -0
  17. package/dist/auth/node-ports.js +68 -0
  18. package/dist/auth/node-ports.js.map +1 -0
  19. package/dist/auth/protocol.d.ts +13 -0
  20. package/dist/auth/protocol.d.ts.map +1 -0
  21. package/dist/auth/protocol.js +40 -0
  22. package/dist/auth/protocol.js.map +1 -0
  23. package/dist/auth/provider.d.ts +113 -0
  24. package/dist/auth/provider.d.ts.map +1 -0
  25. package/dist/auth/provider.js +407 -0
  26. package/dist/auth/provider.js.map +1 -0
  27. package/dist/auth/safe-fetch.d.ts +15 -0
  28. package/dist/auth/safe-fetch.d.ts.map +1 -0
  29. package/dist/auth/safe-fetch.js +131 -0
  30. package/dist/auth/safe-fetch.js.map +1 -0
  31. package/dist/core/auth-types.d.ts +37 -0
  32. package/dist/core/auth-types.d.ts.map +1 -0
  33. package/dist/core/auth-types.js +12 -0
  34. package/dist/core/auth-types.js.map +1 -0
  35. package/dist/core/bearer-challenge.d.ts +4 -0
  36. package/dist/core/bearer-challenge.d.ts.map +1 -0
  37. package/dist/core/bearer-challenge.js +64 -0
  38. package/dist/core/bearer-challenge.js.map +1 -0
  39. package/dist/core/cancel.d.ts +71 -0
  40. package/dist/core/cancel.d.ts.map +1 -0
  41. package/dist/core/cancel.js +178 -0
  42. package/dist/core/cancel.js.map +1 -0
  43. package/dist/core/extension.d.ts +34 -0
  44. package/dist/core/extension.d.ts.map +1 -0
  45. package/dist/core/extension.js +146 -0
  46. package/dist/core/extension.js.map +1 -0
  47. package/dist/core/index.d.ts +67 -0
  48. package/dist/core/index.d.ts.map +1 -0
  49. package/dist/core/index.js +92 -0
  50. package/dist/core/index.js.map +1 -0
  51. package/dist/core/jsonrpc.d.ts +50 -0
  52. package/dist/core/jsonrpc.d.ts.map +1 -0
  53. package/dist/core/jsonrpc.js +81 -0
  54. package/dist/core/jsonrpc.js.map +1 -0
  55. package/dist/core/lifecycle.d.ts +129 -0
  56. package/dist/core/lifecycle.d.ts.map +1 -0
  57. package/dist/core/lifecycle.js +252 -0
  58. package/dist/core/lifecycle.js.map +1 -0
  59. package/dist/core/outcome.d.ts +99 -0
  60. package/dist/core/outcome.d.ts.map +1 -0
  61. package/dist/core/outcome.js +33 -0
  62. package/dist/core/outcome.js.map +1 -0
  63. package/dist/core/ports.d.ts +145 -0
  64. package/dist/core/ports.d.ts.map +1 -0
  65. package/dist/core/ports.js +68 -0
  66. package/dist/core/ports.js.map +1 -0
  67. package/dist/core/progress.d.ts +82 -0
  68. package/dist/core/progress.d.ts.map +1 -0
  69. package/dist/core/progress.js +206 -0
  70. package/dist/core/progress.js.map +1 -0
  71. package/dist/core/request.d.ts +109 -0
  72. package/dist/core/request.d.ts.map +1 -0
  73. package/dist/core/request.js +579 -0
  74. package/dist/core/request.js.map +1 -0
  75. package/dist/core/schema/index.d.ts +2 -0
  76. package/dist/core/schema/index.d.ts.map +1 -0
  77. package/dist/core/schema/index.js +2 -0
  78. package/dist/core/schema/index.js.map +1 -0
  79. package/dist/core/schema/types.d.ts +4150 -0
  80. package/dist/core/schema/types.d.ts.map +1 -0
  81. package/dist/core/schema/types.js +7 -0
  82. package/dist/core/schema/types.js.map +1 -0
  83. package/dist/core/telemetry.d.ts +26 -0
  84. package/dist/core/telemetry.d.ts.map +1 -0
  85. package/dist/core/telemetry.js +38 -0
  86. package/dist/core/telemetry.js.map +1 -0
  87. package/dist/ext-events/index.d.ts +80 -0
  88. package/dist/ext-events/index.d.ts.map +1 -0
  89. package/dist/ext-events/index.js +219 -0
  90. package/dist/ext-events/index.js.map +1 -0
  91. package/dist/ext-events/model.d.ts +11 -0
  92. package/dist/ext-events/model.d.ts.map +1 -0
  93. package/dist/ext-events/model.js +7 -0
  94. package/dist/ext-events/model.js.map +1 -0
  95. package/dist/ext-events/push.d.ts +19 -0
  96. package/dist/ext-events/push.d.ts.map +1 -0
  97. package/dist/ext-events/push.js +102 -0
  98. package/dist/ext-events/push.js.map +1 -0
  99. package/dist/ext-events/stream.d.ts +7 -0
  100. package/dist/ext-events/stream.d.ts.map +1 -0
  101. package/dist/ext-events/stream.js +61 -0
  102. package/dist/ext-events/stream.js.map +1 -0
  103. package/dist/ext-server-cards/index.d.ts +80 -0
  104. package/dist/ext-server-cards/index.d.ts.map +1 -0
  105. package/dist/ext-server-cards/index.js +199 -0
  106. package/dist/ext-server-cards/index.js.map +1 -0
  107. package/dist/ext-skills/cache.d.ts +21 -0
  108. package/dist/ext-skills/cache.d.ts.map +1 -0
  109. package/dist/ext-skills/cache.js +102 -0
  110. package/dist/ext-skills/cache.js.map +1 -0
  111. package/dist/ext-skills/client.d.ts +83 -0
  112. package/dist/ext-skills/client.d.ts.map +1 -0
  113. package/dist/ext-skills/client.js +293 -0
  114. package/dist/ext-skills/client.js.map +1 -0
  115. package/dist/ext-skills/extension.d.ts +17 -0
  116. package/dist/ext-skills/extension.d.ts.map +1 -0
  117. package/dist/ext-skills/extension.js +30 -0
  118. package/dist/ext-skills/extension.js.map +1 -0
  119. package/dist/ext-skills/index.d.ts +5 -0
  120. package/dist/ext-skills/index.d.ts.map +1 -0
  121. package/dist/ext-skills/index.js +5 -0
  122. package/dist/ext-skills/index.js.map +1 -0
  123. package/dist/ext-skills/verify.d.ts +58 -0
  124. package/dist/ext-skills/verify.d.ts.map +1 -0
  125. package/dist/ext-skills/verify.js +169 -0
  126. package/dist/ext-skills/verify.js.map +1 -0
  127. package/dist/index.d.ts +1 -0
  128. package/dist/index.js +1 -0
  129. package/dist/mrtr-cache/cache.d.ts +52 -0
  130. package/dist/mrtr-cache/cache.d.ts.map +1 -0
  131. package/dist/mrtr-cache/cache.js +296 -0
  132. package/dist/mrtr-cache/cache.js.map +1 -0
  133. package/dist/mrtr-cache/client.d.ts +25 -0
  134. package/dist/mrtr-cache/client.d.ts.map +1 -0
  135. package/dist/mrtr-cache/client.js +45 -0
  136. package/dist/mrtr-cache/client.js.map +1 -0
  137. package/dist/mrtr-cache/common.d.ts +11 -0
  138. package/dist/mrtr-cache/common.d.ts.map +1 -0
  139. package/dist/mrtr-cache/common.js +10 -0
  140. package/dist/mrtr-cache/common.js.map +1 -0
  141. package/dist/mrtr-cache/elicitation.d.ts +43 -0
  142. package/dist/mrtr-cache/elicitation.d.ts.map +1 -0
  143. package/dist/mrtr-cache/elicitation.js +222 -0
  144. package/dist/mrtr-cache/elicitation.js.map +1 -0
  145. package/dist/mrtr-cache/index.d.ts +10 -0
  146. package/dist/mrtr-cache/index.d.ts.map +1 -0
  147. package/dist/mrtr-cache/index.js +9 -0
  148. package/dist/mrtr-cache/index.js.map +1 -0
  149. package/dist/mrtr-cache/mrtr.d.ts +38 -0
  150. package/dist/mrtr-cache/mrtr.d.ts.map +1 -0
  151. package/dist/mrtr-cache/mrtr.js +251 -0
  152. package/dist/mrtr-cache/mrtr.js.map +1 -0
  153. package/dist/mrtr-cache/refresh.d.ts +9 -0
  154. package/dist/mrtr-cache/refresh.d.ts.map +1 -0
  155. package/dist/mrtr-cache/refresh.js +31 -0
  156. package/dist/mrtr-cache/refresh.js.map +1 -0
  157. package/dist/mrtr-cache/stream.d.ts +6 -0
  158. package/dist/mrtr-cache/stream.d.ts.map +1 -0
  159. package/dist/mrtr-cache/stream.js +19 -0
  160. package/dist/mrtr-cache/stream.js.map +1 -0
  161. package/dist/mrtr-cache/subscriptions.d.ts +97 -0
  162. package/dist/mrtr-cache/subscriptions.d.ts.map +1 -0
  163. package/dist/mrtr-cache/subscriptions.js +289 -0
  164. package/dist/mrtr-cache/subscriptions.js.map +1 -0
  165. package/dist/mrtr-cache/tasks.d.ts +104 -0
  166. package/dist/mrtr-cache/tasks.d.ts.map +1 -0
  167. package/dist/mrtr-cache/tasks.js +445 -0
  168. package/dist/mrtr-cache/tasks.js.map +1 -0
  169. package/dist/ops/common.d.ts +19 -0
  170. package/dist/ops/common.d.ts.map +1 -0
  171. package/dist/ops/common.js +40 -0
  172. package/dist/ops/common.js.map +1 -0
  173. package/dist/ops/completion.d.ts +45 -0
  174. package/dist/ops/completion.d.ts.map +1 -0
  175. package/dist/ops/completion.js +66 -0
  176. package/dist/ops/completion.js.map +1 -0
  177. package/dist/ops/content.d.ts +41 -0
  178. package/dist/ops/content.d.ts.map +1 -0
  179. package/dist/ops/content.js +118 -0
  180. package/dist/ops/content.js.map +1 -0
  181. package/dist/ops/icons.d.ts +30 -0
  182. package/dist/ops/icons.d.ts.map +1 -0
  183. package/dist/ops/icons.js +83 -0
  184. package/dist/ops/icons.js.map +1 -0
  185. package/dist/ops/index.d.ts +31 -0
  186. package/dist/ops/index.d.ts.map +1 -0
  187. package/dist/ops/index.js +29 -0
  188. package/dist/ops/index.js.map +1 -0
  189. package/dist/ops/pagination.d.ts +33 -0
  190. package/dist/ops/pagination.d.ts.map +1 -0
  191. package/dist/ops/pagination.js +66 -0
  192. package/dist/ops/pagination.js.map +1 -0
  193. package/dist/ops/prompts.d.ts +33 -0
  194. package/dist/ops/prompts.d.ts.map +1 -0
  195. package/dist/ops/prompts.js +69 -0
  196. package/dist/ops/prompts.js.map +1 -0
  197. package/dist/ops/resources.d.ts +43 -0
  198. package/dist/ops/resources.d.ts.map +1 -0
  199. package/dist/ops/resources.js +105 -0
  200. package/dist/ops/resources.js.map +1 -0
  201. package/dist/ops/schema.d.ts +40 -0
  202. package/dist/ops/schema.d.ts.map +1 -0
  203. package/dist/ops/schema.js +164 -0
  204. package/dist/ops/schema.js.map +1 -0
  205. package/dist/ops/tools.d.ts +89 -0
  206. package/dist/ops/tools.d.ts.map +1 -0
  207. package/dist/ops/tools.js +170 -0
  208. package/dist/ops/tools.js.map +1 -0
  209. package/dist/ops/uri-template.d.ts +4 -0
  210. package/dist/ops/uri-template.d.ts.map +1 -0
  211. package/dist/ops/uri-template.js +102 -0
  212. package/dist/ops/uri-template.js.map +1 -0
  213. package/dist/telemetry-otel/index.d.ts +65 -0
  214. package/dist/telemetry-otel/index.d.ts.map +1 -0
  215. package/dist/telemetry-otel/index.js +197 -0
  216. package/dist/telemetry-otel/index.js.map +1 -0
  217. package/dist/transport-http/headers.d.ts +25 -0
  218. package/dist/transport-http/headers.d.ts.map +1 -0
  219. package/dist/transport-http/headers.js +141 -0
  220. package/dist/transport-http/headers.js.map +1 -0
  221. package/dist/transport-http/index.d.ts +4 -0
  222. package/dist/transport-http/index.d.ts.map +1 -0
  223. package/dist/transport-http/index.js +4 -0
  224. package/dist/transport-http/index.js.map +1 -0
  225. package/dist/transport-http/sse.d.ts +34 -0
  226. package/dist/transport-http/sse.d.ts.map +1 -0
  227. package/dist/transport-http/sse.js +153 -0
  228. package/dist/transport-http/sse.js.map +1 -0
  229. package/dist/transport-http/transport.d.ts +67 -0
  230. package/dist/transport-http/transport.d.ts.map +1 -0
  231. package/dist/transport-http/transport.js +855 -0
  232. package/dist/transport-http/transport.js.map +1 -0
  233. package/dist/transport-stdio/framing.d.ts +51 -0
  234. package/dist/transport-stdio/framing.d.ts.map +1 -0
  235. package/dist/transport-stdio/framing.js +155 -0
  236. package/dist/transport-stdio/framing.js.map +1 -0
  237. package/dist/transport-stdio/index.d.ts +5 -0
  238. package/dist/transport-stdio/index.d.ts.map +1 -0
  239. package/dist/transport-stdio/index.js +5 -0
  240. package/dist/transport-stdio/index.js.map +1 -0
  241. package/dist/transport-stdio/stderr-ring.d.ts +28 -0
  242. package/dist/transport-stdio/stderr-ring.d.ts.map +1 -0
  243. package/dist/transport-stdio/stderr-ring.js +106 -0
  244. package/dist/transport-stdio/stderr-ring.js.map +1 -0
  245. package/dist/transport-stdio/transport.d.ts +112 -0
  246. package/dist/transport-stdio/transport.d.ts.map +1 -0
  247. package/dist/transport-stdio/transport.js +744 -0
  248. package/dist/transport-stdio/transport.js.map +1 -0
  249. package/dist/transport-stdio/write-queue.d.ts +39 -0
  250. package/dist/transport-stdio/write-queue.d.ts.map +1 -0
  251. package/dist/transport-stdio/write-queue.js +148 -0
  252. package/dist/transport-stdio/write-queue.js.map +1 -0
  253. package/package.json +98 -0
@@ -0,0 +1,4150 @@
1
+ /**
2
+ * AUTO-GENERATED from packages/core/src/schema/schema.json (MCP 2026-07-28, tag 5f5440bb).
3
+ * Do not edit manually; regenerate with `npm run gen:schema`.
4
+ */
5
+ /**
6
+ * The sender or recipient of messages and data in a conversation.
7
+ *
8
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
9
+ * via the `definition` "Role".
10
+ */
11
+ export type Role = "assistant" | "user";
12
+ /**
13
+ * A uniquely identifying ID for a request in JSON-RPC.
14
+ *
15
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
16
+ * via the `definition` "RequestId".
17
+ */
18
+ export type RequestId = string | number;
19
+ /**
20
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
21
+ * via the `definition` "JSONValue".
22
+ */
23
+ export type JSONValue = JSONObject | JSONValue[] | (string | number | boolean);
24
+ /**
25
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
26
+ * via the `definition` "InputResponse".
27
+ */
28
+ export type InputResponse = CreateMessageResult | ListRootsResult | ElicitResult;
29
+ /**
30
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
31
+ * via the `definition` "ContentBlock".
32
+ */
33
+ export type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;
34
+ /**
35
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
36
+ * via the `definition` "SamplingMessageContentBlock".
37
+ */
38
+ export type SamplingMessageContentBlock = TextContent | ImageContent | AudioContent | ToolUseContent | ToolResultContent;
39
+ /**
40
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
41
+ * via the `definition` "InputRequest".
42
+ */
43
+ export type InputRequest = CreateMessageRequest | ListRootsRequest | ElicitRequest;
44
+ /**
45
+ * The parameters for a request to elicit additional information from the user via the client.
46
+ *
47
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
48
+ * via the `definition` "ElicitRequestParams".
49
+ */
50
+ export type ElicitRequestParams = ElicitRequestFormParams | ElicitRequestURLParams;
51
+ /**
52
+ * Restricted schema definitions that only allow primitive types
53
+ * without nested objects or arrays.
54
+ *
55
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
56
+ * via the `definition` "PrimitiveSchemaDefinition".
57
+ */
58
+ export type PrimitiveSchemaDefinition = StringSchema | NumberSchema | BooleanSchema | UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema | UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema | LegacyTitledEnumSchema;
59
+ /**
60
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
61
+ * via the `definition` "ClientRequest".
62
+ */
63
+ export type ClientRequest = DiscoverRequest | ListResourcesRequest | ListResourceTemplatesRequest | ReadResourceRequest | SubscriptionsListenRequest | ListPromptsRequest | GetPromptRequest | ListToolsRequest | CallToolRequest | CompleteRequest;
64
+ /**
65
+ * An opaque token used to represent a cursor for pagination.
66
+ *
67
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
68
+ * via the `definition` "Cursor".
69
+ */
70
+ export type Cursor = string;
71
+ /**
72
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
73
+ * via the `definition` "EnumSchema".
74
+ */
75
+ export type EnumSchema = UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema | UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema | LegacyTitledEnumSchema;
76
+ /**
77
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
78
+ * via the `definition` "JSONArray".
79
+ */
80
+ export type JSONArray = JSONValue[];
81
+ /**
82
+ * Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
83
+ *
84
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
85
+ * via the `definition` "JSONRPCMessage".
86
+ */
87
+ export type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResultResponse | JSONRPCErrorResponse;
88
+ /**
89
+ * A response to a request, containing either the result or error.
90
+ *
91
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
92
+ * via the `definition` "JSONRPCResponse".
93
+ */
94
+ export type JSONRPCResponse = JSONRPCResultResponse | JSONRPCErrorResponse;
95
+ /**
96
+ * The severity of a log message.
97
+ *
98
+ * These map to syslog message severities, as specified in RFC-5424:
99
+ * https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
100
+ *
101
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
102
+ * via the `definition` "LoggingLevel".
103
+ */
104
+ export type LoggingLevel = "alert" | "critical" | "debug" | "emergency" | "error" | "info" | "notice" | "warning";
105
+ /**
106
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
107
+ * via the `definition` "MultiSelectEnumSchema".
108
+ */
109
+ export type MultiSelectEnumSchema = UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema;
110
+ /**
111
+ * A progress token, used to associate progress notifications with the original request.
112
+ *
113
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
114
+ * via the `definition` "ProgressToken".
115
+ */
116
+ export type ProgressToken = string | number;
117
+ /**
118
+ * Indicates the type of a {@link Result} object, allowing the client to
119
+ * determine how to parse the response.
120
+ *
121
+ * complete - the request completed successfully and the result contains the final content.
122
+ * input_required - the request requires additional input and the result contains an {@link InputRequiredResult} object with instructions for the client to provide additional input before retrying the original request.
123
+ *
124
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
125
+ * via the `definition` "ResultType".
126
+ */
127
+ export type ResultType = string;
128
+ /**
129
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
130
+ * via the `definition` "ServerNotification".
131
+ */
132
+ export type ServerNotification = CancelledNotification | ProgressNotification | ResourceListChangedNotification | SubscriptionsAcknowledgedNotification | ResourceUpdatedNotification | PromptListChangedNotification | ToolListChangedNotification | LoggingMessageNotification;
133
+ /**
134
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
135
+ * via the `definition` "ServerResult".
136
+ */
137
+ export type ServerResult = Result | InputRequiredResult | DiscoverResult | ListResourcesResult | ListResourceTemplatesResult | ReadResourceResult | SubscriptionsListenResult | ListPromptsResult | GetPromptResult | ListToolsResult | CallToolResult | CompleteResult;
138
+ /**
139
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
140
+ * via the `definition` "SingleSelectEnumSchema".
141
+ */
142
+ export type SingleSelectEnumSchema = UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema;
143
+ export interface McpSchema20260728 {
144
+ Annotations?: Annotations;
145
+ AudioContent?: AudioContent;
146
+ BaseMetadata?: BaseMetadata;
147
+ BlobResourceContents?: BlobResourceContents;
148
+ BooleanSchema?: BooleanSchema;
149
+ CacheableResult?: CacheableResult;
150
+ CallToolRequest?: CallToolRequest;
151
+ CallToolRequestParams?: CallToolRequestParams;
152
+ CallToolResult?: CallToolResult;
153
+ CallToolResultResponse?: CallToolResultResponse;
154
+ CancelledNotification?: CancelledNotification;
155
+ CancelledNotificationParams?: CancelledNotificationParams;
156
+ ClientCapabilities?: ClientCapabilities1;
157
+ ClientNotification?: ClientNotification;
158
+ ClientRequest?: ClientRequest;
159
+ ClientResult?: ClientResult;
160
+ CompleteRequest?: CompleteRequest;
161
+ CompleteRequestParams?: CompleteRequestParams;
162
+ CompleteResult?: CompleteResult;
163
+ CompleteResultResponse?: CompleteResultResponse;
164
+ ContentBlock?: ContentBlock;
165
+ CreateMessageRequest?: CreateMessageRequest;
166
+ CreateMessageRequestParams?: CreateMessageRequestParams;
167
+ CreateMessageResult?: CreateMessageResult;
168
+ Cursor?: Cursor;
169
+ DiscoverRequest?: DiscoverRequest;
170
+ DiscoverResult?: DiscoverResult;
171
+ DiscoverResultResponse?: DiscoverResultResponse;
172
+ ElicitRequest?: ElicitRequest;
173
+ ElicitRequestFormParams?: ElicitRequestFormParams;
174
+ ElicitRequestParams?: ElicitRequestParams;
175
+ ElicitRequestURLParams?: ElicitRequestURLParams;
176
+ ElicitResult?: ElicitResult;
177
+ EmbeddedResource?: EmbeddedResource;
178
+ EmptyResult?: EmptyResult;
179
+ EnumSchema?: EnumSchema;
180
+ Error?: Error;
181
+ GetPromptRequest?: GetPromptRequest;
182
+ GetPromptRequestParams?: GetPromptRequestParams;
183
+ GetPromptResult?: GetPromptResult;
184
+ GetPromptResultResponse?: GetPromptResultResponse;
185
+ HeaderMismatchError?: HeaderMismatchError;
186
+ Icon?: Icon;
187
+ Icons?: Icons;
188
+ ImageContent?: ImageContent;
189
+ Implementation?: Implementation2;
190
+ InputRequest?: InputRequest;
191
+ InputRequests?: InputRequests;
192
+ InputRequiredResult?: InputRequiredResult;
193
+ InputResponse?: InputResponse;
194
+ InputResponseRequestParams?: InputResponseRequestParams;
195
+ InputResponses?: InputResponses;
196
+ InternalError?: InternalError;
197
+ InvalidParamsError?: InvalidParamsError;
198
+ InvalidRequestError?: InvalidRequestError;
199
+ JSONArray?: JSONArray;
200
+ JSONObject?: JSONObject;
201
+ JSONRPCErrorResponse?: JSONRPCErrorResponse;
202
+ JSONRPCMessage?: JSONRPCMessage;
203
+ JSONRPCNotification?: JSONRPCNotification;
204
+ JSONRPCRequest?: JSONRPCRequest;
205
+ JSONRPCResponse?: JSONRPCResponse;
206
+ JSONRPCResultResponse?: JSONRPCResultResponse;
207
+ JSONValue?: JSONValue;
208
+ LegacyTitledEnumSchema?: LegacyTitledEnumSchema;
209
+ ListPromptsRequest?: ListPromptsRequest;
210
+ ListPromptsResult?: ListPromptsResult;
211
+ ListPromptsResultResponse?: ListPromptsResultResponse;
212
+ ListResourceTemplatesRequest?: ListResourceTemplatesRequest;
213
+ ListResourceTemplatesResult?: ListResourceTemplatesResult;
214
+ ListResourceTemplatesResultResponse?: ListResourceTemplatesResultResponse;
215
+ ListResourcesRequest?: ListResourcesRequest;
216
+ ListResourcesResult?: ListResourcesResult;
217
+ ListResourcesResultResponse?: ListResourcesResultResponse;
218
+ ListRootsRequest?: ListRootsRequest;
219
+ ListRootsResult?: ListRootsResult;
220
+ ListToolsRequest?: ListToolsRequest;
221
+ ListToolsResult?: ListToolsResult;
222
+ ListToolsResultResponse?: ListToolsResultResponse;
223
+ LoggingLevel?: LoggingLevel;
224
+ LoggingMessageNotification?: LoggingMessageNotification;
225
+ LoggingMessageNotificationParams?: LoggingMessageNotificationParams;
226
+ MetaObject?: MetaObject;
227
+ MethodNotFoundError?: MethodNotFoundError;
228
+ MissingRequiredClientCapabilityError?: MissingRequiredClientCapabilityError;
229
+ ModelHint?: ModelHint;
230
+ ModelPreferences?: ModelPreferences1;
231
+ MultiSelectEnumSchema?: MultiSelectEnumSchema;
232
+ Notification?: Notification;
233
+ NotificationMetaObject?: NotificationMetaObject;
234
+ NotificationParams?: NotificationParams;
235
+ NumberSchema?: NumberSchema;
236
+ PaginatedRequest?: PaginatedRequest;
237
+ PaginatedRequestParams?: PaginatedRequestParams;
238
+ PaginatedResult?: PaginatedResult;
239
+ ParseError?: ParseError;
240
+ PrimitiveSchemaDefinition?: PrimitiveSchemaDefinition;
241
+ ProgressNotification?: ProgressNotification;
242
+ ProgressNotificationParams?: ProgressNotificationParams;
243
+ ProgressToken?: ProgressToken;
244
+ Prompt?: Prompt;
245
+ PromptArgument?: PromptArgument;
246
+ PromptListChangedNotification?: PromptListChangedNotification;
247
+ PromptMessage?: PromptMessage;
248
+ PromptReference?: PromptReference;
249
+ ReadResourceRequest?: ReadResourceRequest;
250
+ ReadResourceRequestParams?: ReadResourceRequestParams;
251
+ ReadResourceResult?: ReadResourceResult;
252
+ ReadResourceResultResponse?: ReadResourceResultResponse;
253
+ Request?: Request;
254
+ RequestId?: RequestId;
255
+ RequestMetaObject?: RequestMetaObject;
256
+ RequestParams?: RequestParams;
257
+ Resource?: Resource;
258
+ ResourceContents?: ResourceContents;
259
+ ResourceLink?: ResourceLink;
260
+ ResourceListChangedNotification?: ResourceListChangedNotification;
261
+ ResourceRequestParams?: ResourceRequestParams;
262
+ ResourceTemplate?: ResourceTemplate;
263
+ ResourceTemplateReference?: ResourceTemplateReference;
264
+ ResourceUpdatedNotification?: ResourceUpdatedNotification;
265
+ ResourceUpdatedNotificationParams?: ResourceUpdatedNotificationParams;
266
+ Result?: Result;
267
+ ResultMetaObject?: ResultMetaObject;
268
+ ResultType?: ResultType;
269
+ Role?: Role;
270
+ Root?: Root;
271
+ SamplingMessage?: SamplingMessage;
272
+ SamplingMessageContentBlock?: SamplingMessageContentBlock;
273
+ ServerCapabilities?: ServerCapabilities1;
274
+ ServerNotification?: ServerNotification;
275
+ ServerResult?: ServerResult;
276
+ SingleSelectEnumSchema?: SingleSelectEnumSchema;
277
+ StringSchema?: StringSchema;
278
+ SubscriptionFilter?: SubscriptionFilter2;
279
+ SubscriptionsAcknowledgedNotification?: SubscriptionsAcknowledgedNotification;
280
+ SubscriptionsAcknowledgedNotificationParams?: SubscriptionsAcknowledgedNotificationParams;
281
+ SubscriptionsListenRequest?: SubscriptionsListenRequest;
282
+ SubscriptionsListenRequestParams?: SubscriptionsListenRequestParams;
283
+ SubscriptionsListenResult?: SubscriptionsListenResult;
284
+ SubscriptionsListenResultMetaObject?: SubscriptionsListenResultMetaObject;
285
+ SubscriptionsListenResultResponse?: SubscriptionsListenResultResponse;
286
+ TextContent?: TextContent;
287
+ TextResourceContents?: TextResourceContents;
288
+ TitledMultiSelectEnumSchema?: TitledMultiSelectEnumSchema;
289
+ TitledSingleSelectEnumSchema?: TitledSingleSelectEnumSchema;
290
+ Tool?: Tool;
291
+ ToolAnnotations?: ToolAnnotations1;
292
+ ToolChoice?: ToolChoice1;
293
+ ToolListChangedNotification?: ToolListChangedNotification;
294
+ ToolResultContent?: ToolResultContent;
295
+ ToolUseContent?: ToolUseContent;
296
+ UnsupportedProtocolVersionError?: UnsupportedProtocolVersionError;
297
+ UntitledMultiSelectEnumSchema?: UntitledMultiSelectEnumSchema;
298
+ UntitledSingleSelectEnumSchema?: UntitledSingleSelectEnumSchema;
299
+ }
300
+ /**
301
+ * Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
302
+ *
303
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
304
+ * via the `definition` "Annotations".
305
+ */
306
+ export interface Annotations {
307
+ /**
308
+ * Describes who the intended audience of this object or data is.
309
+ *
310
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
311
+ */
312
+ audience?: Role[];
313
+ /**
314
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
315
+ *
316
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
317
+ *
318
+ * Examples: last activity timestamp in an open file, timestamp when the resource
319
+ * was attached, etc.
320
+ */
321
+ lastModified?: string;
322
+ /**
323
+ * Describes how important this data is for operating the server.
324
+ *
325
+ * A value of 1 means "most important," and indicates that the data is
326
+ * effectively required, while 0 means "least important," and indicates that
327
+ * the data is entirely optional.
328
+ */
329
+ priority?: number;
330
+ [k: string]: unknown | undefined;
331
+ }
332
+ /**
333
+ * Audio provided to or from an LLM.
334
+ *
335
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
336
+ * via the `definition` "AudioContent".
337
+ */
338
+ export interface AudioContent {
339
+ _meta?: MetaObject;
340
+ annotations?: Annotations1;
341
+ /**
342
+ * The base64-encoded audio data.
343
+ */
344
+ data: string;
345
+ /**
346
+ * The MIME type of the audio. Different providers may support different audio types.
347
+ */
348
+ mimeType: string;
349
+ type: "audio";
350
+ [k: string]: unknown | undefined;
351
+ }
352
+ /**
353
+ * Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.
354
+ *
355
+ * Certain 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.
356
+ *
357
+ * Valid keys have two segments:
358
+ *
359
+ * **Prefix:**
360
+ * - Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).
361
+ * - Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).
362
+ * - Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).
363
+ * - 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`.
364
+ *
365
+ * **Name:**
366
+ * - Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).
367
+ * - Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).
368
+ *
369
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
370
+ * via the `definition` "MetaObject".
371
+ */
372
+ export interface MetaObject {
373
+ [k: string]: unknown | undefined;
374
+ }
375
+ /**
376
+ * Optional annotations for the client.
377
+ */
378
+ export interface Annotations1 {
379
+ /**
380
+ * Describes who the intended audience of this object or data is.
381
+ *
382
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
383
+ */
384
+ audience?: Role[];
385
+ /**
386
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
387
+ *
388
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
389
+ *
390
+ * Examples: last activity timestamp in an open file, timestamp when the resource
391
+ * was attached, etc.
392
+ */
393
+ lastModified?: string;
394
+ /**
395
+ * Describes how important this data is for operating the server.
396
+ *
397
+ * A value of 1 means "most important," and indicates that the data is
398
+ * effectively required, while 0 means "least important," and indicates that
399
+ * the data is entirely optional.
400
+ */
401
+ priority?: number;
402
+ [k: string]: unknown | undefined;
403
+ }
404
+ /**
405
+ * Base interface for metadata with name (identifier) and title (display name) properties.
406
+ *
407
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
408
+ * via the `definition` "BaseMetadata".
409
+ */
410
+ export interface BaseMetadata {
411
+ /**
412
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
413
+ */
414
+ name: string;
415
+ /**
416
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
417
+ * even by those unfamiliar with domain-specific terminology.
418
+ *
419
+ * If not provided, the name should be used for display (except for {@link Tool},
420
+ * where `annotations.title` should be given precedence over using `name`,
421
+ * if present).
422
+ */
423
+ title?: string;
424
+ [k: string]: unknown | undefined;
425
+ }
426
+ /**
427
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
428
+ * via the `definition` "BlobResourceContents".
429
+ */
430
+ export interface BlobResourceContents {
431
+ _meta?: MetaObject;
432
+ /**
433
+ * A base64-encoded string representing the binary data of the item.
434
+ */
435
+ blob: string;
436
+ /**
437
+ * The MIME type of this resource, if known.
438
+ */
439
+ mimeType?: string;
440
+ /**
441
+ * The URI of this resource.
442
+ */
443
+ uri: string;
444
+ [k: string]: unknown | undefined;
445
+ }
446
+ /**
447
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
448
+ * via the `definition` "BooleanSchema".
449
+ */
450
+ export interface BooleanSchema {
451
+ default?: boolean;
452
+ description?: string;
453
+ title?: string;
454
+ type: "boolean";
455
+ [k: string]: unknown | undefined;
456
+ }
457
+ /**
458
+ * A result that supports a time-to-live (TTL) hint for client-side caching.
459
+ *
460
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
461
+ * via the `definition` "CacheableResult".
462
+ */
463
+ export interface CacheableResult {
464
+ _meta?: ResultMetaObject;
465
+ /**
466
+ * Indicates the intended scope of the cached response, analogous to HTTP
467
+ * `Cache-Control: public` vs `Cache-Control: private`.
468
+ *
469
+ * - `"public"`: The response does not contain user-specific data. Any
470
+ * client or intermediary (e.g., shared gateway, caching proxy) MAY cache
471
+ * the response and serve it across authorization contexts.
472
+ * - `"private"`: The response MAY be cached and reused only within the
473
+ * same authorization context. Caches MUST NOT be shared across
474
+ * authorization contexts (e.g., a different access token requires a
475
+ * different cache).
476
+ */
477
+ cacheScope: "private" | "public";
478
+ /**
479
+ * Indicates the type of the result, which allows the client to determine
480
+ * how to parse the result object.
481
+ *
482
+ * Servers implementing this protocol version MUST include this field.
483
+ * For backward compatibility, when a client receives a result from a
484
+ * server implementing an earlier protocol version (which does not include
485
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
486
+ */
487
+ resultType: string;
488
+ /**
489
+ * A hint from the server indicating how long (in milliseconds) the
490
+ * client MAY cache this response before re-fetching. Semantics are
491
+ * analogous to HTTP Cache-Control max-age.
492
+ *
493
+ * - If 0, The response SHOULD be considered immediately stale,
494
+ * The client MAY re-fetch every time the result is needed.
495
+ * - If positive, the client SHOULD consider the result fresh for this many
496
+ * milliseconds after receiving the response.
497
+ */
498
+ ttlMs: number;
499
+ [k: string]: unknown | undefined;
500
+ }
501
+ /**
502
+ * Extends {@link MetaObject} with additional result-specific fields. All key naming rules from `MetaObject` apply.
503
+ *
504
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
505
+ * via the `definition` "ResultMetaObject".
506
+ */
507
+ export interface ResultMetaObject {
508
+ "io.modelcontextprotocol/serverInfo"?: Implementation;
509
+ [k: string]: unknown | undefined;
510
+ }
511
+ /**
512
+ * Identifies the server software producing the response. Servers SHOULD
513
+ * include this field on every response unless specifically configured not
514
+ * to do so.
515
+ *
516
+ * The {@link Implementation} schema requires `name` and `version`; other
517
+ * fields are optional.
518
+ *
519
+ * The value is self-reported by the server and is not verified by the
520
+ * protocol. It is intended for display, logging, and debugging. Clients
521
+ * SHOULD NOT use it to change their behavior, and SHOULD NOT rely on it for
522
+ * security decisions.
523
+ */
524
+ export interface Implementation {
525
+ /**
526
+ * An optional human-readable description of what this implementation does.
527
+ *
528
+ * This can be used by clients or servers to provide context about their purpose
529
+ * and capabilities. For example, a server might describe the types of resources
530
+ * or tools it provides, while a client might describe its intended use case.
531
+ */
532
+ description?: string;
533
+ /**
534
+ * Optional set of sized icons that the client can display in a user interface.
535
+ *
536
+ * Clients that support rendering icons MUST support at least the following MIME types:
537
+ * - `image/png` - PNG images (safe, universal compatibility)
538
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
539
+ *
540
+ * Clients that support rendering icons SHOULD also support:
541
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
542
+ * - `image/webp` - WebP images (modern, efficient format)
543
+ */
544
+ icons?: Icon[];
545
+ /**
546
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
547
+ */
548
+ name: string;
549
+ /**
550
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
551
+ * even by those unfamiliar with domain-specific terminology.
552
+ *
553
+ * If not provided, the name should be used for display (except for {@link Tool},
554
+ * where `annotations.title` should be given precedence over using `name`,
555
+ * if present).
556
+ */
557
+ title?: string;
558
+ /**
559
+ * The version of this implementation.
560
+ */
561
+ version: string;
562
+ /**
563
+ * An optional URL of the website for this implementation.
564
+ */
565
+ websiteUrl?: string;
566
+ [k: string]: unknown | undefined;
567
+ }
568
+ /**
569
+ * An optionally-sized icon that can be displayed in a user interface.
570
+ *
571
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
572
+ * via the `definition` "Icon".
573
+ */
574
+ export interface Icon {
575
+ /**
576
+ * Optional MIME type override if the source MIME type is missing or generic.
577
+ * For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`.
578
+ */
579
+ mimeType?: string;
580
+ /**
581
+ * Optional array of strings that specify sizes at which the icon can be used.
582
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
583
+ *
584
+ * If not provided, the client should assume that the icon can be used at any size.
585
+ */
586
+ sizes?: string[];
587
+ /**
588
+ * A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
589
+ * `data:` URI with Base64-encoded image data.
590
+ *
591
+ * Consumers SHOULD take steps to ensure URLs serving icons are from the
592
+ * same domain as the client/server or a trusted domain.
593
+ *
594
+ * Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
595
+ * executable JavaScript.
596
+ */
597
+ src: string;
598
+ /**
599
+ * Optional specifier for the theme this icon is designed for. `"light"` indicates
600
+ * the icon is designed to be used with a light background, and `"dark"` indicates
601
+ * the icon is designed to be used with a dark background.
602
+ *
603
+ * If not provided, the client should assume the icon can be used with any theme.
604
+ */
605
+ theme?: "dark" | "light";
606
+ [k: string]: unknown | undefined;
607
+ }
608
+ /**
609
+ * Used by the client to invoke a tool provided by the server.
610
+ *
611
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
612
+ * via the `definition` "CallToolRequest".
613
+ */
614
+ export interface CallToolRequest {
615
+ id: RequestId;
616
+ jsonrpc: "2.0";
617
+ method: "tools/call";
618
+ params: CallToolRequestParams;
619
+ [k: string]: unknown | undefined;
620
+ }
621
+ /**
622
+ * Parameters for a `tools/call` request.
623
+ *
624
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
625
+ * via the `definition` "CallToolRequestParams".
626
+ */
627
+ export interface CallToolRequestParams {
628
+ _meta: RequestMetaObject;
629
+ /**
630
+ * Arguments to use for the tool call.
631
+ */
632
+ arguments?: {
633
+ [k: string]: unknown | undefined;
634
+ };
635
+ inputResponses?: InputResponses;
636
+ /**
637
+ * The name of the tool.
638
+ */
639
+ name: string;
640
+ requestState?: string;
641
+ [k: string]: unknown | undefined;
642
+ }
643
+ /**
644
+ * Extends {@link MetaObject} with additional request-specific fields. All key naming rules from `MetaObject` apply.
645
+ *
646
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
647
+ * via the `definition` "RequestMetaObject".
648
+ */
649
+ export interface RequestMetaObject {
650
+ "io.modelcontextprotocol/clientCapabilities": ClientCapabilities;
651
+ "io.modelcontextprotocol/clientInfo"?: Implementation1;
652
+ /**
653
+ * The desired log level for this request. Optional.
654
+ *
655
+ * If absent, the server MUST NOT send any {@link LoggingMessageNotificationnotifications/message}
656
+ * notifications for this request. The client opts in to log messages by
657
+ * explicitly setting a level. Replaces the former `logging/setLevel` RPC.
658
+ */
659
+ "io.modelcontextprotocol/logLevel"?: "alert" | "critical" | "debug" | "emergency" | "error" | "info" | "notice" | "warning";
660
+ /**
661
+ * The MCP Protocol Version being used for this request. Required.
662
+ *
663
+ * For the HTTP transport, this value MUST match the `MCP-Protocol-Version`
664
+ * header; otherwise the server MUST return a `400 Bad Request`. If the
665
+ * server does not support the requested version, it MUST return an
666
+ * {@link UnsupportedProtocolVersionError}.
667
+ */
668
+ "io.modelcontextprotocol/protocolVersion": string;
669
+ /**
670
+ * 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.
671
+ */
672
+ progressToken?: string | number;
673
+ [k: string]: unknown | undefined;
674
+ }
675
+ /**
676
+ * The client's capabilities for this specific request. Required.
677
+ *
678
+ * Capabilities are declared per-request rather than once at initialization;
679
+ * an empty object means the client supports no optional capabilities.
680
+ * Servers MUST NOT infer capabilities from prior requests.
681
+ */
682
+ export interface ClientCapabilities {
683
+ /**
684
+ * Present if the client supports elicitation from the server.
685
+ */
686
+ elicitation?: {
687
+ form?: JSONObject;
688
+ url?: JSONObject;
689
+ [k: string]: unknown | undefined;
690
+ };
691
+ /**
692
+ * Experimental, non-standard capabilities that the client supports.
693
+ */
694
+ experimental?: {
695
+ [k: string]: JSONObject | undefined;
696
+ };
697
+ /**
698
+ * Optional MCP extensions that the client supports. Keys are extension identifiers
699
+ * (e.g., "io.modelcontextprotocol/oauth-client-credentials"), and values are
700
+ * per-extension settings objects. An empty object indicates support with no settings.
701
+ *
702
+ * Keys MUST follow the {@link MetaObject`_meta` key naming rules}, with a
703
+ * mandatory prefix.
704
+ */
705
+ extensions?: {
706
+ [k: string]: JSONObject | undefined;
707
+ };
708
+ /**
709
+ * Present if the client supports listing roots.
710
+ */
711
+ roots?: {
712
+ [k: string]: unknown | undefined;
713
+ };
714
+ /**
715
+ * Present if the client supports sampling from an LLM.
716
+ */
717
+ sampling?: {
718
+ context?: JSONObject1;
719
+ tools?: JSONObject2;
720
+ [k: string]: unknown | undefined;
721
+ };
722
+ [k: string]: unknown | undefined;
723
+ }
724
+ /**
725
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
726
+ * via the `definition` "JSONObject".
727
+ */
728
+ export interface JSONObject {
729
+ [k: string]: JSONValue | undefined;
730
+ }
731
+ /**
732
+ * Whether the client supports context inclusion via `includeContext` parameter.
733
+ * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it).
734
+ */
735
+ export interface JSONObject1 {
736
+ [k: string]: JSONValue | undefined;
737
+ }
738
+ /**
739
+ * Whether the client supports tool use via `tools` and `toolChoice` parameters.
740
+ */
741
+ export interface JSONObject2 {
742
+ [k: string]: JSONValue | undefined;
743
+ }
744
+ /**
745
+ * Identifies the client software making the request. Clients SHOULD
746
+ * include this field on every request unless specifically configured not
747
+ * to do so.
748
+ *
749
+ * The {@link Implementation} schema requires `name` and `version`; other
750
+ * fields are optional.
751
+ *
752
+ * The value is self-reported by the client and is not verified by the
753
+ * protocol. It is intended for display, logging, and debugging. Servers
754
+ * SHOULD NOT use it to change their behavior, and SHOULD NOT rely on it for
755
+ * security decisions.
756
+ */
757
+ export interface Implementation1 {
758
+ /**
759
+ * An optional human-readable description of what this implementation does.
760
+ *
761
+ * This can be used by clients or servers to provide context about their purpose
762
+ * and capabilities. For example, a server might describe the types of resources
763
+ * or tools it provides, while a client might describe its intended use case.
764
+ */
765
+ description?: string;
766
+ /**
767
+ * Optional set of sized icons that the client can display in a user interface.
768
+ *
769
+ * Clients that support rendering icons MUST support at least the following MIME types:
770
+ * - `image/png` - PNG images (safe, universal compatibility)
771
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
772
+ *
773
+ * Clients that support rendering icons SHOULD also support:
774
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
775
+ * - `image/webp` - WebP images (modern, efficient format)
776
+ */
777
+ icons?: Icon[];
778
+ /**
779
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
780
+ */
781
+ name: string;
782
+ /**
783
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
784
+ * even by those unfamiliar with domain-specific terminology.
785
+ *
786
+ * If not provided, the name should be used for display (except for {@link Tool},
787
+ * where `annotations.title` should be given precedence over using `name`,
788
+ * if present).
789
+ */
790
+ title?: string;
791
+ /**
792
+ * The version of this implementation.
793
+ */
794
+ version: string;
795
+ /**
796
+ * An optional URL of the website for this implementation.
797
+ */
798
+ websiteUrl?: string;
799
+ [k: string]: unknown | undefined;
800
+ }
801
+ /**
802
+ * A map of client responses to server-initiated requests.
803
+ * Keys correspond to the keys in the {@link InputRequests} map;
804
+ * values are the client's result for each request.
805
+ *
806
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
807
+ * via the `definition` "InputResponses".
808
+ */
809
+ export interface InputResponses {
810
+ [k: string]: InputResponse | undefined;
811
+ }
812
+ /**
813
+ * The result returned by the client for a {@link CreateMessageRequestsampling/createMessage} request.
814
+ * The client should inform the user before returning the sampled message, to allow them
815
+ * to inspect the response (human in the loop) and decide whether to allow the server to see it.
816
+ *
817
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
818
+ * via the `definition` "CreateMessageResult".
819
+ */
820
+ export interface CreateMessageResult {
821
+ _meta?: MetaObject;
822
+ content: TextContent | ImageContent | AudioContent | ToolUseContent | ToolResultContent | SamplingMessageContentBlock[];
823
+ /**
824
+ * The name of the model that generated the message.
825
+ */
826
+ model: string;
827
+ role: Role;
828
+ /**
829
+ * The reason why sampling stopped, if known.
830
+ *
831
+ * Standard values:
832
+ * - `"endTurn"`: Natural end of the assistant's turn
833
+ * - `"stopSequence"`: A stop sequence was encountered
834
+ * - `"maxTokens"`: Maximum token limit was reached
835
+ * - `"toolUse"`: The model wants to use one or more tools
836
+ *
837
+ * This field is an open string to allow for provider-specific stop reasons.
838
+ */
839
+ stopReason?: string;
840
+ [k: string]: unknown | undefined;
841
+ }
842
+ /**
843
+ * Text provided to or from an LLM.
844
+ *
845
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
846
+ * via the `definition` "TextContent".
847
+ */
848
+ export interface TextContent {
849
+ _meta?: MetaObject;
850
+ annotations?: Annotations2;
851
+ /**
852
+ * The text content of the message.
853
+ */
854
+ text: string;
855
+ type: "text";
856
+ [k: string]: unknown | undefined;
857
+ }
858
+ /**
859
+ * Optional annotations for the client.
860
+ */
861
+ export interface Annotations2 {
862
+ /**
863
+ * Describes who the intended audience of this object or data is.
864
+ *
865
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
866
+ */
867
+ audience?: Role[];
868
+ /**
869
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
870
+ *
871
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
872
+ *
873
+ * Examples: last activity timestamp in an open file, timestamp when the resource
874
+ * was attached, etc.
875
+ */
876
+ lastModified?: string;
877
+ /**
878
+ * Describes how important this data is for operating the server.
879
+ *
880
+ * A value of 1 means "most important," and indicates that the data is
881
+ * effectively required, while 0 means "least important," and indicates that
882
+ * the data is entirely optional.
883
+ */
884
+ priority?: number;
885
+ [k: string]: unknown | undefined;
886
+ }
887
+ /**
888
+ * An image provided to or from an LLM.
889
+ *
890
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
891
+ * via the `definition` "ImageContent".
892
+ */
893
+ export interface ImageContent {
894
+ _meta?: MetaObject;
895
+ annotations?: Annotations3;
896
+ /**
897
+ * The base64-encoded image data.
898
+ */
899
+ data: string;
900
+ /**
901
+ * The MIME type of the image. Different providers may support different image types.
902
+ */
903
+ mimeType: string;
904
+ type: "image";
905
+ [k: string]: unknown | undefined;
906
+ }
907
+ /**
908
+ * Optional annotations for the client.
909
+ */
910
+ export interface Annotations3 {
911
+ /**
912
+ * Describes who the intended audience of this object or data is.
913
+ *
914
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
915
+ */
916
+ audience?: Role[];
917
+ /**
918
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
919
+ *
920
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
921
+ *
922
+ * Examples: last activity timestamp in an open file, timestamp when the resource
923
+ * was attached, etc.
924
+ */
925
+ lastModified?: string;
926
+ /**
927
+ * Describes how important this data is for operating the server.
928
+ *
929
+ * A value of 1 means "most important," and indicates that the data is
930
+ * effectively required, while 0 means "least important," and indicates that
931
+ * the data is entirely optional.
932
+ */
933
+ priority?: number;
934
+ [k: string]: unknown | undefined;
935
+ }
936
+ /**
937
+ * A request from the assistant to call a tool.
938
+ *
939
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
940
+ * via the `definition` "ToolUseContent".
941
+ */
942
+ export interface ToolUseContent {
943
+ _meta?: MetaObject1;
944
+ /**
945
+ * A unique identifier for this tool use.
946
+ *
947
+ * This ID is used to match tool results to their corresponding tool uses.
948
+ */
949
+ id: string;
950
+ /**
951
+ * The arguments to pass to the tool, conforming to the tool's input schema.
952
+ */
953
+ input: {
954
+ [k: string]: unknown | undefined;
955
+ };
956
+ /**
957
+ * The name of the tool to call.
958
+ */
959
+ name: string;
960
+ type: "tool_use";
961
+ [k: string]: unknown | undefined;
962
+ }
963
+ /**
964
+ * Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.
965
+ *
966
+ * Certain 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.
967
+ *
968
+ * Valid keys have two segments:
969
+ *
970
+ * **Prefix:**
971
+ * - Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).
972
+ * - Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).
973
+ * - Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).
974
+ * - 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`.
975
+ *
976
+ * **Name:**
977
+ * - Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).
978
+ * - Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).
979
+ */
980
+ export interface MetaObject1 {
981
+ [k: string]: unknown | undefined;
982
+ }
983
+ /**
984
+ * The result of a tool use, provided by the user back to the assistant.
985
+ *
986
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
987
+ * via the `definition` "ToolResultContent".
988
+ */
989
+ export interface ToolResultContent {
990
+ _meta?: MetaObject2;
991
+ /**
992
+ * The unstructured result content of the tool use.
993
+ *
994
+ * This has the same format as {@link CallToolResult.content} and can include text, images,
995
+ * audio, resource links, and embedded resources.
996
+ */
997
+ content: ContentBlock[];
998
+ /**
999
+ * Whether the tool use resulted in an error.
1000
+ *
1001
+ * If true, the content typically describes the error that occurred.
1002
+ * Default: false
1003
+ */
1004
+ isError?: boolean;
1005
+ /**
1006
+ * An optional structured result value.
1007
+ *
1008
+ * This can be any JSON value (object, array, string, number, boolean, or null).
1009
+ * If the tool defined an {@link Tool.outputSchema}, this SHOULD conform to that schema.
1010
+ */
1011
+ structuredContent?: {
1012
+ [k: string]: unknown | undefined;
1013
+ };
1014
+ /**
1015
+ * The ID of the tool use this result corresponds to.
1016
+ *
1017
+ * This MUST match the ID from a previous {@link ToolUseContent}.
1018
+ */
1019
+ toolUseId: string;
1020
+ type: "tool_result";
1021
+ [k: string]: unknown | undefined;
1022
+ }
1023
+ /**
1024
+ * Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.
1025
+ *
1026
+ * Certain 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.
1027
+ *
1028
+ * Valid keys have two segments:
1029
+ *
1030
+ * **Prefix:**
1031
+ * - Optional — if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).
1032
+ * - Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).
1033
+ * - Implementations SHOULD use reverse DNS notation (e.g., `com.example/` rather than `example.com/`).
1034
+ * - 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`.
1035
+ *
1036
+ * **Name:**
1037
+ * - Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).
1038
+ * - Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).
1039
+ */
1040
+ export interface MetaObject2 {
1041
+ [k: string]: unknown | undefined;
1042
+ }
1043
+ /**
1044
+ * A resource that the server is capable of reading, included in a prompt or tool call result.
1045
+ *
1046
+ * Note: resource links returned by tools are not guaranteed to appear in the results of {@link ListResourcesRequestresources/list} requests.
1047
+ *
1048
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1049
+ * via the `definition` "ResourceLink".
1050
+ */
1051
+ export interface ResourceLink {
1052
+ _meta?: MetaObject;
1053
+ annotations?: Annotations4;
1054
+ /**
1055
+ * A description of what this resource represents.
1056
+ *
1057
+ * This 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.
1058
+ */
1059
+ description?: string;
1060
+ /**
1061
+ * Optional set of sized icons that the client can display in a user interface.
1062
+ *
1063
+ * Clients that support rendering icons MUST support at least the following MIME types:
1064
+ * - `image/png` - PNG images (safe, universal compatibility)
1065
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
1066
+ *
1067
+ * Clients that support rendering icons SHOULD also support:
1068
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
1069
+ * - `image/webp` - WebP images (modern, efficient format)
1070
+ */
1071
+ icons?: Icon[];
1072
+ /**
1073
+ * The MIME type of this resource, if known.
1074
+ */
1075
+ mimeType?: string;
1076
+ /**
1077
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
1078
+ */
1079
+ name: string;
1080
+ /**
1081
+ * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
1082
+ *
1083
+ * This can be used by Hosts to display file sizes and estimate context window usage.
1084
+ */
1085
+ size?: number;
1086
+ /**
1087
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
1088
+ * even by those unfamiliar with domain-specific terminology.
1089
+ *
1090
+ * If not provided, the name should be used for display (except for {@link Tool},
1091
+ * where `annotations.title` should be given precedence over using `name`,
1092
+ * if present).
1093
+ */
1094
+ title?: string;
1095
+ type: "resource_link";
1096
+ /**
1097
+ * The URI of this resource.
1098
+ */
1099
+ uri: string;
1100
+ [k: string]: unknown | undefined;
1101
+ }
1102
+ /**
1103
+ * Optional annotations for the client.
1104
+ */
1105
+ export interface Annotations4 {
1106
+ /**
1107
+ * Describes who the intended audience of this object or data is.
1108
+ *
1109
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
1110
+ */
1111
+ audience?: Role[];
1112
+ /**
1113
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
1114
+ *
1115
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
1116
+ *
1117
+ * Examples: last activity timestamp in an open file, timestamp when the resource
1118
+ * was attached, etc.
1119
+ */
1120
+ lastModified?: string;
1121
+ /**
1122
+ * Describes how important this data is for operating the server.
1123
+ *
1124
+ * A value of 1 means "most important," and indicates that the data is
1125
+ * effectively required, while 0 means "least important," and indicates that
1126
+ * the data is entirely optional.
1127
+ */
1128
+ priority?: number;
1129
+ [k: string]: unknown | undefined;
1130
+ }
1131
+ /**
1132
+ * The contents of a resource, embedded into a prompt or tool call result.
1133
+ *
1134
+ * It is up to the client how best to render embedded resources for the benefit
1135
+ * of the LLM and/or the user.
1136
+ *
1137
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1138
+ * via the `definition` "EmbeddedResource".
1139
+ */
1140
+ export interface EmbeddedResource {
1141
+ _meta?: MetaObject;
1142
+ annotations?: Annotations5;
1143
+ resource: TextResourceContents | BlobResourceContents;
1144
+ type: "resource";
1145
+ [k: string]: unknown | undefined;
1146
+ }
1147
+ /**
1148
+ * Optional annotations for the client.
1149
+ */
1150
+ export interface Annotations5 {
1151
+ /**
1152
+ * Describes who the intended audience of this object or data is.
1153
+ *
1154
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
1155
+ */
1156
+ audience?: Role[];
1157
+ /**
1158
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
1159
+ *
1160
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
1161
+ *
1162
+ * Examples: last activity timestamp in an open file, timestamp when the resource
1163
+ * was attached, etc.
1164
+ */
1165
+ lastModified?: string;
1166
+ /**
1167
+ * Describes how important this data is for operating the server.
1168
+ *
1169
+ * A value of 1 means "most important," and indicates that the data is
1170
+ * effectively required, while 0 means "least important," and indicates that
1171
+ * the data is entirely optional.
1172
+ */
1173
+ priority?: number;
1174
+ [k: string]: unknown | undefined;
1175
+ }
1176
+ /**
1177
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1178
+ * via the `definition` "TextResourceContents".
1179
+ */
1180
+ export interface TextResourceContents {
1181
+ _meta?: MetaObject;
1182
+ /**
1183
+ * The MIME type of this resource, if known.
1184
+ */
1185
+ mimeType?: string;
1186
+ /**
1187
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
1188
+ */
1189
+ text: string;
1190
+ /**
1191
+ * The URI of this resource.
1192
+ */
1193
+ uri: string;
1194
+ [k: string]: unknown | undefined;
1195
+ }
1196
+ /**
1197
+ * The result returned by the client for a {@link ListRootsRequestroots/list} request.
1198
+ * This result contains an array of {@link Root} objects, each representing a root directory
1199
+ * or file that the server can operate on.
1200
+ *
1201
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1202
+ * via the `definition` "ListRootsResult".
1203
+ */
1204
+ export interface ListRootsResult {
1205
+ roots: Root[];
1206
+ [k: string]: unknown | undefined;
1207
+ }
1208
+ /**
1209
+ * Represents a root directory or file that the server can operate on.
1210
+ *
1211
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1212
+ * via the `definition` "Root".
1213
+ */
1214
+ export interface Root {
1215
+ _meta?: MetaObject;
1216
+ /**
1217
+ * An optional name for the root. This can be used to provide a human-readable
1218
+ * identifier for the root, which may be useful for display purposes or for
1219
+ * referencing the root in other parts of the application.
1220
+ */
1221
+ name?: string;
1222
+ /**
1223
+ * The URI identifying the root. This *must* start with `file://` for now.
1224
+ * This restriction may be relaxed in future versions of the protocol to allow
1225
+ * other URI schemes.
1226
+ */
1227
+ uri: string;
1228
+ [k: string]: unknown | undefined;
1229
+ }
1230
+ /**
1231
+ * The result returned by the client for an {@link ElicitRequestelicitation/create} request.
1232
+ *
1233
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1234
+ * via the `definition` "ElicitResult".
1235
+ */
1236
+ export interface ElicitResult {
1237
+ /**
1238
+ * The user action in response to the elicitation.
1239
+ * - `"accept"`: User submitted the form/confirmed the action
1240
+ * - `"decline"`: User explicitly declined the action
1241
+ * - `"cancel"`: User dismissed without making an explicit choice
1242
+ */
1243
+ action: "accept" | "cancel" | "decline";
1244
+ /**
1245
+ * The submitted form data, only present when action is `"accept"` and mode was `"form"`.
1246
+ * Contains values matching the requested schema.
1247
+ * Omitted for out-of-band mode responses.
1248
+ */
1249
+ content?: {
1250
+ [k: string]: string[] | string | number | boolean | undefined;
1251
+ };
1252
+ [k: string]: unknown | undefined;
1253
+ }
1254
+ /**
1255
+ * The result returned by the server for a {@link CallToolRequesttools/call} request.
1256
+ *
1257
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1258
+ * via the `definition` "CallToolResult".
1259
+ */
1260
+ export interface CallToolResult {
1261
+ _meta?: ResultMetaObject;
1262
+ /**
1263
+ * A list of content objects that represent the unstructured result of the tool call.
1264
+ */
1265
+ content: ContentBlock[];
1266
+ /**
1267
+ * Whether the tool call ended in an error.
1268
+ *
1269
+ * If not set, this is assumed to be false (the call was successful).
1270
+ *
1271
+ * Any errors that originate from the tool SHOULD be reported inside the result
1272
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
1273
+ * response. Otherwise, the LLM would not be able to see that an error occurred
1274
+ * and self-correct.
1275
+ *
1276
+ * However, any errors in _finding_ the tool, an error indicating that the
1277
+ * server does not support tool calls, or any other exceptional conditions,
1278
+ * should be reported as an MCP error response.
1279
+ */
1280
+ isError?: boolean;
1281
+ /**
1282
+ * Indicates the type of the result, which allows the client to determine
1283
+ * how to parse the result object.
1284
+ *
1285
+ * Servers implementing this protocol version MUST include this field.
1286
+ * For backward compatibility, when a client receives a result from a
1287
+ * server implementing an earlier protocol version (which does not include
1288
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
1289
+ */
1290
+ resultType: string;
1291
+ /**
1292
+ * An optional JSON value that represents the structured result of the tool call.
1293
+ *
1294
+ * This can be any JSON value (object, array, string, number, boolean, or null)
1295
+ * that conforms to the tool's outputSchema if one is defined.
1296
+ */
1297
+ structuredContent?: {
1298
+ [k: string]: unknown | undefined;
1299
+ };
1300
+ [k: string]: unknown | undefined;
1301
+ }
1302
+ /**
1303
+ * A successful response from the server for a {@link CallToolRequesttools/call} request.
1304
+ *
1305
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1306
+ * via the `definition` "CallToolResultResponse".
1307
+ */
1308
+ export interface CallToolResultResponse {
1309
+ id: RequestId;
1310
+ jsonrpc: "2.0";
1311
+ result: InputRequiredResult | CallToolResult;
1312
+ [k: string]: unknown | undefined;
1313
+ }
1314
+ /**
1315
+ * An InputRequiredResult sent by the server to indicate that additional input is needed
1316
+ * before the request can be completed.
1317
+ *
1318
+ * At least one of `inputRequests` or `requestState` MUST be present.
1319
+ *
1320
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1321
+ * via the `definition` "InputRequiredResult".
1322
+ */
1323
+ export interface InputRequiredResult {
1324
+ _meta?: ResultMetaObject;
1325
+ inputRequests?: InputRequests;
1326
+ requestState?: string;
1327
+ /**
1328
+ * Indicates the type of the result, which allows the client to determine
1329
+ * how to parse the result object.
1330
+ *
1331
+ * Servers implementing this protocol version MUST include this field.
1332
+ * For backward compatibility, when a client receives a result from a
1333
+ * server implementing an earlier protocol version (which does not include
1334
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
1335
+ */
1336
+ resultType: string;
1337
+ [k: string]: unknown | undefined;
1338
+ }
1339
+ /**
1340
+ * A map of server-initiated requests that the client must fulfill.
1341
+ * Keys are server-assigned identifiers; values are the request objects.
1342
+ *
1343
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1344
+ * via the `definition` "InputRequests".
1345
+ */
1346
+ export interface InputRequests {
1347
+ [k: string]: InputRequest | undefined;
1348
+ }
1349
+ /**
1350
+ * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
1351
+ *
1352
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1353
+ * via the `definition` "CreateMessageRequest".
1354
+ */
1355
+ export interface CreateMessageRequest {
1356
+ method: "sampling/createMessage";
1357
+ params: CreateMessageRequestParams;
1358
+ [k: string]: unknown | undefined;
1359
+ }
1360
+ /**
1361
+ * Parameters for a `sampling/createMessage` request.
1362
+ *
1363
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1364
+ * via the `definition` "CreateMessageRequestParams".
1365
+ */
1366
+ export interface CreateMessageRequestParams {
1367
+ /**
1368
+ * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
1369
+ * The client MAY ignore this request.
1370
+ *
1371
+ * Default is `"none"`. The values `"thisServer"` and `"allServers"` are deprecated (SEP-2596): servers SHOULD
1372
+ * omit this field or use `"none"`, and SHOULD only use the deprecated values if the client declares
1373
+ * {@link ClientCapabilities.sampling.context}.
1374
+ */
1375
+ includeContext?: "allServers" | "none" | "thisServer";
1376
+ /**
1377
+ * The requested maximum number of tokens to sample (to prevent runaway completions).
1378
+ *
1379
+ * The client MAY choose to sample fewer tokens than the requested maximum.
1380
+ */
1381
+ maxTokens: number;
1382
+ messages: SamplingMessage[];
1383
+ metadata?: JSONObject3;
1384
+ modelPreferences?: ModelPreferences;
1385
+ stopSequences?: string[];
1386
+ /**
1387
+ * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
1388
+ */
1389
+ systemPrompt?: string;
1390
+ temperature?: number;
1391
+ toolChoice?: ToolChoice;
1392
+ /**
1393
+ * Tools that the model may use during generation.
1394
+ * The client MUST return an error if this field is provided but {@link ClientCapabilities.sampling.tools} is not declared.
1395
+ */
1396
+ tools?: Tool[];
1397
+ [k: string]: unknown | undefined;
1398
+ }
1399
+ /**
1400
+ * Describes a message issued to or received from an LLM API.
1401
+ *
1402
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1403
+ * via the `definition` "SamplingMessage".
1404
+ */
1405
+ export interface SamplingMessage {
1406
+ _meta?: MetaObject;
1407
+ content: TextContent | ImageContent | AudioContent | ToolUseContent | ToolResultContent | SamplingMessageContentBlock[];
1408
+ role: Role;
1409
+ [k: string]: unknown | undefined;
1410
+ }
1411
+ /**
1412
+ * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
1413
+ */
1414
+ export interface JSONObject3 {
1415
+ [k: string]: JSONValue | undefined;
1416
+ }
1417
+ /**
1418
+ * The server's preferences for which model to select. The client MAY ignore these preferences.
1419
+ */
1420
+ export interface ModelPreferences {
1421
+ /**
1422
+ * How much to prioritize cost when selecting a model. A value of 0 means cost
1423
+ * is not important, while a value of 1 means cost is the most important
1424
+ * factor.
1425
+ */
1426
+ costPriority?: number;
1427
+ /**
1428
+ * Optional hints to use for model selection.
1429
+ *
1430
+ * If multiple hints are specified, the client MUST evaluate them in order
1431
+ * (such that the first match is taken).
1432
+ *
1433
+ * The client SHOULD prioritize these hints over the numeric priorities, but
1434
+ * MAY still use the priorities to select from ambiguous matches.
1435
+ */
1436
+ hints?: ModelHint[];
1437
+ /**
1438
+ * How much to prioritize intelligence and capabilities when selecting a
1439
+ * model. A value of 0 means intelligence is not important, while a value of 1
1440
+ * means intelligence is the most important factor.
1441
+ */
1442
+ intelligencePriority?: number;
1443
+ /**
1444
+ * How much to prioritize sampling speed (latency) when selecting a model. A
1445
+ * value of 0 means speed is not important, while a value of 1 means speed is
1446
+ * the most important factor.
1447
+ */
1448
+ speedPriority?: number;
1449
+ [k: string]: unknown | undefined;
1450
+ }
1451
+ /**
1452
+ * Hints to use for model selection.
1453
+ *
1454
+ * Keys not declared here are currently left unspecified by the spec and are up
1455
+ * to the client to interpret.
1456
+ *
1457
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1458
+ * via the `definition` "ModelHint".
1459
+ */
1460
+ export interface ModelHint {
1461
+ /**
1462
+ * A hint for a model name.
1463
+ *
1464
+ * The client SHOULD treat this as a substring of a model name; for example:
1465
+ * - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
1466
+ * - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
1467
+ * - `claude` should match any Claude model
1468
+ *
1469
+ * The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:
1470
+ * - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
1471
+ */
1472
+ name?: string;
1473
+ [k: string]: unknown | undefined;
1474
+ }
1475
+ /**
1476
+ * Controls how the model uses tools.
1477
+ * The client MUST return an error if this field is provided but {@link ClientCapabilities.sampling.tools} is not declared.
1478
+ * Default is `{ mode: "auto" }`.
1479
+ */
1480
+ export interface ToolChoice {
1481
+ /**
1482
+ * Controls the tool use ability of the model:
1483
+ * - `"auto"`: Model decides whether to use tools (default)
1484
+ * - `"required"`: Model MUST use at least one tool before completing
1485
+ * - `"none"`: Model MUST NOT use any tools
1486
+ */
1487
+ mode?: "auto" | "none" | "required";
1488
+ [k: string]: unknown | undefined;
1489
+ }
1490
+ /**
1491
+ * Definition for a tool the client can call.
1492
+ *
1493
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1494
+ * via the `definition` "Tool".
1495
+ */
1496
+ export interface Tool {
1497
+ _meta?: MetaObject;
1498
+ annotations?: ToolAnnotations;
1499
+ /**
1500
+ * A human-readable description of the tool.
1501
+ *
1502
+ * This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model.
1503
+ */
1504
+ description?: string;
1505
+ /**
1506
+ * Optional set of sized icons that the client can display in a user interface.
1507
+ *
1508
+ * Clients that support rendering icons MUST support at least the following MIME types:
1509
+ * - `image/png` - PNG images (safe, universal compatibility)
1510
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
1511
+ *
1512
+ * Clients that support rendering icons SHOULD also support:
1513
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
1514
+ * - `image/webp` - WebP images (modern, efficient format)
1515
+ */
1516
+ icons?: Icon[];
1517
+ /**
1518
+ * A JSON Schema object defining the expected parameters for the tool.
1519
+ *
1520
+ * Tool arguments are always JSON objects, so `type: "object"` is required at the root.
1521
+ * Beyond that, any JSON Schema 2020-12 keyword may appear alongside `type` — including
1522
+ * composition keywords (`oneOf`, `anyOf`, `allOf`, `not`), conditional keywords
1523
+ * (`if`/`then`/`else`), reference keywords (`$ref`, `$defs`, `$anchor`), and any other
1524
+ * standard validation or annotation keywords.
1525
+ *
1526
+ * Property schemas may carry an `x-mcp-header` annotation to mirror the
1527
+ * argument value into an HTTP header on the Streamable HTTP transport. See
1528
+ * the Streamable HTTP transport specification for the validity and
1529
+ * extraction rules.
1530
+ *
1531
+ * Defaults to JSON Schema 2020-12 when no explicit `$schema` is provided.
1532
+ */
1533
+ inputSchema: {
1534
+ $schema?: string;
1535
+ type: "object";
1536
+ [k: string]: unknown | undefined;
1537
+ };
1538
+ /**
1539
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
1540
+ */
1541
+ name: string;
1542
+ /**
1543
+ * An optional JSON Schema object defining the structure of the tool's output returned in
1544
+ * the structuredContent field of a {@link CallToolResult}. This can be any valid JSON Schema 2020-12.
1545
+ *
1546
+ * Defaults to JSON Schema 2020-12 when no explicit `$schema` is provided.
1547
+ */
1548
+ outputSchema?: {
1549
+ $schema?: string;
1550
+ [k: string]: unknown | undefined;
1551
+ };
1552
+ /**
1553
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
1554
+ * even by those unfamiliar with domain-specific terminology.
1555
+ *
1556
+ * If not provided, the name should be used for display (except for {@link Tool},
1557
+ * where `annotations.title` should be given precedence over using `name`,
1558
+ * if present).
1559
+ */
1560
+ title?: string;
1561
+ [k: string]: unknown | undefined;
1562
+ }
1563
+ /**
1564
+ * Optional additional tool information.
1565
+ *
1566
+ * Display name precedence order is: `title`, `annotations.title`, then `name`.
1567
+ */
1568
+ export interface ToolAnnotations {
1569
+ /**
1570
+ * If true, the tool may perform destructive updates to its environment.
1571
+ * If false, the tool performs only additive updates.
1572
+ *
1573
+ * (This property is meaningful only when `readOnlyHint == false`)
1574
+ *
1575
+ * Default: true
1576
+ */
1577
+ destructiveHint?: boolean;
1578
+ /**
1579
+ * If true, calling the tool repeatedly with the same arguments
1580
+ * will have no additional effect on its environment.
1581
+ *
1582
+ * (This property is meaningful only when `readOnlyHint == false`)
1583
+ *
1584
+ * Default: false
1585
+ */
1586
+ idempotentHint?: boolean;
1587
+ /**
1588
+ * If true, this tool may interact with an "open world" of external
1589
+ * entities. If false, the tool's domain of interaction is closed.
1590
+ * For example, the world of a web search tool is open, whereas that
1591
+ * of a memory tool is not.
1592
+ *
1593
+ * Default: true
1594
+ */
1595
+ openWorldHint?: boolean;
1596
+ /**
1597
+ * If true, the tool does not modify its environment.
1598
+ *
1599
+ * Default: false
1600
+ */
1601
+ readOnlyHint?: boolean;
1602
+ /**
1603
+ * A human-readable title for the tool.
1604
+ */
1605
+ title?: string;
1606
+ [k: string]: unknown | undefined;
1607
+ }
1608
+ /**
1609
+ * Sent from the server to request a list of root URIs from the client. Roots allow
1610
+ * servers to ask for specific directories or files to operate on. A common example
1611
+ * for roots is providing a set of repositories or directories a server should operate
1612
+ * on.
1613
+ *
1614
+ * This request is typically used when the server needs to understand the file system
1615
+ * structure or access specific locations that the client has permission to read from.
1616
+ *
1617
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1618
+ * via the `definition` "ListRootsRequest".
1619
+ */
1620
+ export interface ListRootsRequest {
1621
+ method: "roots/list";
1622
+ params?: {
1623
+ _meta?: MetaObject;
1624
+ [k: string]: unknown | undefined;
1625
+ };
1626
+ [k: string]: unknown | undefined;
1627
+ }
1628
+ /**
1629
+ * A request from the server to elicit additional information from the user via the client.
1630
+ *
1631
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1632
+ * via the `definition` "ElicitRequest".
1633
+ */
1634
+ export interface ElicitRequest {
1635
+ method: "elicitation/create";
1636
+ params: ElicitRequestParams;
1637
+ [k: string]: unknown | undefined;
1638
+ }
1639
+ /**
1640
+ * The parameters for a request to elicit non-sensitive information from the user via a form in the client.
1641
+ *
1642
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1643
+ * via the `definition` "ElicitRequestFormParams".
1644
+ */
1645
+ export interface ElicitRequestFormParams {
1646
+ /**
1647
+ * The message to present to the user describing what information is being requested.
1648
+ */
1649
+ message: string;
1650
+ /**
1651
+ * The elicitation mode.
1652
+ */
1653
+ mode?: "form";
1654
+ /**
1655
+ * A restricted subset of JSON Schema.
1656
+ * Only top-level properties are allowed, without nesting.
1657
+ */
1658
+ requestedSchema: {
1659
+ $schema?: string;
1660
+ properties: {
1661
+ [k: string]: PrimitiveSchemaDefinition | undefined;
1662
+ };
1663
+ required?: string[];
1664
+ type: "object";
1665
+ [k: string]: unknown | undefined;
1666
+ };
1667
+ [k: string]: unknown | undefined;
1668
+ }
1669
+ /**
1670
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1671
+ * via the `definition` "StringSchema".
1672
+ */
1673
+ export interface StringSchema {
1674
+ default?: string;
1675
+ description?: string;
1676
+ format?: "date" | "date-time" | "email" | "uri";
1677
+ maxLength?: number;
1678
+ minLength?: number;
1679
+ title?: string;
1680
+ type: "string";
1681
+ [k: string]: unknown | undefined;
1682
+ }
1683
+ /**
1684
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1685
+ * via the `definition` "NumberSchema".
1686
+ */
1687
+ export interface NumberSchema {
1688
+ default?: number;
1689
+ description?: string;
1690
+ maximum?: number;
1691
+ minimum?: number;
1692
+ title?: string;
1693
+ type: "integer" | "number";
1694
+ [k: string]: unknown | undefined;
1695
+ }
1696
+ /**
1697
+ * Schema for single-selection enumeration without display titles for options.
1698
+ *
1699
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1700
+ * via the `definition` "UntitledSingleSelectEnumSchema".
1701
+ */
1702
+ export interface UntitledSingleSelectEnumSchema {
1703
+ /**
1704
+ * Optional default value.
1705
+ */
1706
+ default?: string;
1707
+ /**
1708
+ * Optional description for the enum field.
1709
+ */
1710
+ description?: string;
1711
+ /**
1712
+ * Array of enum values to choose from.
1713
+ */
1714
+ enum: string[];
1715
+ /**
1716
+ * Optional title for the enum field.
1717
+ */
1718
+ title?: string;
1719
+ type: "string";
1720
+ [k: string]: unknown | undefined;
1721
+ }
1722
+ /**
1723
+ * Schema for single-selection enumeration with display titles for each option.
1724
+ *
1725
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1726
+ * via the `definition` "TitledSingleSelectEnumSchema".
1727
+ */
1728
+ export interface TitledSingleSelectEnumSchema {
1729
+ /**
1730
+ * Optional default value.
1731
+ */
1732
+ default?: string;
1733
+ /**
1734
+ * Optional description for the enum field.
1735
+ */
1736
+ description?: string;
1737
+ /**
1738
+ * Array of enum options with values and display labels.
1739
+ */
1740
+ oneOf: {
1741
+ /**
1742
+ * The enum value.
1743
+ */
1744
+ const: string;
1745
+ /**
1746
+ * Display label for this option.
1747
+ */
1748
+ title: string;
1749
+ [k: string]: unknown | undefined;
1750
+ }[];
1751
+ /**
1752
+ * Optional title for the enum field.
1753
+ */
1754
+ title?: string;
1755
+ type: "string";
1756
+ [k: string]: unknown | undefined;
1757
+ }
1758
+ /**
1759
+ * Schema for multiple-selection enumeration without display titles for options.
1760
+ *
1761
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1762
+ * via the `definition` "UntitledMultiSelectEnumSchema".
1763
+ */
1764
+ export interface UntitledMultiSelectEnumSchema {
1765
+ /**
1766
+ * Optional default value.
1767
+ */
1768
+ default?: string[];
1769
+ /**
1770
+ * Optional description for the enum field.
1771
+ */
1772
+ description?: string;
1773
+ /**
1774
+ * Schema for the array items.
1775
+ */
1776
+ items: {
1777
+ /**
1778
+ * Array of enum values to choose from.
1779
+ */
1780
+ enum: string[];
1781
+ type: "string";
1782
+ [k: string]: unknown | undefined;
1783
+ };
1784
+ /**
1785
+ * Maximum number of items to select.
1786
+ */
1787
+ maxItems?: number;
1788
+ /**
1789
+ * Minimum number of items to select.
1790
+ */
1791
+ minItems?: number;
1792
+ /**
1793
+ * Optional title for the enum field.
1794
+ */
1795
+ title?: string;
1796
+ type: "array";
1797
+ [k: string]: unknown | undefined;
1798
+ }
1799
+ /**
1800
+ * Schema for multiple-selection enumeration with display titles for each option.
1801
+ *
1802
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1803
+ * via the `definition` "TitledMultiSelectEnumSchema".
1804
+ */
1805
+ export interface TitledMultiSelectEnumSchema {
1806
+ /**
1807
+ * Optional default value.
1808
+ */
1809
+ default?: string[];
1810
+ /**
1811
+ * Optional description for the enum field.
1812
+ */
1813
+ description?: string;
1814
+ /**
1815
+ * Schema for array items with enum options and display labels.
1816
+ */
1817
+ items: {
1818
+ /**
1819
+ * Array of enum options with values and display labels.
1820
+ */
1821
+ anyOf: {
1822
+ /**
1823
+ * The constant enum value.
1824
+ */
1825
+ const: string;
1826
+ /**
1827
+ * Display title for this option.
1828
+ */
1829
+ title: string;
1830
+ [k: string]: unknown | undefined;
1831
+ }[];
1832
+ [k: string]: unknown | undefined;
1833
+ };
1834
+ /**
1835
+ * Maximum number of items to select.
1836
+ */
1837
+ maxItems?: number;
1838
+ /**
1839
+ * Minimum number of items to select.
1840
+ */
1841
+ minItems?: number;
1842
+ /**
1843
+ * Optional title for the enum field.
1844
+ */
1845
+ title?: string;
1846
+ type: "array";
1847
+ [k: string]: unknown | undefined;
1848
+ }
1849
+ /**
1850
+ * Use {@link TitledSingleSelectEnumSchema} instead.
1851
+ * This interface will be removed in a future version.
1852
+ *
1853
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1854
+ * via the `definition` "LegacyTitledEnumSchema".
1855
+ */
1856
+ export interface LegacyTitledEnumSchema {
1857
+ default?: string;
1858
+ description?: string;
1859
+ enum: string[];
1860
+ /**
1861
+ * (Legacy) Display names for enum values.
1862
+ * Non-standard according to JSON schema 2020-12.
1863
+ */
1864
+ enumNames?: string[];
1865
+ title?: string;
1866
+ type: "string";
1867
+ [k: string]: unknown | undefined;
1868
+ }
1869
+ /**
1870
+ * The parameters for a request to elicit information from the user via a URL in the client.
1871
+ *
1872
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1873
+ * via the `definition` "ElicitRequestURLParams".
1874
+ */
1875
+ export interface ElicitRequestURLParams {
1876
+ /**
1877
+ * The message to present to the user explaining why the interaction is needed.
1878
+ */
1879
+ message: string;
1880
+ /**
1881
+ * The elicitation mode.
1882
+ */
1883
+ mode: "url";
1884
+ /**
1885
+ * The URL that the user should navigate to.
1886
+ */
1887
+ url: string;
1888
+ [k: string]: unknown | undefined;
1889
+ }
1890
+ /**
1891
+ * This notification is sent by the client to indicate that it is cancelling a request it previously issued.
1892
+ *
1893
+ * On stdio, the server also sends this notification, solely to terminate a {@link SubscriptionsListenRequestsubscriptions/listen} stream: it references the ID of the `subscriptions/listen` request that opened the stream. Servers MUST NOT use this notification to cancel any other request.
1894
+ *
1895
+ * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
1896
+ *
1897
+ * This notification indicates that the result will be unused, so any associated processing SHOULD cease.
1898
+ *
1899
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1900
+ * via the `definition` "CancelledNotification".
1901
+ */
1902
+ export interface CancelledNotification {
1903
+ jsonrpc: "2.0";
1904
+ method: "notifications/cancelled";
1905
+ params: CancelledNotificationParams;
1906
+ [k: string]: unknown | undefined;
1907
+ }
1908
+ /**
1909
+ * Parameters for a `notifications/cancelled` notification.
1910
+ *
1911
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1912
+ * via the `definition` "CancelledNotificationParams".
1913
+ */
1914
+ export interface CancelledNotificationParams {
1915
+ _meta?: NotificationMetaObject;
1916
+ /**
1917
+ * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
1918
+ */
1919
+ reason?: string;
1920
+ /**
1921
+ * A uniquely identifying ID for a request in JSON-RPC.
1922
+ */
1923
+ requestId: string | number;
1924
+ [k: string]: unknown | undefined;
1925
+ }
1926
+ /**
1927
+ * Extends {@link MetaObject} with additional notification-specific fields. All key naming rules from `MetaObject` apply.
1928
+ *
1929
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1930
+ * via the `definition` "NotificationMetaObject".
1931
+ */
1932
+ export interface NotificationMetaObject {
1933
+ /**
1934
+ * A uniquely identifying ID for a request in JSON-RPC.
1935
+ */
1936
+ "io.modelcontextprotocol/subscriptionId"?: string | number;
1937
+ [k: string]: unknown | undefined;
1938
+ }
1939
+ /**
1940
+ * 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.
1941
+ *
1942
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1943
+ * via the `definition` "ClientCapabilities".
1944
+ */
1945
+ export interface ClientCapabilities1 {
1946
+ /**
1947
+ * Present if the client supports elicitation from the server.
1948
+ */
1949
+ elicitation?: {
1950
+ form?: JSONObject;
1951
+ url?: JSONObject;
1952
+ [k: string]: unknown | undefined;
1953
+ };
1954
+ /**
1955
+ * Experimental, non-standard capabilities that the client supports.
1956
+ */
1957
+ experimental?: {
1958
+ [k: string]: JSONObject | undefined;
1959
+ };
1960
+ /**
1961
+ * Optional MCP extensions that the client supports. Keys are extension identifiers
1962
+ * (e.g., "io.modelcontextprotocol/oauth-client-credentials"), and values are
1963
+ * per-extension settings objects. An empty object indicates support with no settings.
1964
+ *
1965
+ * Keys MUST follow the {@link MetaObject`_meta` key naming rules}, with a
1966
+ * mandatory prefix.
1967
+ */
1968
+ extensions?: {
1969
+ [k: string]: JSONObject | undefined;
1970
+ };
1971
+ /**
1972
+ * Present if the client supports listing roots.
1973
+ */
1974
+ roots?: {
1975
+ [k: string]: unknown | undefined;
1976
+ };
1977
+ /**
1978
+ * Present if the client supports sampling from an LLM.
1979
+ */
1980
+ sampling?: {
1981
+ context?: JSONObject1;
1982
+ tools?: JSONObject2;
1983
+ [k: string]: unknown | undefined;
1984
+ };
1985
+ [k: string]: unknown | undefined;
1986
+ }
1987
+ /**
1988
+ * This notification is sent by the client to indicate that it is cancelling a request it previously issued.
1989
+ *
1990
+ * On stdio, the server also sends this notification, solely to terminate a {@link SubscriptionsListenRequestsubscriptions/listen} stream: it references the ID of the `subscriptions/listen` request that opened the stream. Servers MUST NOT use this notification to cancel any other request.
1991
+ *
1992
+ * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
1993
+ *
1994
+ * This notification indicates that the result will be unused, so any associated processing SHOULD cease.
1995
+ *
1996
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
1997
+ * via the `definition` "ClientNotification".
1998
+ */
1999
+ export interface ClientNotification {
2000
+ jsonrpc: "2.0";
2001
+ method: "notifications/cancelled";
2002
+ params: CancelledNotificationParams;
2003
+ [k: string]: unknown | undefined;
2004
+ }
2005
+ /**
2006
+ * A request from the client asking the server to advertise its supported
2007
+ * protocol versions, capabilities, and other metadata. Servers **MUST**
2008
+ * implement `server/discover`. Clients **MAY** call it but are not required
2009
+ * to — version negotiation can also happen inline via per-request `_meta`.
2010
+ *
2011
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2012
+ * via the `definition` "DiscoverRequest".
2013
+ */
2014
+ export interface DiscoverRequest {
2015
+ id: RequestId;
2016
+ jsonrpc: "2.0";
2017
+ method: "server/discover";
2018
+ params: RequestParams;
2019
+ [k: string]: unknown | undefined;
2020
+ }
2021
+ /**
2022
+ * Common params for any request.
2023
+ *
2024
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2025
+ * via the `definition` "RequestParams".
2026
+ */
2027
+ export interface RequestParams {
2028
+ _meta: RequestMetaObject;
2029
+ [k: string]: unknown | undefined;
2030
+ }
2031
+ /**
2032
+ * Sent from the client to request a list of resources the server has.
2033
+ *
2034
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2035
+ * via the `definition` "ListResourcesRequest".
2036
+ */
2037
+ export interface ListResourcesRequest {
2038
+ id: RequestId;
2039
+ jsonrpc: "2.0";
2040
+ method: "resources/list";
2041
+ params: PaginatedRequestParams;
2042
+ [k: string]: unknown | undefined;
2043
+ }
2044
+ /**
2045
+ * Common params for paginated requests.
2046
+ *
2047
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2048
+ * via the `definition` "PaginatedRequestParams".
2049
+ */
2050
+ export interface PaginatedRequestParams {
2051
+ _meta: RequestMetaObject;
2052
+ /**
2053
+ * An opaque token representing the current pagination position.
2054
+ * If provided, the server should return results starting after this cursor.
2055
+ */
2056
+ cursor?: string;
2057
+ [k: string]: unknown | undefined;
2058
+ }
2059
+ /**
2060
+ * Sent from the client to request a list of resource templates the server has.
2061
+ *
2062
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2063
+ * via the `definition` "ListResourceTemplatesRequest".
2064
+ */
2065
+ export interface ListResourceTemplatesRequest {
2066
+ id: RequestId;
2067
+ jsonrpc: "2.0";
2068
+ method: "resources/templates/list";
2069
+ params: PaginatedRequestParams;
2070
+ [k: string]: unknown | undefined;
2071
+ }
2072
+ /**
2073
+ * Sent from the client to the server, to read a specific resource URI.
2074
+ *
2075
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2076
+ * via the `definition` "ReadResourceRequest".
2077
+ */
2078
+ export interface ReadResourceRequest {
2079
+ id: RequestId;
2080
+ jsonrpc: "2.0";
2081
+ method: "resources/read";
2082
+ params: ReadResourceRequestParams;
2083
+ [k: string]: unknown | undefined;
2084
+ }
2085
+ /**
2086
+ * Parameters for a `resources/read` request.
2087
+ *
2088
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2089
+ * via the `definition` "ReadResourceRequestParams".
2090
+ */
2091
+ export interface ReadResourceRequestParams {
2092
+ _meta: RequestMetaObject;
2093
+ inputResponses?: InputResponses;
2094
+ requestState?: string;
2095
+ /**
2096
+ * The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.
2097
+ */
2098
+ uri: string;
2099
+ [k: string]: unknown | undefined;
2100
+ }
2101
+ /**
2102
+ * Sent from the client to open a long-lived channel for receiving notifications
2103
+ * outside the context of a specific request. Replaces the previous HTTP GET
2104
+ * endpoint and ensures consistent behavior between HTTP and STDIO.
2105
+ *
2106
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2107
+ * via the `definition` "SubscriptionsListenRequest".
2108
+ */
2109
+ export interface SubscriptionsListenRequest {
2110
+ id: RequestId;
2111
+ jsonrpc: "2.0";
2112
+ method: "subscriptions/listen";
2113
+ params: SubscriptionsListenRequestParams;
2114
+ [k: string]: unknown | undefined;
2115
+ }
2116
+ /**
2117
+ * Parameters for a {@link SubscriptionsListenRequestsubscriptions/listen} request.
2118
+ *
2119
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2120
+ * via the `definition` "SubscriptionsListenRequestParams".
2121
+ */
2122
+ export interface SubscriptionsListenRequestParams {
2123
+ _meta: RequestMetaObject;
2124
+ notifications: SubscriptionFilter;
2125
+ [k: string]: unknown | undefined;
2126
+ }
2127
+ /**
2128
+ * The notifications the client opts in to on this stream. The server
2129
+ * **MUST NOT** send notification types the client has not explicitly
2130
+ * requested.
2131
+ */
2132
+ export interface SubscriptionFilter {
2133
+ /**
2134
+ * If true, receive {@link PromptListChangedNotificationnotifications/prompts/list_changed}.
2135
+ */
2136
+ promptsListChanged?: boolean;
2137
+ /**
2138
+ * Subscribe to {@link ResourceUpdatedNotificationnotifications/resources/updated} for these resource URIs.
2139
+ * Replaces the former `resources/subscribe` RPC.
2140
+ */
2141
+ resourceSubscriptions?: string[];
2142
+ /**
2143
+ * If true, receive {@link ResourceListChangedNotificationnotifications/resources/list_changed}.
2144
+ */
2145
+ resourcesListChanged?: boolean;
2146
+ /**
2147
+ * If true, receive {@link ToolListChangedNotificationnotifications/tools/list_changed}.
2148
+ */
2149
+ toolsListChanged?: boolean;
2150
+ [k: string]: unknown | undefined;
2151
+ }
2152
+ /**
2153
+ * Sent from the client to request a list of prompts and prompt templates the server has.
2154
+ *
2155
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2156
+ * via the `definition` "ListPromptsRequest".
2157
+ */
2158
+ export interface ListPromptsRequest {
2159
+ id: RequestId;
2160
+ jsonrpc: "2.0";
2161
+ method: "prompts/list";
2162
+ params: PaginatedRequestParams;
2163
+ [k: string]: unknown | undefined;
2164
+ }
2165
+ /**
2166
+ * Used by the client to get a prompt provided by the server.
2167
+ *
2168
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2169
+ * via the `definition` "GetPromptRequest".
2170
+ */
2171
+ export interface GetPromptRequest {
2172
+ id: RequestId;
2173
+ jsonrpc: "2.0";
2174
+ method: "prompts/get";
2175
+ params: GetPromptRequestParams;
2176
+ [k: string]: unknown | undefined;
2177
+ }
2178
+ /**
2179
+ * Parameters for a `prompts/get` request.
2180
+ *
2181
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2182
+ * via the `definition` "GetPromptRequestParams".
2183
+ */
2184
+ export interface GetPromptRequestParams {
2185
+ _meta: RequestMetaObject;
2186
+ /**
2187
+ * Arguments to use for templating the prompt.
2188
+ */
2189
+ arguments?: {
2190
+ [k: string]: string | undefined;
2191
+ };
2192
+ inputResponses?: InputResponses;
2193
+ /**
2194
+ * The name of the prompt or prompt template.
2195
+ */
2196
+ name: string;
2197
+ requestState?: string;
2198
+ [k: string]: unknown | undefined;
2199
+ }
2200
+ /**
2201
+ * Sent from the client to request a list of tools the server has.
2202
+ *
2203
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2204
+ * via the `definition` "ListToolsRequest".
2205
+ */
2206
+ export interface ListToolsRequest {
2207
+ id: RequestId;
2208
+ jsonrpc: "2.0";
2209
+ method: "tools/list";
2210
+ params: PaginatedRequestParams;
2211
+ [k: string]: unknown | undefined;
2212
+ }
2213
+ /**
2214
+ * A request from the client to the server, to ask for completion options.
2215
+ *
2216
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2217
+ * via the `definition` "CompleteRequest".
2218
+ */
2219
+ export interface CompleteRequest {
2220
+ id: RequestId;
2221
+ jsonrpc: "2.0";
2222
+ method: "completion/complete";
2223
+ params: CompleteRequestParams;
2224
+ [k: string]: unknown | undefined;
2225
+ }
2226
+ /**
2227
+ * Parameters for a `completion/complete` request.
2228
+ *
2229
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2230
+ * via the `definition` "CompleteRequestParams".
2231
+ */
2232
+ export interface CompleteRequestParams {
2233
+ _meta: RequestMetaObject;
2234
+ /**
2235
+ * The argument's information
2236
+ */
2237
+ argument: {
2238
+ /**
2239
+ * The name of the argument
2240
+ */
2241
+ name: string;
2242
+ /**
2243
+ * The value of the argument to use for completion matching.
2244
+ */
2245
+ value: string;
2246
+ [k: string]: unknown | undefined;
2247
+ };
2248
+ /**
2249
+ * Additional, optional context for completions
2250
+ */
2251
+ context?: {
2252
+ /**
2253
+ * Previously-resolved variables in a URI template or prompt.
2254
+ */
2255
+ arguments?: {
2256
+ [k: string]: string | undefined;
2257
+ };
2258
+ [k: string]: unknown | undefined;
2259
+ };
2260
+ ref: PromptReference | ResourceTemplateReference;
2261
+ [k: string]: unknown | undefined;
2262
+ }
2263
+ /**
2264
+ * Identifies a prompt.
2265
+ *
2266
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2267
+ * via the `definition` "PromptReference".
2268
+ */
2269
+ export interface PromptReference {
2270
+ /**
2271
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
2272
+ */
2273
+ name: string;
2274
+ /**
2275
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2276
+ * even by those unfamiliar with domain-specific terminology.
2277
+ *
2278
+ * If not provided, the name should be used for display (except for {@link Tool},
2279
+ * where `annotations.title` should be given precedence over using `name`,
2280
+ * if present).
2281
+ */
2282
+ title?: string;
2283
+ type: "ref/prompt";
2284
+ [k: string]: unknown | undefined;
2285
+ }
2286
+ /**
2287
+ * A reference to a resource or resource template definition.
2288
+ *
2289
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2290
+ * via the `definition` "ResourceTemplateReference".
2291
+ */
2292
+ export interface ResourceTemplateReference {
2293
+ type: "ref/resource";
2294
+ /**
2295
+ * The URI or URI template of the resource.
2296
+ */
2297
+ uri: string;
2298
+ [k: string]: unknown | undefined;
2299
+ }
2300
+ /**
2301
+ * Common result fields.
2302
+ *
2303
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2304
+ * via the `definition` "ClientResult".
2305
+ */
2306
+ export interface ClientResult {
2307
+ _meta?: ResultMetaObject;
2308
+ /**
2309
+ * Indicates the type of the result, which allows the client to determine
2310
+ * how to parse the result object.
2311
+ *
2312
+ * Servers implementing this protocol version MUST include this field.
2313
+ * For backward compatibility, when a client receives a result from a
2314
+ * server implementing an earlier protocol version (which does not include
2315
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
2316
+ */
2317
+ resultType: string;
2318
+ [k: string]: unknown | undefined;
2319
+ }
2320
+ /**
2321
+ * The result returned by the server for a {@link CompleteRequestcompletion/complete} request.
2322
+ *
2323
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2324
+ * via the `definition` "CompleteResult".
2325
+ */
2326
+ export interface CompleteResult {
2327
+ _meta?: ResultMetaObject;
2328
+ completion: {
2329
+ /**
2330
+ * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
2331
+ */
2332
+ hasMore?: boolean;
2333
+ /**
2334
+ * The total number of completion options available. This can exceed the number of values actually sent in the response.
2335
+ */
2336
+ total?: number;
2337
+ /**
2338
+ * An array of completion values. Must not exceed 100 items.
2339
+ *
2340
+ * @maxItems 100
2341
+ */
2342
+ values: string[];
2343
+ [k: string]: unknown | undefined;
2344
+ };
2345
+ /**
2346
+ * Indicates the type of the result, which allows the client to determine
2347
+ * how to parse the result object.
2348
+ *
2349
+ * Servers implementing this protocol version MUST include this field.
2350
+ * For backward compatibility, when a client receives a result from a
2351
+ * server implementing an earlier protocol version (which does not include
2352
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
2353
+ */
2354
+ resultType: string;
2355
+ [k: string]: unknown | undefined;
2356
+ }
2357
+ /**
2358
+ * A successful response from the server for a {@link CompleteRequestcompletion/complete} request.
2359
+ *
2360
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2361
+ * via the `definition` "CompleteResultResponse".
2362
+ */
2363
+ export interface CompleteResultResponse {
2364
+ id: RequestId;
2365
+ jsonrpc: "2.0";
2366
+ result: CompleteResult;
2367
+ [k: string]: unknown | undefined;
2368
+ }
2369
+ /**
2370
+ * The result returned by the server for a {@link DiscoverRequestserver/discover} request.
2371
+ *
2372
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2373
+ * via the `definition` "DiscoverResult".
2374
+ */
2375
+ export interface DiscoverResult {
2376
+ _meta?: ResultMetaObject;
2377
+ /**
2378
+ * Indicates the intended scope of the cached response, analogous to HTTP
2379
+ * `Cache-Control: public` vs `Cache-Control: private`.
2380
+ *
2381
+ * - `"public"`: The response does not contain user-specific data. Any
2382
+ * client or intermediary (e.g., shared gateway, caching proxy) MAY cache
2383
+ * the response and serve it across authorization contexts.
2384
+ * - `"private"`: The response MAY be cached and reused only within the
2385
+ * same authorization context. Caches MUST NOT be shared across
2386
+ * authorization contexts (e.g., a different access token requires a
2387
+ * different cache).
2388
+ */
2389
+ cacheScope: "private" | "public";
2390
+ capabilities: ServerCapabilities;
2391
+ /**
2392
+ * Natural-language guidance describing the server and its features.
2393
+ *
2394
+ * This can be used by clients to improve an LLM's understanding of
2395
+ * available tools (e.g., by including it in a system prompt). It should
2396
+ * focus on information that helps the model use the server effectively
2397
+ * and should not duplicate information already in tool descriptions.
2398
+ */
2399
+ instructions?: string;
2400
+ /**
2401
+ * Indicates the type of the result, which allows the client to determine
2402
+ * how to parse the result object.
2403
+ *
2404
+ * Servers implementing this protocol version MUST include this field.
2405
+ * For backward compatibility, when a client receives a result from a
2406
+ * server implementing an earlier protocol version (which does not include
2407
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
2408
+ */
2409
+ resultType: string;
2410
+ /**
2411
+ * MCP Protocol Versions this server supports. The client should choose a
2412
+ * version from this list for use in subsequent requests.
2413
+ */
2414
+ supportedVersions: string[];
2415
+ /**
2416
+ * A hint from the server indicating how long (in milliseconds) the
2417
+ * client MAY cache this response before re-fetching. Semantics are
2418
+ * analogous to HTTP Cache-Control max-age.
2419
+ *
2420
+ * - If 0, The response SHOULD be considered immediately stale,
2421
+ * The client MAY re-fetch every time the result is needed.
2422
+ * - If positive, the client SHOULD consider the result fresh for this many
2423
+ * milliseconds after receiving the response.
2424
+ */
2425
+ ttlMs: number;
2426
+ [k: string]: unknown | undefined;
2427
+ }
2428
+ /**
2429
+ * The capabilities of the server.
2430
+ */
2431
+ export interface ServerCapabilities {
2432
+ completions?: JSONObject4;
2433
+ /**
2434
+ * Experimental, non-standard capabilities that the server supports.
2435
+ */
2436
+ experimental?: {
2437
+ [k: string]: JSONObject | undefined;
2438
+ };
2439
+ /**
2440
+ * Optional MCP extensions that the server supports. Keys are extension identifiers
2441
+ * (e.g., "io.modelcontextprotocol/tasks"), and values are per-extension settings
2442
+ * objects. An empty object indicates support with no settings.
2443
+ *
2444
+ * Keys MUST follow the {@link MetaObject`_meta` key naming rules}, with a
2445
+ * mandatory prefix.
2446
+ */
2447
+ extensions?: {
2448
+ [k: string]: JSONObject | undefined;
2449
+ };
2450
+ logging?: JSONObject5;
2451
+ /**
2452
+ * Present if the server offers any prompt templates.
2453
+ */
2454
+ prompts?: {
2455
+ /**
2456
+ * Whether this server supports notifications for changes to the prompt list.
2457
+ */
2458
+ listChanged?: boolean;
2459
+ [k: string]: unknown | undefined;
2460
+ };
2461
+ /**
2462
+ * Present if the server offers any resources to read.
2463
+ */
2464
+ resources?: {
2465
+ /**
2466
+ * Whether this server supports notifications for changes to the resource list.
2467
+ */
2468
+ listChanged?: boolean;
2469
+ /**
2470
+ * Whether this server supports subscribing to resource updates.
2471
+ */
2472
+ subscribe?: boolean;
2473
+ [k: string]: unknown | undefined;
2474
+ };
2475
+ /**
2476
+ * Present if the server offers any tools to call.
2477
+ */
2478
+ tools?: {
2479
+ /**
2480
+ * Whether this server supports notifications for changes to the tool list.
2481
+ */
2482
+ listChanged?: boolean;
2483
+ [k: string]: unknown | undefined;
2484
+ };
2485
+ [k: string]: unknown | undefined;
2486
+ }
2487
+ /**
2488
+ * Present if the server supports argument autocompletion suggestions.
2489
+ */
2490
+ export interface JSONObject4 {
2491
+ [k: string]: JSONValue | undefined;
2492
+ }
2493
+ /**
2494
+ * Present if the server supports sending log messages to the client.
2495
+ */
2496
+ export interface JSONObject5 {
2497
+ [k: string]: JSONValue | undefined;
2498
+ }
2499
+ /**
2500
+ * A successful response from the server for a {@link DiscoverRequestserver/discover} request.
2501
+ *
2502
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2503
+ * via the `definition` "DiscoverResultResponse".
2504
+ */
2505
+ export interface DiscoverResultResponse {
2506
+ id: RequestId;
2507
+ jsonrpc: "2.0";
2508
+ result: DiscoverResult;
2509
+ [k: string]: unknown | undefined;
2510
+ }
2511
+ /**
2512
+ * Common result fields.
2513
+ *
2514
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2515
+ * via the `definition` "EmptyResult".
2516
+ */
2517
+ export interface EmptyResult {
2518
+ _meta?: ResultMetaObject;
2519
+ /**
2520
+ * Indicates the type of the result, which allows the client to determine
2521
+ * how to parse the result object.
2522
+ *
2523
+ * Servers implementing this protocol version MUST include this field.
2524
+ * For backward compatibility, when a client receives a result from a
2525
+ * server implementing an earlier protocol version (which does not include
2526
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
2527
+ */
2528
+ resultType: string;
2529
+ [k: string]: unknown | undefined;
2530
+ }
2531
+ /**
2532
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2533
+ * via the `definition` "Error".
2534
+ */
2535
+ export interface Error {
2536
+ /**
2537
+ * The error type that occurred.
2538
+ */
2539
+ code: number;
2540
+ /**
2541
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
2542
+ */
2543
+ data?: {
2544
+ [k: string]: unknown | undefined;
2545
+ };
2546
+ /**
2547
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
2548
+ */
2549
+ message: string;
2550
+ [k: string]: unknown | undefined;
2551
+ }
2552
+ /**
2553
+ * The result returned by the server for a {@link GetPromptRequestprompts/get} request.
2554
+ *
2555
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2556
+ * via the `definition` "GetPromptResult".
2557
+ */
2558
+ export interface GetPromptResult {
2559
+ _meta?: ResultMetaObject;
2560
+ /**
2561
+ * An optional description for the prompt.
2562
+ */
2563
+ description?: string;
2564
+ messages: PromptMessage[];
2565
+ /**
2566
+ * Indicates the type of the result, which allows the client to determine
2567
+ * how to parse the result object.
2568
+ *
2569
+ * Servers implementing this protocol version MUST include this field.
2570
+ * For backward compatibility, when a client receives a result from a
2571
+ * server implementing an earlier protocol version (which does not include
2572
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
2573
+ */
2574
+ resultType: string;
2575
+ [k: string]: unknown | undefined;
2576
+ }
2577
+ /**
2578
+ * Describes a message returned as part of a prompt.
2579
+ *
2580
+ * This is similar to {@link SamplingMessage}, but also supports the embedding of
2581
+ * resources from the MCP server.
2582
+ *
2583
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2584
+ * via the `definition` "PromptMessage".
2585
+ */
2586
+ export interface PromptMessage {
2587
+ content: ContentBlock;
2588
+ role: Role;
2589
+ [k: string]: unknown | undefined;
2590
+ }
2591
+ /**
2592
+ * A successful response from the server for a {@link GetPromptRequestprompts/get} request.
2593
+ *
2594
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2595
+ * via the `definition` "GetPromptResultResponse".
2596
+ */
2597
+ export interface GetPromptResultResponse {
2598
+ id: RequestId;
2599
+ jsonrpc: "2.0";
2600
+ result: InputRequiredResult | GetPromptResult;
2601
+ [k: string]: unknown | undefined;
2602
+ }
2603
+ /**
2604
+ * Returned when a server rejects a request because the values in the HTTP
2605
+ * headers do not match the corresponding values in the request body, or
2606
+ * because required headers are missing or malformed. For HTTP, the response
2607
+ * status code MUST be `400 Bad Request`.
2608
+ *
2609
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2610
+ * via the `definition` "HeaderMismatchError".
2611
+ */
2612
+ export interface HeaderMismatchError {
2613
+ error: Error & {
2614
+ code: -32020;
2615
+ [k: string]: unknown | undefined;
2616
+ };
2617
+ id?: RequestId;
2618
+ jsonrpc: "2.0";
2619
+ [k: string]: unknown | undefined;
2620
+ }
2621
+ /**
2622
+ * Base interface to add `icons` property.
2623
+ *
2624
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2625
+ * via the `definition` "Icons".
2626
+ */
2627
+ export interface Icons {
2628
+ /**
2629
+ * Optional set of sized icons that the client can display in a user interface.
2630
+ *
2631
+ * Clients that support rendering icons MUST support at least the following MIME types:
2632
+ * - `image/png` - PNG images (safe, universal compatibility)
2633
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
2634
+ *
2635
+ * Clients that support rendering icons SHOULD also support:
2636
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
2637
+ * - `image/webp` - WebP images (modern, efficient format)
2638
+ */
2639
+ icons?: Icon[];
2640
+ [k: string]: unknown | undefined;
2641
+ }
2642
+ /**
2643
+ * Describes the MCP implementation.
2644
+ *
2645
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2646
+ * via the `definition` "Implementation".
2647
+ */
2648
+ export interface Implementation2 {
2649
+ /**
2650
+ * An optional human-readable description of what this implementation does.
2651
+ *
2652
+ * This can be used by clients or servers to provide context about their purpose
2653
+ * and capabilities. For example, a server might describe the types of resources
2654
+ * or tools it provides, while a client might describe its intended use case.
2655
+ */
2656
+ description?: string;
2657
+ /**
2658
+ * Optional set of sized icons that the client can display in a user interface.
2659
+ *
2660
+ * Clients that support rendering icons MUST support at least the following MIME types:
2661
+ * - `image/png` - PNG images (safe, universal compatibility)
2662
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
2663
+ *
2664
+ * Clients that support rendering icons SHOULD also support:
2665
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
2666
+ * - `image/webp` - WebP images (modern, efficient format)
2667
+ */
2668
+ icons?: Icon[];
2669
+ /**
2670
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
2671
+ */
2672
+ name: string;
2673
+ /**
2674
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2675
+ * even by those unfamiliar with domain-specific terminology.
2676
+ *
2677
+ * If not provided, the name should be used for display (except for {@link Tool},
2678
+ * where `annotations.title` should be given precedence over using `name`,
2679
+ * if present).
2680
+ */
2681
+ title?: string;
2682
+ /**
2683
+ * The version of this implementation.
2684
+ */
2685
+ version: string;
2686
+ /**
2687
+ * An optional URL of the website for this implementation.
2688
+ */
2689
+ websiteUrl?: string;
2690
+ [k: string]: unknown | undefined;
2691
+ }
2692
+ /**
2693
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2694
+ * via the `definition` "InputResponseRequestParams".
2695
+ */
2696
+ export interface InputResponseRequestParams {
2697
+ _meta: RequestMetaObject;
2698
+ inputResponses?: InputResponses;
2699
+ requestState?: string;
2700
+ [k: string]: unknown | undefined;
2701
+ }
2702
+ /**
2703
+ * A JSON-RPC error indicating that an internal error occurred on the receiver. This error is returned when the receiver encounters an unexpected condition that prevents it from fulfilling the request.
2704
+ *
2705
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2706
+ * via the `definition` "InternalError".
2707
+ */
2708
+ export interface InternalError {
2709
+ /**
2710
+ * The error type that occurred.
2711
+ */
2712
+ code: -32603;
2713
+ /**
2714
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
2715
+ */
2716
+ data?: {
2717
+ [k: string]: unknown | undefined;
2718
+ };
2719
+ /**
2720
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
2721
+ */
2722
+ message: string;
2723
+ [k: string]: unknown | undefined;
2724
+ }
2725
+ /**
2726
+ * A JSON-RPC error indicating that the method parameters are invalid or malformed.
2727
+ *
2728
+ * In MCP, this error is returned in various contexts when request parameters fail validation:
2729
+ *
2730
+ * - **Tools**: Unknown tool name or invalid tool arguments
2731
+ * - **Prompts**: Unknown prompt name or missing required arguments
2732
+ * - **Pagination**: Invalid or expired cursor values
2733
+ * - **Logging**: Invalid log level
2734
+ * - **Elicitation**: Server requests an elicitation mode not declared in client capabilities
2735
+ * - **Sampling**: Missing tool result or tool results mixed with other content
2736
+ *
2737
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2738
+ * via the `definition` "InvalidParamsError".
2739
+ */
2740
+ export interface InvalidParamsError {
2741
+ /**
2742
+ * The error type that occurred.
2743
+ */
2744
+ code: -32602;
2745
+ /**
2746
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
2747
+ */
2748
+ data?: {
2749
+ [k: string]: unknown | undefined;
2750
+ };
2751
+ /**
2752
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
2753
+ */
2754
+ message: string;
2755
+ [k: string]: unknown | undefined;
2756
+ }
2757
+ /**
2758
+ * A JSON-RPC error indicating that the request is not a valid request object. This error is returned when the message structure does not conform to the JSON-RPC 2.0 specification requirements for a request (e.g., missing required fields like `jsonrpc` or `method`, or using invalid types for these fields).
2759
+ *
2760
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2761
+ * via the `definition` "InvalidRequestError".
2762
+ */
2763
+ export interface InvalidRequestError {
2764
+ /**
2765
+ * The error type that occurred.
2766
+ */
2767
+ code: -32600;
2768
+ /**
2769
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
2770
+ */
2771
+ data?: {
2772
+ [k: string]: unknown | undefined;
2773
+ };
2774
+ /**
2775
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
2776
+ */
2777
+ message: string;
2778
+ [k: string]: unknown | undefined;
2779
+ }
2780
+ /**
2781
+ * A response to a request that indicates an error occurred.
2782
+ *
2783
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2784
+ * via the `definition` "JSONRPCErrorResponse".
2785
+ */
2786
+ export interface JSONRPCErrorResponse {
2787
+ error: Error;
2788
+ id?: RequestId;
2789
+ jsonrpc: "2.0";
2790
+ [k: string]: unknown | undefined;
2791
+ }
2792
+ /**
2793
+ * A request that expects a response.
2794
+ *
2795
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2796
+ * via the `definition` "JSONRPCRequest".
2797
+ */
2798
+ export interface JSONRPCRequest {
2799
+ id: RequestId;
2800
+ jsonrpc: "2.0";
2801
+ method: string;
2802
+ params?: {
2803
+ [k: string]: unknown | undefined;
2804
+ };
2805
+ [k: string]: unknown | undefined;
2806
+ }
2807
+ /**
2808
+ * A notification which does not expect a response.
2809
+ *
2810
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2811
+ * via the `definition` "JSONRPCNotification".
2812
+ */
2813
+ export interface JSONRPCNotification {
2814
+ jsonrpc: "2.0";
2815
+ method: string;
2816
+ params?: {
2817
+ [k: string]: unknown | undefined;
2818
+ };
2819
+ [k: string]: unknown | undefined;
2820
+ }
2821
+ /**
2822
+ * A successful (non-error) response to a request.
2823
+ *
2824
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2825
+ * via the `definition` "JSONRPCResultResponse".
2826
+ */
2827
+ export interface JSONRPCResultResponse {
2828
+ id: RequestId;
2829
+ jsonrpc: "2.0";
2830
+ result: Result;
2831
+ [k: string]: unknown | undefined;
2832
+ }
2833
+ /**
2834
+ * Common result fields.
2835
+ *
2836
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2837
+ * via the `definition` "Result".
2838
+ */
2839
+ export interface Result {
2840
+ _meta?: ResultMetaObject;
2841
+ /**
2842
+ * Indicates the type of the result, which allows the client to determine
2843
+ * how to parse the result object.
2844
+ *
2845
+ * Servers implementing this protocol version MUST include this field.
2846
+ * For backward compatibility, when a client receives a result from a
2847
+ * server implementing an earlier protocol version (which does not include
2848
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
2849
+ */
2850
+ resultType: string;
2851
+ [k: string]: unknown | undefined;
2852
+ }
2853
+ /**
2854
+ * The result returned by the server for a {@link ListPromptsRequestprompts/list} request.
2855
+ *
2856
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2857
+ * via the `definition` "ListPromptsResult".
2858
+ */
2859
+ export interface ListPromptsResult {
2860
+ _meta?: ResultMetaObject;
2861
+ /**
2862
+ * Indicates the intended scope of the cached response, analogous to HTTP
2863
+ * `Cache-Control: public` vs `Cache-Control: private`.
2864
+ *
2865
+ * - `"public"`: The response does not contain user-specific data. Any
2866
+ * client or intermediary (e.g., shared gateway, caching proxy) MAY cache
2867
+ * the response and serve it across authorization contexts.
2868
+ * - `"private"`: The response MAY be cached and reused only within the
2869
+ * same authorization context. Caches MUST NOT be shared across
2870
+ * authorization contexts (e.g., a different access token requires a
2871
+ * different cache).
2872
+ */
2873
+ cacheScope: "private" | "public";
2874
+ /**
2875
+ * An opaque token representing the pagination position after the last returned result.
2876
+ * If present, there may be more results available.
2877
+ */
2878
+ nextCursor?: string;
2879
+ prompts: Prompt[];
2880
+ /**
2881
+ * Indicates the type of the result, which allows the client to determine
2882
+ * how to parse the result object.
2883
+ *
2884
+ * Servers implementing this protocol version MUST include this field.
2885
+ * For backward compatibility, when a client receives a result from a
2886
+ * server implementing an earlier protocol version (which does not include
2887
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
2888
+ */
2889
+ resultType: string;
2890
+ /**
2891
+ * A hint from the server indicating how long (in milliseconds) the
2892
+ * client MAY cache this response before re-fetching. Semantics are
2893
+ * analogous to HTTP Cache-Control max-age.
2894
+ *
2895
+ * - If 0, The response SHOULD be considered immediately stale,
2896
+ * The client MAY re-fetch every time the result is needed.
2897
+ * - If positive, the client SHOULD consider the result fresh for this many
2898
+ * milliseconds after receiving the response.
2899
+ */
2900
+ ttlMs: number;
2901
+ [k: string]: unknown | undefined;
2902
+ }
2903
+ /**
2904
+ * A prompt or prompt template that the server offers.
2905
+ *
2906
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2907
+ * via the `definition` "Prompt".
2908
+ */
2909
+ export interface Prompt {
2910
+ _meta?: MetaObject;
2911
+ /**
2912
+ * A list of arguments to use for templating the prompt.
2913
+ */
2914
+ arguments?: PromptArgument[];
2915
+ /**
2916
+ * An optional description of what this prompt provides
2917
+ */
2918
+ description?: string;
2919
+ /**
2920
+ * Optional set of sized icons that the client can display in a user interface.
2921
+ *
2922
+ * Clients that support rendering icons MUST support at least the following MIME types:
2923
+ * - `image/png` - PNG images (safe, universal compatibility)
2924
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
2925
+ *
2926
+ * Clients that support rendering icons SHOULD also support:
2927
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
2928
+ * - `image/webp` - WebP images (modern, efficient format)
2929
+ */
2930
+ icons?: Icon[];
2931
+ /**
2932
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
2933
+ */
2934
+ name: string;
2935
+ /**
2936
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2937
+ * even by those unfamiliar with domain-specific terminology.
2938
+ *
2939
+ * If not provided, the name should be used for display (except for {@link Tool},
2940
+ * where `annotations.title` should be given precedence over using `name`,
2941
+ * if present).
2942
+ */
2943
+ title?: string;
2944
+ [k: string]: unknown | undefined;
2945
+ }
2946
+ /**
2947
+ * Describes an argument that a prompt can accept.
2948
+ *
2949
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2950
+ * via the `definition` "PromptArgument".
2951
+ */
2952
+ export interface PromptArgument {
2953
+ /**
2954
+ * A human-readable description of the argument.
2955
+ */
2956
+ description?: string;
2957
+ /**
2958
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
2959
+ */
2960
+ name: string;
2961
+ /**
2962
+ * Whether this argument must be provided.
2963
+ */
2964
+ required?: boolean;
2965
+ /**
2966
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2967
+ * even by those unfamiliar with domain-specific terminology.
2968
+ *
2969
+ * If not provided, the name should be used for display (except for {@link Tool},
2970
+ * where `annotations.title` should be given precedence over using `name`,
2971
+ * if present).
2972
+ */
2973
+ title?: string;
2974
+ [k: string]: unknown | undefined;
2975
+ }
2976
+ /**
2977
+ * A successful response from the server for a {@link ListPromptsRequestprompts/list} request.
2978
+ *
2979
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2980
+ * via the `definition` "ListPromptsResultResponse".
2981
+ */
2982
+ export interface ListPromptsResultResponse {
2983
+ id: RequestId;
2984
+ jsonrpc: "2.0";
2985
+ result: ListPromptsResult;
2986
+ [k: string]: unknown | undefined;
2987
+ }
2988
+ /**
2989
+ * The result returned by the server for a {@link ListResourceTemplatesRequestresources/templates/list} request.
2990
+ *
2991
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
2992
+ * via the `definition` "ListResourceTemplatesResult".
2993
+ */
2994
+ export interface ListResourceTemplatesResult {
2995
+ _meta?: ResultMetaObject;
2996
+ /**
2997
+ * Indicates the intended scope of the cached response, analogous to HTTP
2998
+ * `Cache-Control: public` vs `Cache-Control: private`.
2999
+ *
3000
+ * - `"public"`: The response does not contain user-specific data. Any
3001
+ * client or intermediary (e.g., shared gateway, caching proxy) MAY cache
3002
+ * the response and serve it across authorization contexts.
3003
+ * - `"private"`: The response MAY be cached and reused only within the
3004
+ * same authorization context. Caches MUST NOT be shared across
3005
+ * authorization contexts (e.g., a different access token requires a
3006
+ * different cache).
3007
+ */
3008
+ cacheScope: "private" | "public";
3009
+ /**
3010
+ * An opaque token representing the pagination position after the last returned result.
3011
+ * If present, there may be more results available.
3012
+ */
3013
+ nextCursor?: string;
3014
+ resourceTemplates: ResourceTemplate[];
3015
+ /**
3016
+ * Indicates the type of the result, which allows the client to determine
3017
+ * how to parse the result object.
3018
+ *
3019
+ * Servers implementing this protocol version MUST include this field.
3020
+ * For backward compatibility, when a client receives a result from a
3021
+ * server implementing an earlier protocol version (which does not include
3022
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
3023
+ */
3024
+ resultType: string;
3025
+ /**
3026
+ * A hint from the server indicating how long (in milliseconds) the
3027
+ * client MAY cache this response before re-fetching. Semantics are
3028
+ * analogous to HTTP Cache-Control max-age.
3029
+ *
3030
+ * - If 0, The response SHOULD be considered immediately stale,
3031
+ * The client MAY re-fetch every time the result is needed.
3032
+ * - If positive, the client SHOULD consider the result fresh for this many
3033
+ * milliseconds after receiving the response.
3034
+ */
3035
+ ttlMs: number;
3036
+ [k: string]: unknown | undefined;
3037
+ }
3038
+ /**
3039
+ * A template description for resources available on the server.
3040
+ *
3041
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3042
+ * via the `definition` "ResourceTemplate".
3043
+ */
3044
+ export interface ResourceTemplate {
3045
+ _meta?: MetaObject;
3046
+ annotations?: Annotations6;
3047
+ /**
3048
+ * A description of what this template is for.
3049
+ *
3050
+ * This 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.
3051
+ */
3052
+ description?: string;
3053
+ /**
3054
+ * Optional set of sized icons that the client can display in a user interface.
3055
+ *
3056
+ * Clients that support rendering icons MUST support at least the following MIME types:
3057
+ * - `image/png` - PNG images (safe, universal compatibility)
3058
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
3059
+ *
3060
+ * Clients that support rendering icons SHOULD also support:
3061
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
3062
+ * - `image/webp` - WebP images (modern, efficient format)
3063
+ */
3064
+ icons?: Icon[];
3065
+ /**
3066
+ * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
3067
+ */
3068
+ mimeType?: string;
3069
+ /**
3070
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
3071
+ */
3072
+ name: string;
3073
+ /**
3074
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
3075
+ * even by those unfamiliar with domain-specific terminology.
3076
+ *
3077
+ * If not provided, the name should be used for display (except for {@link Tool},
3078
+ * where `annotations.title` should be given precedence over using `name`,
3079
+ * if present).
3080
+ */
3081
+ title?: string;
3082
+ /**
3083
+ * A URI template (according to RFC 6570) that can be used to construct resource URIs.
3084
+ */
3085
+ uriTemplate: string;
3086
+ [k: string]: unknown | undefined;
3087
+ }
3088
+ /**
3089
+ * Optional annotations for the client.
3090
+ */
3091
+ export interface Annotations6 {
3092
+ /**
3093
+ * Describes who the intended audience of this object or data is.
3094
+ *
3095
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
3096
+ */
3097
+ audience?: Role[];
3098
+ /**
3099
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
3100
+ *
3101
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
3102
+ *
3103
+ * Examples: last activity timestamp in an open file, timestamp when the resource
3104
+ * was attached, etc.
3105
+ */
3106
+ lastModified?: string;
3107
+ /**
3108
+ * Describes how important this data is for operating the server.
3109
+ *
3110
+ * A value of 1 means "most important," and indicates that the data is
3111
+ * effectively required, while 0 means "least important," and indicates that
3112
+ * the data is entirely optional.
3113
+ */
3114
+ priority?: number;
3115
+ [k: string]: unknown | undefined;
3116
+ }
3117
+ /**
3118
+ * A successful response from the server for a {@link ListResourceTemplatesRequestresources/templates/list} request.
3119
+ *
3120
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3121
+ * via the `definition` "ListResourceTemplatesResultResponse".
3122
+ */
3123
+ export interface ListResourceTemplatesResultResponse {
3124
+ id: RequestId;
3125
+ jsonrpc: "2.0";
3126
+ result: ListResourceTemplatesResult;
3127
+ [k: string]: unknown | undefined;
3128
+ }
3129
+ /**
3130
+ * The result returned by the server for a {@link ListResourcesRequestresources/list} request.
3131
+ *
3132
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3133
+ * via the `definition` "ListResourcesResult".
3134
+ */
3135
+ export interface ListResourcesResult {
3136
+ _meta?: ResultMetaObject;
3137
+ /**
3138
+ * Indicates the intended scope of the cached response, analogous to HTTP
3139
+ * `Cache-Control: public` vs `Cache-Control: private`.
3140
+ *
3141
+ * - `"public"`: The response does not contain user-specific data. Any
3142
+ * client or intermediary (e.g., shared gateway, caching proxy) MAY cache
3143
+ * the response and serve it across authorization contexts.
3144
+ * - `"private"`: The response MAY be cached and reused only within the
3145
+ * same authorization context. Caches MUST NOT be shared across
3146
+ * authorization contexts (e.g., a different access token requires a
3147
+ * different cache).
3148
+ */
3149
+ cacheScope: "private" | "public";
3150
+ /**
3151
+ * An opaque token representing the pagination position after the last returned result.
3152
+ * If present, there may be more results available.
3153
+ */
3154
+ nextCursor?: string;
3155
+ resources: Resource[];
3156
+ /**
3157
+ * Indicates the type of the result, which allows the client to determine
3158
+ * how to parse the result object.
3159
+ *
3160
+ * Servers implementing this protocol version MUST include this field.
3161
+ * For backward compatibility, when a client receives a result from a
3162
+ * server implementing an earlier protocol version (which does not include
3163
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
3164
+ */
3165
+ resultType: string;
3166
+ /**
3167
+ * A hint from the server indicating how long (in milliseconds) the
3168
+ * client MAY cache this response before re-fetching. Semantics are
3169
+ * analogous to HTTP Cache-Control max-age.
3170
+ *
3171
+ * - If 0, The response SHOULD be considered immediately stale,
3172
+ * The client MAY re-fetch every time the result is needed.
3173
+ * - If positive, the client SHOULD consider the result fresh for this many
3174
+ * milliseconds after receiving the response.
3175
+ */
3176
+ ttlMs: number;
3177
+ [k: string]: unknown | undefined;
3178
+ }
3179
+ /**
3180
+ * A known resource that the server is capable of reading.
3181
+ *
3182
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3183
+ * via the `definition` "Resource".
3184
+ */
3185
+ export interface Resource {
3186
+ _meta?: MetaObject;
3187
+ annotations?: Annotations7;
3188
+ /**
3189
+ * A description of what this resource represents.
3190
+ *
3191
+ * This 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.
3192
+ */
3193
+ description?: string;
3194
+ /**
3195
+ * Optional set of sized icons that the client can display in a user interface.
3196
+ *
3197
+ * Clients that support rendering icons MUST support at least the following MIME types:
3198
+ * - `image/png` - PNG images (safe, universal compatibility)
3199
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
3200
+ *
3201
+ * Clients that support rendering icons SHOULD also support:
3202
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
3203
+ * - `image/webp` - WebP images (modern, efficient format)
3204
+ */
3205
+ icons?: Icon[];
3206
+ /**
3207
+ * The MIME type of this resource, if known.
3208
+ */
3209
+ mimeType?: string;
3210
+ /**
3211
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
3212
+ */
3213
+ name: string;
3214
+ /**
3215
+ * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
3216
+ *
3217
+ * This can be used by Hosts to display file sizes and estimate context window usage.
3218
+ */
3219
+ size?: number;
3220
+ /**
3221
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
3222
+ * even by those unfamiliar with domain-specific terminology.
3223
+ *
3224
+ * If not provided, the name should be used for display (except for {@link Tool},
3225
+ * where `annotations.title` should be given precedence over using `name`,
3226
+ * if present).
3227
+ */
3228
+ title?: string;
3229
+ /**
3230
+ * The URI of this resource.
3231
+ */
3232
+ uri: string;
3233
+ [k: string]: unknown | undefined;
3234
+ }
3235
+ /**
3236
+ * Optional annotations for the client.
3237
+ */
3238
+ export interface Annotations7 {
3239
+ /**
3240
+ * Describes who the intended audience of this object or data is.
3241
+ *
3242
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
3243
+ */
3244
+ audience?: Role[];
3245
+ /**
3246
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
3247
+ *
3248
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
3249
+ *
3250
+ * Examples: last activity timestamp in an open file, timestamp when the resource
3251
+ * was attached, etc.
3252
+ */
3253
+ lastModified?: string;
3254
+ /**
3255
+ * Describes how important this data is for operating the server.
3256
+ *
3257
+ * A value of 1 means "most important," and indicates that the data is
3258
+ * effectively required, while 0 means "least important," and indicates that
3259
+ * the data is entirely optional.
3260
+ */
3261
+ priority?: number;
3262
+ [k: string]: unknown | undefined;
3263
+ }
3264
+ /**
3265
+ * A successful response from the server for a {@link ListResourcesRequestresources/list} request.
3266
+ *
3267
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3268
+ * via the `definition` "ListResourcesResultResponse".
3269
+ */
3270
+ export interface ListResourcesResultResponse {
3271
+ id: RequestId;
3272
+ jsonrpc: "2.0";
3273
+ result: ListResourcesResult;
3274
+ [k: string]: unknown | undefined;
3275
+ }
3276
+ /**
3277
+ * The result returned by the server for a {@link ListToolsRequesttools/list} request.
3278
+ *
3279
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3280
+ * via the `definition` "ListToolsResult".
3281
+ */
3282
+ export interface ListToolsResult {
3283
+ _meta?: ResultMetaObject;
3284
+ /**
3285
+ * Indicates the intended scope of the cached response, analogous to HTTP
3286
+ * `Cache-Control: public` vs `Cache-Control: private`.
3287
+ *
3288
+ * - `"public"`: The response does not contain user-specific data. Any
3289
+ * client or intermediary (e.g., shared gateway, caching proxy) MAY cache
3290
+ * the response and serve it across authorization contexts.
3291
+ * - `"private"`: The response MAY be cached and reused only within the
3292
+ * same authorization context. Caches MUST NOT be shared across
3293
+ * authorization contexts (e.g., a different access token requires a
3294
+ * different cache).
3295
+ */
3296
+ cacheScope: "private" | "public";
3297
+ /**
3298
+ * An opaque token representing the pagination position after the last returned result.
3299
+ * If present, there may be more results available.
3300
+ */
3301
+ nextCursor?: string;
3302
+ /**
3303
+ * Indicates the type of the result, which allows the client to determine
3304
+ * how to parse the result object.
3305
+ *
3306
+ * Servers implementing this protocol version MUST include this field.
3307
+ * For backward compatibility, when a client receives a result from a
3308
+ * server implementing an earlier protocol version (which does not include
3309
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
3310
+ */
3311
+ resultType: string;
3312
+ tools: Tool[];
3313
+ /**
3314
+ * A hint from the server indicating how long (in milliseconds) the
3315
+ * client MAY cache this response before re-fetching. Semantics are
3316
+ * analogous to HTTP Cache-Control max-age.
3317
+ *
3318
+ * - If 0, The response SHOULD be considered immediately stale,
3319
+ * The client MAY re-fetch every time the result is needed.
3320
+ * - If positive, the client SHOULD consider the result fresh for this many
3321
+ * milliseconds after receiving the response.
3322
+ */
3323
+ ttlMs: number;
3324
+ [k: string]: unknown | undefined;
3325
+ }
3326
+ /**
3327
+ * A successful response from the server for a {@link ListToolsRequesttools/list} request.
3328
+ *
3329
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3330
+ * via the `definition` "ListToolsResultResponse".
3331
+ */
3332
+ export interface ListToolsResultResponse {
3333
+ id: RequestId;
3334
+ jsonrpc: "2.0";
3335
+ result: ListToolsResult;
3336
+ [k: string]: unknown | undefined;
3337
+ }
3338
+ /**
3339
+ * JSONRPCNotification of a log message passed from server to client. The client opts in by setting `"io.modelcontextprotocol/logLevel"` in a request's `_meta`.
3340
+ *
3341
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3342
+ * via the `definition` "LoggingMessageNotification".
3343
+ */
3344
+ export interface LoggingMessageNotification {
3345
+ jsonrpc: "2.0";
3346
+ method: "notifications/message";
3347
+ params: LoggingMessageNotificationParams;
3348
+ [k: string]: unknown | undefined;
3349
+ }
3350
+ /**
3351
+ * Parameters for a `notifications/message` notification.
3352
+ *
3353
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3354
+ * via the `definition` "LoggingMessageNotificationParams".
3355
+ */
3356
+ export interface LoggingMessageNotificationParams {
3357
+ _meta?: NotificationMetaObject;
3358
+ /**
3359
+ * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
3360
+ */
3361
+ data: {
3362
+ [k: string]: unknown | undefined;
3363
+ };
3364
+ /**
3365
+ * The severity of this log message.
3366
+ */
3367
+ level: "alert" | "critical" | "debug" | "emergency" | "error" | "info" | "notice" | "warning";
3368
+ /**
3369
+ * An optional name of the logger issuing this message.
3370
+ */
3371
+ logger?: string;
3372
+ [k: string]: unknown | undefined;
3373
+ }
3374
+ /**
3375
+ * A JSON-RPC error indicating that the requested method does not exist or is not available.
3376
+ *
3377
+ * In MCP, a server returns this error when a client invokes a method the server does not implement — either a genuinely unknown method, or one gated behind a server capability the server did not advertise (e.g., calling `prompts/list` when the `prompts` capability was not advertised).
3378
+ *
3379
+ * A request that requires a client capability the client did not declare is signalled instead by {@link MissingRequiredClientCapabilityError} (`-32021`).
3380
+ *
3381
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3382
+ * via the `definition` "MethodNotFoundError".
3383
+ */
3384
+ export interface MethodNotFoundError {
3385
+ /**
3386
+ * The error type that occurred.
3387
+ */
3388
+ code: -32601;
3389
+ /**
3390
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
3391
+ */
3392
+ data?: {
3393
+ [k: string]: unknown | undefined;
3394
+ };
3395
+ /**
3396
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
3397
+ */
3398
+ message: string;
3399
+ [k: string]: unknown | undefined;
3400
+ }
3401
+ /**
3402
+ * Returned when processing a request requires a capability the client did not
3403
+ * declare in `clientCapabilities`. For HTTP, the response status code MUST be
3404
+ * `400 Bad Request`.
3405
+ *
3406
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3407
+ * via the `definition` "MissingRequiredClientCapabilityError".
3408
+ */
3409
+ export interface MissingRequiredClientCapabilityError {
3410
+ error: Error & {
3411
+ code: -32021;
3412
+ data: {
3413
+ requiredCapabilities: ClientCapabilities2;
3414
+ [k: string]: unknown | undefined;
3415
+ };
3416
+ [k: string]: unknown | undefined;
3417
+ };
3418
+ id?: RequestId;
3419
+ jsonrpc: "2.0";
3420
+ [k: string]: unknown | undefined;
3421
+ }
3422
+ /**
3423
+ * The capabilities the server requires from the client to process this request.
3424
+ */
3425
+ export interface ClientCapabilities2 {
3426
+ /**
3427
+ * Present if the client supports elicitation from the server.
3428
+ */
3429
+ elicitation?: {
3430
+ form?: JSONObject;
3431
+ url?: JSONObject;
3432
+ [k: string]: unknown | undefined;
3433
+ };
3434
+ /**
3435
+ * Experimental, non-standard capabilities that the client supports.
3436
+ */
3437
+ experimental?: {
3438
+ [k: string]: JSONObject | undefined;
3439
+ };
3440
+ /**
3441
+ * Optional MCP extensions that the client supports. Keys are extension identifiers
3442
+ * (e.g., "io.modelcontextprotocol/oauth-client-credentials"), and values are
3443
+ * per-extension settings objects. An empty object indicates support with no settings.
3444
+ *
3445
+ * Keys MUST follow the {@link MetaObject`_meta` key naming rules}, with a
3446
+ * mandatory prefix.
3447
+ */
3448
+ extensions?: {
3449
+ [k: string]: JSONObject | undefined;
3450
+ };
3451
+ /**
3452
+ * Present if the client supports listing roots.
3453
+ */
3454
+ roots?: {
3455
+ [k: string]: unknown | undefined;
3456
+ };
3457
+ /**
3458
+ * Present if the client supports sampling from an LLM.
3459
+ */
3460
+ sampling?: {
3461
+ context?: JSONObject1;
3462
+ tools?: JSONObject2;
3463
+ [k: string]: unknown | undefined;
3464
+ };
3465
+ [k: string]: unknown | undefined;
3466
+ }
3467
+ /**
3468
+ * The server's preferences for model selection, requested of the client during sampling.
3469
+ *
3470
+ * Because LLMs can vary along multiple dimensions, choosing the "best" model is
3471
+ * rarely straightforward. Different models excel in different areas—some are
3472
+ * faster but less capable, others are more capable but more expensive, and so
3473
+ * on. This interface allows servers to express their priorities across multiple
3474
+ * dimensions to help clients make an appropriate selection for their use case.
3475
+ *
3476
+ * These preferences are always advisory. The client MAY ignore them. It is also
3477
+ * up to the client to decide how to interpret these preferences and how to
3478
+ * balance them against other considerations.
3479
+ *
3480
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3481
+ * via the `definition` "ModelPreferences".
3482
+ */
3483
+ export interface ModelPreferences1 {
3484
+ /**
3485
+ * How much to prioritize cost when selecting a model. A value of 0 means cost
3486
+ * is not important, while a value of 1 means cost is the most important
3487
+ * factor.
3488
+ */
3489
+ costPriority?: number;
3490
+ /**
3491
+ * Optional hints to use for model selection.
3492
+ *
3493
+ * If multiple hints are specified, the client MUST evaluate them in order
3494
+ * (such that the first match is taken).
3495
+ *
3496
+ * The client SHOULD prioritize these hints over the numeric priorities, but
3497
+ * MAY still use the priorities to select from ambiguous matches.
3498
+ */
3499
+ hints?: ModelHint[];
3500
+ /**
3501
+ * How much to prioritize intelligence and capabilities when selecting a
3502
+ * model. A value of 0 means intelligence is not important, while a value of 1
3503
+ * means intelligence is the most important factor.
3504
+ */
3505
+ intelligencePriority?: number;
3506
+ /**
3507
+ * How much to prioritize sampling speed (latency) when selecting a model. A
3508
+ * value of 0 means speed is not important, while a value of 1 means speed is
3509
+ * the most important factor.
3510
+ */
3511
+ speedPriority?: number;
3512
+ [k: string]: unknown | undefined;
3513
+ }
3514
+ /**
3515
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3516
+ * via the `definition` "Notification".
3517
+ */
3518
+ export interface Notification {
3519
+ method: string;
3520
+ params?: {
3521
+ [k: string]: unknown | undefined;
3522
+ };
3523
+ [k: string]: unknown | undefined;
3524
+ }
3525
+ /**
3526
+ * Common params for any notification.
3527
+ *
3528
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3529
+ * via the `definition` "NotificationParams".
3530
+ */
3531
+ export interface NotificationParams {
3532
+ _meta?: NotificationMetaObject;
3533
+ [k: string]: unknown | undefined;
3534
+ }
3535
+ /**
3536
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3537
+ * via the `definition` "PaginatedRequest".
3538
+ */
3539
+ export interface PaginatedRequest {
3540
+ id: RequestId;
3541
+ jsonrpc: "2.0";
3542
+ method: string;
3543
+ params: PaginatedRequestParams;
3544
+ [k: string]: unknown | undefined;
3545
+ }
3546
+ /**
3547
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3548
+ * via the `definition` "PaginatedResult".
3549
+ */
3550
+ export interface PaginatedResult {
3551
+ _meta?: ResultMetaObject;
3552
+ /**
3553
+ * An opaque token representing the pagination position after the last returned result.
3554
+ * If present, there may be more results available.
3555
+ */
3556
+ nextCursor?: string;
3557
+ /**
3558
+ * Indicates the type of the result, which allows the client to determine
3559
+ * how to parse the result object.
3560
+ *
3561
+ * Servers implementing this protocol version MUST include this field.
3562
+ * For backward compatibility, when a client receives a result from a
3563
+ * server implementing an earlier protocol version (which does not include
3564
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
3565
+ */
3566
+ resultType: string;
3567
+ [k: string]: unknown | undefined;
3568
+ }
3569
+ /**
3570
+ * A JSON-RPC error indicating that invalid JSON was received by the server. This error is returned when the server cannot parse the JSON text of a message.
3571
+ *
3572
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3573
+ * via the `definition` "ParseError".
3574
+ */
3575
+ export interface ParseError {
3576
+ /**
3577
+ * The error type that occurred.
3578
+ */
3579
+ code: -32700;
3580
+ /**
3581
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
3582
+ */
3583
+ data?: {
3584
+ [k: string]: unknown | undefined;
3585
+ };
3586
+ /**
3587
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
3588
+ */
3589
+ message: string;
3590
+ [k: string]: unknown | undefined;
3591
+ }
3592
+ /**
3593
+ * An out-of-band notification used to inform the receiver of a progress update for a long-running request.
3594
+ *
3595
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3596
+ * via the `definition` "ProgressNotification".
3597
+ */
3598
+ export interface ProgressNotification {
3599
+ jsonrpc: "2.0";
3600
+ method: "notifications/progress";
3601
+ params: ProgressNotificationParams;
3602
+ [k: string]: unknown | undefined;
3603
+ }
3604
+ /**
3605
+ * Parameters for a {@link ProgressNotificationnotifications/progress} notification.
3606
+ *
3607
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3608
+ * via the `definition` "ProgressNotificationParams".
3609
+ */
3610
+ export interface ProgressNotificationParams {
3611
+ _meta?: NotificationMetaObject;
3612
+ /**
3613
+ * An optional message describing the current progress.
3614
+ */
3615
+ message?: string;
3616
+ /**
3617
+ * The progress thus far. This should increase every time progress is made, even if the total is unknown.
3618
+ */
3619
+ progress: number;
3620
+ /**
3621
+ * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
3622
+ */
3623
+ progressToken: string | number;
3624
+ /**
3625
+ * Total number of items to process (or total progress required), if known.
3626
+ */
3627
+ total?: number;
3628
+ [k: string]: unknown | undefined;
3629
+ }
3630
+ /**
3631
+ * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This is only delivered on a {@link SubscriptionsListenRequestsubscriptions/listen} stream when the client requested it via the `promptsListChanged` filter field.
3632
+ *
3633
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3634
+ * via the `definition` "PromptListChangedNotification".
3635
+ */
3636
+ export interface PromptListChangedNotification {
3637
+ jsonrpc: "2.0";
3638
+ method: "notifications/prompts/list_changed";
3639
+ params?: NotificationParams;
3640
+ [k: string]: unknown | undefined;
3641
+ }
3642
+ /**
3643
+ * The result returned by the server for a {@link ReadResourceRequestresources/read} request.
3644
+ *
3645
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3646
+ * via the `definition` "ReadResourceResult".
3647
+ */
3648
+ export interface ReadResourceResult {
3649
+ _meta?: ResultMetaObject;
3650
+ /**
3651
+ * Indicates the intended scope of the cached response, analogous to HTTP
3652
+ * `Cache-Control: public` vs `Cache-Control: private`.
3653
+ *
3654
+ * - `"public"`: The response does not contain user-specific data. Any
3655
+ * client or intermediary (e.g., shared gateway, caching proxy) MAY cache
3656
+ * the response and serve it across authorization contexts.
3657
+ * - `"private"`: The response MAY be cached and reused only within the
3658
+ * same authorization context. Caches MUST NOT be shared across
3659
+ * authorization contexts (e.g., a different access token requires a
3660
+ * different cache).
3661
+ */
3662
+ cacheScope: "private" | "public";
3663
+ contents: (TextResourceContents | BlobResourceContents)[];
3664
+ /**
3665
+ * Indicates the type of the result, which allows the client to determine
3666
+ * how to parse the result object.
3667
+ *
3668
+ * Servers implementing this protocol version MUST include this field.
3669
+ * For backward compatibility, when a client receives a result from a
3670
+ * server implementing an earlier protocol version (which does not include
3671
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
3672
+ */
3673
+ resultType: string;
3674
+ /**
3675
+ * A hint from the server indicating how long (in milliseconds) the
3676
+ * client MAY cache this response before re-fetching. Semantics are
3677
+ * analogous to HTTP Cache-Control max-age.
3678
+ *
3679
+ * - If 0, The response SHOULD be considered immediately stale,
3680
+ * The client MAY re-fetch every time the result is needed.
3681
+ * - If positive, the client SHOULD consider the result fresh for this many
3682
+ * milliseconds after receiving the response.
3683
+ */
3684
+ ttlMs: number;
3685
+ [k: string]: unknown | undefined;
3686
+ }
3687
+ /**
3688
+ * A successful response from the server for a {@link ReadResourceRequestresources/read} request.
3689
+ *
3690
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3691
+ * via the `definition` "ReadResourceResultResponse".
3692
+ */
3693
+ export interface ReadResourceResultResponse {
3694
+ id: RequestId;
3695
+ jsonrpc: "2.0";
3696
+ result: InputRequiredResult | ReadResourceResult;
3697
+ [k: string]: unknown | undefined;
3698
+ }
3699
+ /**
3700
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3701
+ * via the `definition` "Request".
3702
+ */
3703
+ export interface Request {
3704
+ method: string;
3705
+ params?: {
3706
+ [k: string]: unknown | undefined;
3707
+ };
3708
+ [k: string]: unknown | undefined;
3709
+ }
3710
+ /**
3711
+ * The contents of a specific resource or sub-resource.
3712
+ *
3713
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3714
+ * via the `definition` "ResourceContents".
3715
+ */
3716
+ export interface ResourceContents {
3717
+ _meta?: MetaObject;
3718
+ /**
3719
+ * The MIME type of this resource, if known.
3720
+ */
3721
+ mimeType?: string;
3722
+ /**
3723
+ * The URI of this resource.
3724
+ */
3725
+ uri: string;
3726
+ [k: string]: unknown | undefined;
3727
+ }
3728
+ /**
3729
+ * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This is only delivered on a {@link SubscriptionsListenRequestsubscriptions/listen} stream when the client requested it via the `resourcesListChanged` filter field.
3730
+ *
3731
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3732
+ * via the `definition` "ResourceListChangedNotification".
3733
+ */
3734
+ export interface ResourceListChangedNotification {
3735
+ jsonrpc: "2.0";
3736
+ method: "notifications/resources/list_changed";
3737
+ params?: NotificationParams;
3738
+ [k: string]: unknown | undefined;
3739
+ }
3740
+ /**
3741
+ * Common params for resource-related requests.
3742
+ *
3743
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3744
+ * via the `definition` "ResourceRequestParams".
3745
+ */
3746
+ export interface ResourceRequestParams {
3747
+ _meta: RequestMetaObject;
3748
+ /**
3749
+ * The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.
3750
+ */
3751
+ uri: string;
3752
+ [k: string]: unknown | undefined;
3753
+ }
3754
+ /**
3755
+ * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This is only sent for resources the client opted in to via the `resourceSubscriptions` field of a {@link SubscriptionsListenRequestsubscriptions/listen} request.
3756
+ *
3757
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3758
+ * via the `definition` "ResourceUpdatedNotification".
3759
+ */
3760
+ export interface ResourceUpdatedNotification {
3761
+ jsonrpc: "2.0";
3762
+ method: "notifications/resources/updated";
3763
+ params: ResourceUpdatedNotificationParams;
3764
+ [k: string]: unknown | undefined;
3765
+ }
3766
+ /**
3767
+ * Parameters for a `notifications/resources/updated` notification.
3768
+ *
3769
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3770
+ * via the `definition` "ResourceUpdatedNotificationParams".
3771
+ */
3772
+ export interface ResourceUpdatedNotificationParams {
3773
+ _meta?: NotificationMetaObject;
3774
+ /**
3775
+ * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
3776
+ */
3777
+ uri: string;
3778
+ [k: string]: unknown | undefined;
3779
+ }
3780
+ /**
3781
+ * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
3782
+ *
3783
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3784
+ * via the `definition` "ServerCapabilities".
3785
+ */
3786
+ export interface ServerCapabilities1 {
3787
+ completions?: JSONObject4;
3788
+ /**
3789
+ * Experimental, non-standard capabilities that the server supports.
3790
+ */
3791
+ experimental?: {
3792
+ [k: string]: JSONObject | undefined;
3793
+ };
3794
+ /**
3795
+ * Optional MCP extensions that the server supports. Keys are extension identifiers
3796
+ * (e.g., "io.modelcontextprotocol/tasks"), and values are per-extension settings
3797
+ * objects. An empty object indicates support with no settings.
3798
+ *
3799
+ * Keys MUST follow the {@link MetaObject`_meta` key naming rules}, with a
3800
+ * mandatory prefix.
3801
+ */
3802
+ extensions?: {
3803
+ [k: string]: JSONObject | undefined;
3804
+ };
3805
+ logging?: JSONObject5;
3806
+ /**
3807
+ * Present if the server offers any prompt templates.
3808
+ */
3809
+ prompts?: {
3810
+ /**
3811
+ * Whether this server supports notifications for changes to the prompt list.
3812
+ */
3813
+ listChanged?: boolean;
3814
+ [k: string]: unknown | undefined;
3815
+ };
3816
+ /**
3817
+ * Present if the server offers any resources to read.
3818
+ */
3819
+ resources?: {
3820
+ /**
3821
+ * Whether this server supports notifications for changes to the resource list.
3822
+ */
3823
+ listChanged?: boolean;
3824
+ /**
3825
+ * Whether this server supports subscribing to resource updates.
3826
+ */
3827
+ subscribe?: boolean;
3828
+ [k: string]: unknown | undefined;
3829
+ };
3830
+ /**
3831
+ * Present if the server offers any tools to call.
3832
+ */
3833
+ tools?: {
3834
+ /**
3835
+ * Whether this server supports notifications for changes to the tool list.
3836
+ */
3837
+ listChanged?: boolean;
3838
+ [k: string]: unknown | undefined;
3839
+ };
3840
+ [k: string]: unknown | undefined;
3841
+ }
3842
+ /**
3843
+ * Sent by the server to acknowledge that a
3844
+ * {@link SubscriptionsListenRequestsubscriptions/listen} subscription has been
3845
+ * established and to report which notification types it agreed to honor.
3846
+ *
3847
+ * This notification MUST be the first message the server sends carrying the
3848
+ * subscription's ID in `io.modelcontextprotocol/subscriptionId`. The server MUST
3849
+ * NOT send any notification on the subscription before acknowledging it. On
3850
+ * stdio, where every subscription shares one channel, this ordering is defined
3851
+ * per subscription ID and not per channel: messages belonging to other
3852
+ * subscriptions MAY be interleaved before it.
3853
+ *
3854
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3855
+ * via the `definition` "SubscriptionsAcknowledgedNotification".
3856
+ */
3857
+ export interface SubscriptionsAcknowledgedNotification {
3858
+ jsonrpc: "2.0";
3859
+ method: "notifications/subscriptions/acknowledged";
3860
+ params: SubscriptionsAcknowledgedNotificationParams;
3861
+ [k: string]: unknown | undefined;
3862
+ }
3863
+ /**
3864
+ * Parameters for a {@link SubscriptionsAcknowledgedNotificationnotifications/subscriptions/acknowledged} notification.
3865
+ *
3866
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3867
+ * via the `definition` "SubscriptionsAcknowledgedNotificationParams".
3868
+ */
3869
+ export interface SubscriptionsAcknowledgedNotificationParams {
3870
+ _meta?: NotificationMetaObject;
3871
+ notifications: SubscriptionFilter1;
3872
+ [k: string]: unknown | undefined;
3873
+ }
3874
+ /**
3875
+ * The subset of requested notification types the server agreed to honor.
3876
+ * Only includes notification types the server actually supports; if the
3877
+ * client requested an unsupported type (e.g., `promptsListChanged` when
3878
+ * the server has no prompts), it is omitted from this set.
3879
+ */
3880
+ export interface SubscriptionFilter1 {
3881
+ /**
3882
+ * If true, receive {@link PromptListChangedNotificationnotifications/prompts/list_changed}.
3883
+ */
3884
+ promptsListChanged?: boolean;
3885
+ /**
3886
+ * Subscribe to {@link ResourceUpdatedNotificationnotifications/resources/updated} for these resource URIs.
3887
+ * Replaces the former `resources/subscribe` RPC.
3888
+ */
3889
+ resourceSubscriptions?: string[];
3890
+ /**
3891
+ * If true, receive {@link ResourceListChangedNotificationnotifications/resources/list_changed}.
3892
+ */
3893
+ resourcesListChanged?: boolean;
3894
+ /**
3895
+ * If true, receive {@link ToolListChangedNotificationnotifications/tools/list_changed}.
3896
+ */
3897
+ toolsListChanged?: boolean;
3898
+ [k: string]: unknown | undefined;
3899
+ }
3900
+ /**
3901
+ * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This is only delivered on a {@link SubscriptionsListenRequestsubscriptions/listen} stream when the client requested it via the `toolsListChanged` filter field.
3902
+ *
3903
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3904
+ * via the `definition` "ToolListChangedNotification".
3905
+ */
3906
+ export interface ToolListChangedNotification {
3907
+ jsonrpc: "2.0";
3908
+ method: "notifications/tools/list_changed";
3909
+ params?: NotificationParams;
3910
+ [k: string]: unknown | undefined;
3911
+ }
3912
+ /**
3913
+ * The response to a {@link SubscriptionsListenRequestsubscriptions/listen}
3914
+ * request, signalling that the subscription has ended gracefully (for example,
3915
+ * during server shutdown). Because the listen stream is long-lived, this result
3916
+ * is sent only when the server tears the subscription down; an abrupt transport
3917
+ * close carries no response. The result body is otherwise empty.
3918
+ *
3919
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3920
+ * via the `definition` "SubscriptionsListenResult".
3921
+ */
3922
+ export interface SubscriptionsListenResult {
3923
+ _meta: SubscriptionsListenResultMetaObject;
3924
+ /**
3925
+ * Indicates the type of the result, which allows the client to determine
3926
+ * how to parse the result object.
3927
+ *
3928
+ * Servers implementing this protocol version MUST include this field.
3929
+ * For backward compatibility, when a client receives a result from a
3930
+ * server implementing an earlier protocol version (which does not include
3931
+ * `resultType`), the client MUST treat the absent field as `"complete"`.
3932
+ */
3933
+ resultType: string;
3934
+ [k: string]: unknown | undefined;
3935
+ }
3936
+ /**
3937
+ * Extends {@link ResultMetaObject} with the subscription-stream identifier carried by a
3938
+ * {@link SubscriptionsListenResult}. All key naming rules from `MetaObject` apply.
3939
+ *
3940
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
3941
+ * via the `definition` "SubscriptionsListenResultMetaObject".
3942
+ */
3943
+ export interface SubscriptionsListenResultMetaObject {
3944
+ "io.modelcontextprotocol/serverInfo"?: Implementation3;
3945
+ /**
3946
+ * A uniquely identifying ID for a request in JSON-RPC.
3947
+ */
3948
+ "io.modelcontextprotocol/subscriptionId": string | number;
3949
+ [k: string]: unknown | undefined;
3950
+ }
3951
+ /**
3952
+ * Identifies the server software producing the response. Servers SHOULD
3953
+ * include this field on every response unless specifically configured not
3954
+ * to do so.
3955
+ *
3956
+ * The {@link Implementation} schema requires `name` and `version`; other
3957
+ * fields are optional.
3958
+ *
3959
+ * The value is self-reported by the server and is not verified by the
3960
+ * protocol. It is intended for display, logging, and debugging. Clients
3961
+ * SHOULD NOT use it to change their behavior, and SHOULD NOT rely on it for
3962
+ * security decisions.
3963
+ */
3964
+ export interface Implementation3 {
3965
+ /**
3966
+ * An optional human-readable description of what this implementation does.
3967
+ *
3968
+ * This can be used by clients or servers to provide context about their purpose
3969
+ * and capabilities. For example, a server might describe the types of resources
3970
+ * or tools it provides, while a client might describe its intended use case.
3971
+ */
3972
+ description?: string;
3973
+ /**
3974
+ * Optional set of sized icons that the client can display in a user interface.
3975
+ *
3976
+ * Clients that support rendering icons MUST support at least the following MIME types:
3977
+ * - `image/png` - PNG images (safe, universal compatibility)
3978
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
3979
+ *
3980
+ * Clients that support rendering icons SHOULD also support:
3981
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
3982
+ * - `image/webp` - WebP images (modern, efficient format)
3983
+ */
3984
+ icons?: Icon[];
3985
+ /**
3986
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
3987
+ */
3988
+ name: string;
3989
+ /**
3990
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
3991
+ * even by those unfamiliar with domain-specific terminology.
3992
+ *
3993
+ * If not provided, the name should be used for display (except for {@link Tool},
3994
+ * where `annotations.title` should be given precedence over using `name`,
3995
+ * if present).
3996
+ */
3997
+ title?: string;
3998
+ /**
3999
+ * The version of this implementation.
4000
+ */
4001
+ version: string;
4002
+ /**
4003
+ * An optional URL of the website for this implementation.
4004
+ */
4005
+ websiteUrl?: string;
4006
+ [k: string]: unknown | undefined;
4007
+ }
4008
+ /**
4009
+ * The set of notification types a client may opt in to on a
4010
+ * {@link SubscriptionsListenRequestsubscriptions/listen} request.
4011
+ *
4012
+ * Each notification type is **opt-in**; the server **MUST NOT** send
4013
+ * notification types the client has not explicitly requested here.
4014
+ *
4015
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
4016
+ * via the `definition` "SubscriptionFilter".
4017
+ */
4018
+ export interface SubscriptionFilter2 {
4019
+ /**
4020
+ * If true, receive {@link PromptListChangedNotificationnotifications/prompts/list_changed}.
4021
+ */
4022
+ promptsListChanged?: boolean;
4023
+ /**
4024
+ * Subscribe to {@link ResourceUpdatedNotificationnotifications/resources/updated} for these resource URIs.
4025
+ * Replaces the former `resources/subscribe` RPC.
4026
+ */
4027
+ resourceSubscriptions?: string[];
4028
+ /**
4029
+ * If true, receive {@link ResourceListChangedNotificationnotifications/resources/list_changed}.
4030
+ */
4031
+ resourcesListChanged?: boolean;
4032
+ /**
4033
+ * If true, receive {@link ToolListChangedNotificationnotifications/tools/list_changed}.
4034
+ */
4035
+ toolsListChanged?: boolean;
4036
+ [k: string]: unknown | undefined;
4037
+ }
4038
+ /**
4039
+ * A successful response from the server for a {@link SubscriptionsListenRequestsubscriptions/listen}
4040
+ * request, sent when the server tears the subscription down gracefully.
4041
+ *
4042
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
4043
+ * via the `definition` "SubscriptionsListenResultResponse".
4044
+ */
4045
+ export interface SubscriptionsListenResultResponse {
4046
+ id: RequestId;
4047
+ jsonrpc: "2.0";
4048
+ result: SubscriptionsListenResult;
4049
+ [k: string]: unknown | undefined;
4050
+ }
4051
+ /**
4052
+ * Additional properties describing a {@link Tool} to clients.
4053
+ *
4054
+ * NOTE: all properties in `ToolAnnotations` are **hints**.
4055
+ * They are not guaranteed to provide a faithful description of
4056
+ * tool behavior (including descriptive properties like `title`).
4057
+ *
4058
+ * Clients should never make tool use decisions based on `ToolAnnotations`
4059
+ * received from untrusted servers.
4060
+ *
4061
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
4062
+ * via the `definition` "ToolAnnotations".
4063
+ */
4064
+ export interface ToolAnnotations1 {
4065
+ /**
4066
+ * If true, the tool may perform destructive updates to its environment.
4067
+ * If false, the tool performs only additive updates.
4068
+ *
4069
+ * (This property is meaningful only when `readOnlyHint == false`)
4070
+ *
4071
+ * Default: true
4072
+ */
4073
+ destructiveHint?: boolean;
4074
+ /**
4075
+ * If true, calling the tool repeatedly with the same arguments
4076
+ * will have no additional effect on its environment.
4077
+ *
4078
+ * (This property is meaningful only when `readOnlyHint == false`)
4079
+ *
4080
+ * Default: false
4081
+ */
4082
+ idempotentHint?: boolean;
4083
+ /**
4084
+ * If true, this tool may interact with an "open world" of external
4085
+ * entities. If false, the tool's domain of interaction is closed.
4086
+ * For example, the world of a web search tool is open, whereas that
4087
+ * of a memory tool is not.
4088
+ *
4089
+ * Default: true
4090
+ */
4091
+ openWorldHint?: boolean;
4092
+ /**
4093
+ * If true, the tool does not modify its environment.
4094
+ *
4095
+ * Default: false
4096
+ */
4097
+ readOnlyHint?: boolean;
4098
+ /**
4099
+ * A human-readable title for the tool.
4100
+ */
4101
+ title?: string;
4102
+ [k: string]: unknown | undefined;
4103
+ }
4104
+ /**
4105
+ * Controls tool selection behavior for sampling requests.
4106
+ *
4107
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
4108
+ * via the `definition` "ToolChoice".
4109
+ */
4110
+ export interface ToolChoice1 {
4111
+ /**
4112
+ * Controls the tool use ability of the model:
4113
+ * - `"auto"`: Model decides whether to use tools (default)
4114
+ * - `"required"`: Model MUST use at least one tool before completing
4115
+ * - `"none"`: Model MUST NOT use any tools
4116
+ */
4117
+ mode?: "auto" | "none" | "required";
4118
+ [k: string]: unknown | undefined;
4119
+ }
4120
+ /**
4121
+ * Returned when the request's protocol version is unknown to the server or
4122
+ * unsupported (e.g., a known experimental or draft version the server has
4123
+ * chosen not to implement). For HTTP, the response status code MUST be
4124
+ * `400 Bad Request`.
4125
+ *
4126
+ * This interface was referenced by `McpSchema20260728`'s JSON-Schema
4127
+ * via the `definition` "UnsupportedProtocolVersionError".
4128
+ */
4129
+ export interface UnsupportedProtocolVersionError {
4130
+ error: Error & {
4131
+ code: -32022;
4132
+ data: {
4133
+ /**
4134
+ * The protocol version that was requested by the client.
4135
+ */
4136
+ requested: string;
4137
+ /**
4138
+ * Protocol versions the server supports. The client should choose a
4139
+ * mutually supported version from this list and retry.
4140
+ */
4141
+ supported: string[];
4142
+ [k: string]: unknown | undefined;
4143
+ };
4144
+ [k: string]: unknown | undefined;
4145
+ };
4146
+ id?: RequestId;
4147
+ jsonrpc: "2.0";
4148
+ [k: string]: unknown | undefined;
4149
+ }
4150
+ //# sourceMappingURL=types.d.ts.map