x-m32-mcp-server 2.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 (929) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +281 -0
  3. package/dist/cjs/client/auth.d.ts +270 -0
  4. package/dist/cjs/client/auth.d.ts.map +1 -0
  5. package/dist/cjs/client/auth.js +747 -0
  6. package/dist/cjs/client/auth.js.map +1 -0
  7. package/dist/cjs/client/index.d.ts +913 -0
  8. package/dist/cjs/client/index.d.ts.map +1 -0
  9. package/dist/cjs/client/index.js +367 -0
  10. package/dist/cjs/client/index.js.map +1 -0
  11. package/dist/cjs/client/middleware.d.ts +169 -0
  12. package/dist/cjs/client/middleware.d.ts.map +1 -0
  13. package/dist/cjs/client/middleware.js +252 -0
  14. package/dist/cjs/client/middleware.js.map +1 -0
  15. package/dist/cjs/client/sse.d.ts +80 -0
  16. package/dist/cjs/client/sse.d.ts.map +1 -0
  17. package/dist/cjs/client/sse.js +211 -0
  18. package/dist/cjs/client/sse.js.map +1 -0
  19. package/dist/cjs/client/stdio.d.ts +78 -0
  20. package/dist/cjs/client/stdio.d.ts.map +1 -0
  21. package/dist/cjs/client/stdio.js +184 -0
  22. package/dist/cjs/client/stdio.js.map +1 -0
  23. package/dist/cjs/client/streamableHttp.d.ts +158 -0
  24. package/dist/cjs/client/streamableHttp.d.ts.map +1 -0
  25. package/dist/cjs/client/streamableHttp.js +406 -0
  26. package/dist/cjs/client/streamableHttp.js.map +1 -0
  27. package/dist/cjs/client/websocket.d.ts +17 -0
  28. package/dist/cjs/client/websocket.d.ts.map +1 -0
  29. package/dist/cjs/client/websocket.js +63 -0
  30. package/dist/cjs/client/websocket.js.map +1 -0
  31. package/dist/cjs/examples/client/multipleClientsParallel.d.ts +2 -0
  32. package/dist/cjs/examples/client/multipleClientsParallel.d.ts.map +1 -0
  33. package/dist/cjs/examples/client/multipleClientsParallel.js +134 -0
  34. package/dist/cjs/examples/client/multipleClientsParallel.js.map +1 -0
  35. package/dist/cjs/examples/client/parallelToolCallsClient.d.ts +2 -0
  36. package/dist/cjs/examples/client/parallelToolCallsClient.d.ts.map +1 -0
  37. package/dist/cjs/examples/client/parallelToolCallsClient.js +176 -0
  38. package/dist/cjs/examples/client/parallelToolCallsClient.js.map +1 -0
  39. package/dist/cjs/examples/client/simpleOAuthClient.d.ts +3 -0
  40. package/dist/cjs/examples/client/simpleOAuthClient.d.ts.map +1 -0
  41. package/dist/cjs/examples/client/simpleOAuthClient.js +376 -0
  42. package/dist/cjs/examples/client/simpleOAuthClient.js.map +1 -0
  43. package/dist/cjs/examples/client/simpleStreamableHttp.d.ts +2 -0
  44. package/dist/cjs/examples/client/simpleStreamableHttp.d.ts.map +1 -0
  45. package/dist/cjs/examples/client/simpleStreamableHttp.js +744 -0
  46. package/dist/cjs/examples/client/simpleStreamableHttp.js.map +1 -0
  47. package/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts +2 -0
  48. package/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +1 -0
  49. package/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js +168 -0
  50. package/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js.map +1 -0
  51. package/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts +78 -0
  52. package/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -0
  53. package/dist/cjs/examples/server/demoInMemoryOAuthProvider.js +189 -0
  54. package/dist/cjs/examples/server/demoInMemoryOAuthProvider.js.map +1 -0
  55. package/dist/cjs/examples/server/elicitationExample.d.ts +2 -0
  56. package/dist/cjs/examples/server/elicitationExample.d.ts.map +1 -0
  57. package/dist/cjs/examples/server/elicitationExample.js +435 -0
  58. package/dist/cjs/examples/server/elicitationExample.js.map +1 -0
  59. package/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts +2 -0
  60. package/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts.map +1 -0
  61. package/dist/cjs/examples/server/jsonResponseStreamableHttp.js +152 -0
  62. package/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map +1 -0
  63. package/dist/cjs/examples/server/mcpServerOutputSchema.d.ts +7 -0
  64. package/dist/cjs/examples/server/mcpServerOutputSchema.d.ts.map +1 -0
  65. package/dist/cjs/examples/server/mcpServerOutputSchema.js +72 -0
  66. package/dist/cjs/examples/server/mcpServerOutputSchema.js.map +1 -0
  67. package/dist/cjs/examples/server/simpleSseServer.d.ts +2 -0
  68. package/dist/cjs/examples/server/simpleSseServer.d.ts.map +1 -0
  69. package/dist/cjs/examples/server/simpleSseServer.js +146 -0
  70. package/dist/cjs/examples/server/simpleSseServer.js.map +1 -0
  71. package/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts +2 -0
  72. package/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts.map +1 -0
  73. package/dist/cjs/examples/server/simpleStatelessStreamableHttp.js +147 -0
  74. package/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map +1 -0
  75. package/dist/cjs/examples/server/simpleStreamableHttp.d.ts +2 -0
  76. package/dist/cjs/examples/server/simpleStreamableHttp.d.ts.map +1 -0
  77. package/dist/cjs/examples/server/simpleStreamableHttp.js +587 -0
  78. package/dist/cjs/examples/server/simpleStreamableHttp.js.map +1 -0
  79. package/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +2 -0
  80. package/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +1 -0
  81. package/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +240 -0
  82. package/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -0
  83. package/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts +2 -0
  84. package/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +1 -0
  85. package/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +116 -0
  86. package/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -0
  87. package/dist/cjs/examples/server/toolWithSampleServer.d.ts +2 -0
  88. package/dist/cjs/examples/server/toolWithSampleServer.d.ts.map +1 -0
  89. package/dist/cjs/examples/server/toolWithSampleServer.js +49 -0
  90. package/dist/cjs/examples/server/toolWithSampleServer.js.map +1 -0
  91. package/dist/cjs/examples/shared/inMemoryEventStore.d.ts +31 -0
  92. package/dist/cjs/examples/shared/inMemoryEventStore.d.ts.map +1 -0
  93. package/dist/cjs/examples/shared/inMemoryEventStore.js +69 -0
  94. package/dist/cjs/examples/shared/inMemoryEventStore.js.map +1 -0
  95. package/dist/cjs/inMemory.d.ts +31 -0
  96. package/dist/cjs/inMemory.d.ts.map +1 -0
  97. package/dist/cjs/inMemory.js +53 -0
  98. package/dist/cjs/inMemory.js.map +1 -0
  99. package/dist/cjs/index.d.ts +3 -0
  100. package/dist/cjs/index.d.ts.map +1 -0
  101. package/dist/cjs/index.js +85 -0
  102. package/dist/cjs/index.js.map +1 -0
  103. package/dist/cjs/package.json +1 -0
  104. package/dist/cjs/server/auth/clients.d.ts +19 -0
  105. package/dist/cjs/server/auth/clients.d.ts.map +1 -0
  106. package/dist/cjs/server/auth/clients.js +3 -0
  107. package/dist/cjs/server/auth/clients.js.map +1 -0
  108. package/dist/cjs/server/auth/errors.d.ts +141 -0
  109. package/dist/cjs/server/auth/errors.d.ts.map +1 -0
  110. package/dist/cjs/server/auth/errors.js +193 -0
  111. package/dist/cjs/server/auth/errors.js.map +1 -0
  112. package/dist/cjs/server/auth/handlers/authorize.d.ts +13 -0
  113. package/dist/cjs/server/auth/handlers/authorize.d.ts.map +1 -0
  114. package/dist/cjs/server/auth/handlers/authorize.js +144 -0
  115. package/dist/cjs/server/auth/handlers/authorize.js.map +1 -0
  116. package/dist/cjs/server/auth/handlers/metadata.d.ts +4 -0
  117. package/dist/cjs/server/auth/handlers/metadata.d.ts.map +1 -0
  118. package/dist/cjs/server/auth/handlers/metadata.js +21 -0
  119. package/dist/cjs/server/auth/handlers/metadata.js.map +1 -0
  120. package/dist/cjs/server/auth/handlers/register.d.ts +29 -0
  121. package/dist/cjs/server/auth/handlers/register.d.ts.map +1 -0
  122. package/dist/cjs/server/auth/handlers/register.js +77 -0
  123. package/dist/cjs/server/auth/handlers/register.js.map +1 -0
  124. package/dist/cjs/server/auth/handlers/revoke.d.ts +13 -0
  125. package/dist/cjs/server/auth/handlers/revoke.d.ts.map +1 -0
  126. package/dist/cjs/server/auth/handlers/revoke.js +65 -0
  127. package/dist/cjs/server/auth/handlers/revoke.js.map +1 -0
  128. package/dist/cjs/server/auth/handlers/token.d.ts +13 -0
  129. package/dist/cjs/server/auth/handlers/token.d.ts.map +1 -0
  130. package/dist/cjs/server/auth/handlers/token.js +113 -0
  131. package/dist/cjs/server/auth/handlers/token.js.map +1 -0
  132. package/dist/cjs/server/auth/middleware/allowedMethods.d.ts +9 -0
  133. package/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map +1 -0
  134. package/dist/cjs/server/auth/middleware/allowedMethods.js +21 -0
  135. package/dist/cjs/server/auth/middleware/allowedMethods.js.map +1 -0
  136. package/dist/cjs/server/auth/middleware/bearerAuth.d.ts +35 -0
  137. package/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map +1 -0
  138. package/dist/cjs/server/auth/middleware/bearerAuth.js +70 -0
  139. package/dist/cjs/server/auth/middleware/bearerAuth.js.map +1 -0
  140. package/dist/cjs/server/auth/middleware/clientAuth.d.ts +19 -0
  141. package/dist/cjs/server/auth/middleware/clientAuth.d.ts.map +1 -0
  142. package/dist/cjs/server/auth/middleware/clientAuth.js +52 -0
  143. package/dist/cjs/server/auth/middleware/clientAuth.js.map +1 -0
  144. package/dist/cjs/server/auth/provider.d.ts +68 -0
  145. package/dist/cjs/server/auth/provider.d.ts.map +1 -0
  146. package/dist/cjs/server/auth/provider.js +3 -0
  147. package/dist/cjs/server/auth/provider.js.map +1 -0
  148. package/dist/cjs/server/auth/providers/proxyProvider.d.ts +49 -0
  149. package/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +1 -0
  150. package/dist/cjs/server/auth/providers/proxyProvider.js +161 -0
  151. package/dist/cjs/server/auth/providers/proxyProvider.js.map +1 -0
  152. package/dist/cjs/server/auth/router.d.ts +101 -0
  153. package/dist/cjs/server/auth/router.d.ts.map +1 -0
  154. package/dist/cjs/server/auth/router.js +125 -0
  155. package/dist/cjs/server/auth/router.js.map +1 -0
  156. package/dist/cjs/server/auth/types.d.ts +32 -0
  157. package/dist/cjs/server/auth/types.d.ts.map +1 -0
  158. package/dist/cjs/server/auth/types.js +3 -0
  159. package/dist/cjs/server/auth/types.js.map +1 -0
  160. package/dist/cjs/server/completable.d.ts +24 -0
  161. package/dist/cjs/server/completable.d.ts.map +1 -0
  162. package/dist/cjs/server/completable.js +65 -0
  163. package/dist/cjs/server/completable.js.map +1 -0
  164. package/dist/cjs/server/index.d.ts +191 -0
  165. package/dist/cjs/server/index.d.ts.map +1 -0
  166. package/dist/cjs/server/index.js +259 -0
  167. package/dist/cjs/server/index.js.map +1 -0
  168. package/dist/cjs/server/mcp.d.ts +331 -0
  169. package/dist/cjs/server/mcp.d.ts.map +1 -0
  170. package/dist/cjs/server/mcp.js +706 -0
  171. package/dist/cjs/server/mcp.js.map +1 -0
  172. package/dist/cjs/server/sse.d.ts +76 -0
  173. package/dist/cjs/server/sse.d.ts.map +1 -0
  174. package/dist/cjs/server/sse.js +168 -0
  175. package/dist/cjs/server/sse.js.map +1 -0
  176. package/dist/cjs/server/stdio.d.ts +28 -0
  177. package/dist/cjs/server/stdio.d.ts.map +1 -0
  178. package/dist/cjs/server/stdio.js +85 -0
  179. package/dist/cjs/server/stdio.js.map +1 -0
  180. package/dist/cjs/server/streamableHttp.d.ts +185 -0
  181. package/dist/cjs/server/streamableHttp.d.ts.map +1 -0
  182. package/dist/cjs/server/streamableHttp.js +631 -0
  183. package/dist/cjs/server/streamableHttp.js.map +1 -0
  184. package/dist/cjs/server.d.ts +3 -0
  185. package/dist/cjs/server.d.ts.map +1 -0
  186. package/dist/cjs/server.js +9 -0
  187. package/dist/cjs/server.js.map +1 -0
  188. package/dist/cjs/services/x32-connection.d.ts +87 -0
  189. package/dist/cjs/services/x32-connection.d.ts.map +1 -0
  190. package/dist/cjs/services/x32-connection.js +287 -0
  191. package/dist/cjs/services/x32-connection.js.map +1 -0
  192. package/dist/cjs/shared/auth-utils.d.ts +23 -0
  193. package/dist/cjs/shared/auth-utils.d.ts.map +1 -0
  194. package/dist/cjs/shared/auth-utils.js +48 -0
  195. package/dist/cjs/shared/auth-utils.js.map +1 -0
  196. package/dist/cjs/shared/auth.d.ts +626 -0
  197. package/dist/cjs/shared/auth.d.ts.map +1 -0
  198. package/dist/cjs/shared/auth.js +203 -0
  199. package/dist/cjs/shared/auth.js.map +1 -0
  200. package/dist/cjs/shared/metadataUtils.d.ts +16 -0
  201. package/dist/cjs/shared/metadataUtils.d.ts.map +1 -0
  202. package/dist/cjs/shared/metadataUtils.js +26 -0
  203. package/dist/cjs/shared/metadataUtils.js.map +1 -0
  204. package/dist/cjs/shared/protocol.d.ts +230 -0
  205. package/dist/cjs/shared/protocol.d.ts.map +1 -0
  206. package/dist/cjs/shared/protocol.js +428 -0
  207. package/dist/cjs/shared/protocol.js.map +1 -0
  208. package/dist/cjs/shared/stdio.d.ts +13 -0
  209. package/dist/cjs/shared/stdio.d.ts.map +1 -0
  210. package/dist/cjs/shared/stdio.js +37 -0
  211. package/dist/cjs/shared/stdio.js.map +1 -0
  212. package/dist/cjs/shared/toolNameValidation.d.ts +31 -0
  213. package/dist/cjs/shared/toolNameValidation.d.ts.map +1 -0
  214. package/dist/cjs/shared/toolNameValidation.js +97 -0
  215. package/dist/cjs/shared/toolNameValidation.js.map +1 -0
  216. package/dist/cjs/shared/transport.d.ts +75 -0
  217. package/dist/cjs/shared/transport.d.ts.map +1 -0
  218. package/dist/cjs/shared/transport.js +3 -0
  219. package/dist/cjs/shared/transport.js.map +1 -0
  220. package/dist/cjs/shared/uriTemplate.d.ts +25 -0
  221. package/dist/cjs/shared/uriTemplate.d.ts.map +1 -0
  222. package/dist/cjs/shared/uriTemplate.js +243 -0
  223. package/dist/cjs/shared/uriTemplate.js.map +1 -0
  224. package/dist/cjs/spec.types.d.ts +1687 -0
  225. package/dist/cjs/spec.types.d.ts.map +1 -0
  226. package/dist/cjs/spec.types.js +29 -0
  227. package/dist/cjs/spec.types.js.map +1 -0
  228. package/dist/cjs/tools/channel.d.ts +7 -0
  229. package/dist/cjs/tools/channel.d.ts.map +1 -0
  230. package/dist/cjs/tools/channel.js +536 -0
  231. package/dist/cjs/tools/channel.js.map +1 -0
  232. package/dist/cjs/tools/connection.d.ts +7 -0
  233. package/dist/cjs/tools/connection.d.ts.map +1 -0
  234. package/dist/cjs/tools/connection.js +230 -0
  235. package/dist/cjs/tools/connection.js.map +1 -0
  236. package/dist/cjs/tools/index.d.ts +8 -0
  237. package/dist/cjs/tools/index.d.ts.map +1 -0
  238. package/dist/cjs/tools/index.js +14 -0
  239. package/dist/cjs/tools/index.js.map +1 -0
  240. package/dist/cjs/tools/parameter.d.ts +7 -0
  241. package/dist/cjs/tools/parameter.d.ts.map +1 -0
  242. package/dist/cjs/tools/parameter.js +129 -0
  243. package/dist/cjs/tools/parameter.js.map +1 -0
  244. package/dist/cjs/types/index.d.ts +4 -0
  245. package/dist/cjs/types/index.d.ts.map +1 -0
  246. package/dist/cjs/types/index.js +20 -0
  247. package/dist/cjs/types/index.js.map +1 -0
  248. package/dist/cjs/types/osc.d.ts +36 -0
  249. package/dist/cjs/types/osc.d.ts.map +1 -0
  250. package/dist/cjs/types/osc.js +7 -0
  251. package/dist/cjs/types/osc.js.map +1 -0
  252. package/dist/cjs/types/x32.d.ts +94 -0
  253. package/dist/cjs/types/x32.d.ts.map +1 -0
  254. package/dist/cjs/types/x32.js +3 -0
  255. package/dist/cjs/types/x32.js.map +1 -0
  256. package/dist/cjs/types.d.ts +24615 -0
  257. package/dist/cjs/types.d.ts.map +1 -0
  258. package/dist/cjs/types.js +1434 -0
  259. package/dist/cjs/types.js.map +1 -0
  260. package/dist/cjs/utils/color-converter.d.ts +54 -0
  261. package/dist/cjs/utils/color-converter.d.ts.map +1 -0
  262. package/dist/cjs/utils/color-converter.js +86 -0
  263. package/dist/cjs/utils/color-converter.js.map +1 -0
  264. package/dist/cjs/utils/db-converter.d.ts +58 -0
  265. package/dist/cjs/utils/db-converter.d.ts.map +1 -0
  266. package/dist/cjs/utils/db-converter.js +150 -0
  267. package/dist/cjs/utils/db-converter.js.map +1 -0
  268. package/dist/cjs/utils/pan-converter.d.ts +56 -0
  269. package/dist/cjs/utils/pan-converter.d.ts.map +1 -0
  270. package/dist/cjs/utils/pan-converter.js +135 -0
  271. package/dist/cjs/utils/pan-converter.js.map +1 -0
  272. package/dist/cjs/validation/ajv-provider.d.ts +53 -0
  273. package/dist/cjs/validation/ajv-provider.d.ts.map +1 -0
  274. package/dist/cjs/validation/ajv-provider.js +95 -0
  275. package/dist/cjs/validation/ajv-provider.js.map +1 -0
  276. package/dist/cjs/validation/cfworker-provider.d.ts +52 -0
  277. package/dist/cjs/validation/cfworker-provider.d.ts.map +1 -0
  278. package/dist/cjs/validation/cfworker-provider.js +71 -0
  279. package/dist/cjs/validation/cfworker-provider.js.map +1 -0
  280. package/dist/cjs/validation/index.d.ts +29 -0
  281. package/dist/cjs/validation/index.d.ts.map +1 -0
  282. package/dist/cjs/validation/index.js +30 -0
  283. package/dist/cjs/validation/index.js.map +1 -0
  284. package/dist/cjs/validation/types.d.ts +55 -0
  285. package/dist/cjs/validation/types.d.ts.map +1 -0
  286. package/dist/cjs/validation/types.js +3 -0
  287. package/dist/cjs/validation/types.js.map +1 -0
  288. package/dist/cjs/x32-server/index.d.ts +3 -0
  289. package/dist/cjs/x32-server/index.d.ts.map +1 -0
  290. package/dist/cjs/x32-server/index.js +73 -0
  291. package/dist/cjs/x32-server/index.js.map +1 -0
  292. package/dist/cjs/x32-server/tools/channel.tool.d.ts +8 -0
  293. package/dist/cjs/x32-server/tools/channel.tool.d.ts.map +1 -0
  294. package/dist/cjs/x32-server/tools/channel.tool.js +82 -0
  295. package/dist/cjs/x32-server/tools/channel.tool.js.map +1 -0
  296. package/dist/cjs/x32-server/tools/connect.tool.d.ts +8 -0
  297. package/dist/cjs/x32-server/tools/connect.tool.d.ts.map +1 -0
  298. package/dist/cjs/x32-server/tools/connect.tool.js +54 -0
  299. package/dist/cjs/x32-server/tools/connect.tool.js.map +1 -0
  300. package/dist/cjs/x32-server/tools/get-parameter.tool.d.ts +8 -0
  301. package/dist/cjs/x32-server/tools/get-parameter.tool.d.ts.map +1 -0
  302. package/dist/cjs/x32-server/tools/get-parameter.tool.js +54 -0
  303. package/dist/cjs/x32-server/tools/get-parameter.tool.js.map +1 -0
  304. package/dist/cjs/x32-server/tools/index.d.ts +11 -0
  305. package/dist/cjs/x32-server/tools/index.d.ts.map +1 -0
  306. package/dist/cjs/x32-server/tools/index.js +20 -0
  307. package/dist/cjs/x32-server/tools/index.js.map +1 -0
  308. package/dist/cjs/x32-server/tools/info.tool.d.ts +8 -0
  309. package/dist/cjs/x32-server/tools/info.tool.d.ts.map +1 -0
  310. package/dist/cjs/x32-server/tools/info.tool.js +57 -0
  311. package/dist/cjs/x32-server/tools/info.tool.js.map +1 -0
  312. package/dist/cjs/x32-server/tools/set-parameter.tool.d.ts +8 -0
  313. package/dist/cjs/x32-server/tools/set-parameter.tool.d.ts.map +1 -0
  314. package/dist/cjs/x32-server/tools/set-parameter.tool.js +55 -0
  315. package/dist/cjs/x32-server/tools/set-parameter.tool.js.map +1 -0
  316. package/dist/cjs/x32-server/tools/status.tool.d.ts +8 -0
  317. package/dist/cjs/x32-server/tools/status.tool.d.ts.map +1 -0
  318. package/dist/cjs/x32-server/tools/status.tool.js +52 -0
  319. package/dist/cjs/x32-server/tools/status.tool.js.map +1 -0
  320. package/dist/cjs/x32-server/types.d.ts +94 -0
  321. package/dist/cjs/x32-server/types.d.ts.map +1 -0
  322. package/dist/cjs/x32-server/types.js +3 -0
  323. package/dist/cjs/x32-server/types.js.map +1 -0
  324. package/dist/cjs/x32-server/x32-connection.d.ts +87 -0
  325. package/dist/cjs/x32-server/x32-connection.d.ts.map +1 -0
  326. package/dist/cjs/x32-server/x32-connection.js +277 -0
  327. package/dist/cjs/x32-server/x32-connection.js.map +1 -0
  328. package/dist/esm/client/auth.d.ts +270 -0
  329. package/dist/esm/client/auth.d.ts.map +1 -0
  330. package/dist/esm/client/auth.js +726 -0
  331. package/dist/esm/client/auth.js.map +1 -0
  332. package/dist/esm/client/index.d.ts +913 -0
  333. package/dist/esm/client/index.d.ts.map +1 -0
  334. package/dist/esm/client/index.js +363 -0
  335. package/dist/esm/client/index.js.map +1 -0
  336. package/dist/esm/client/middleware.d.ts +169 -0
  337. package/dist/esm/client/middleware.d.ts.map +1 -0
  338. package/dist/esm/client/middleware.js +245 -0
  339. package/dist/esm/client/middleware.js.map +1 -0
  340. package/dist/esm/client/sse.d.ts +80 -0
  341. package/dist/esm/client/sse.d.ts.map +1 -0
  342. package/dist/esm/client/sse.js +206 -0
  343. package/dist/esm/client/sse.js.map +1 -0
  344. package/dist/esm/client/stdio.d.ts +78 -0
  345. package/dist/esm/client/stdio.d.ts.map +1 -0
  346. package/dist/esm/client/stdio.js +176 -0
  347. package/dist/esm/client/stdio.js.map +1 -0
  348. package/dist/esm/client/streamableHttp.d.ts +158 -0
  349. package/dist/esm/client/streamableHttp.d.ts.map +1 -0
  350. package/dist/esm/client/streamableHttp.js +401 -0
  351. package/dist/esm/client/streamableHttp.js.map +1 -0
  352. package/dist/esm/client/websocket.d.ts +17 -0
  353. package/dist/esm/client/websocket.d.ts.map +1 -0
  354. package/dist/esm/client/websocket.js +59 -0
  355. package/dist/esm/client/websocket.js.map +1 -0
  356. package/dist/esm/examples/client/multipleClientsParallel.d.ts +2 -0
  357. package/dist/esm/examples/client/multipleClientsParallel.d.ts.map +1 -0
  358. package/dist/esm/examples/client/multipleClientsParallel.js +132 -0
  359. package/dist/esm/examples/client/multipleClientsParallel.js.map +1 -0
  360. package/dist/esm/examples/client/parallelToolCallsClient.d.ts +2 -0
  361. package/dist/esm/examples/client/parallelToolCallsClient.d.ts.map +1 -0
  362. package/dist/esm/examples/client/parallelToolCallsClient.js +174 -0
  363. package/dist/esm/examples/client/parallelToolCallsClient.js.map +1 -0
  364. package/dist/esm/examples/client/simpleOAuthClient.d.ts +3 -0
  365. package/dist/esm/examples/client/simpleOAuthClient.d.ts.map +1 -0
  366. package/dist/esm/examples/client/simpleOAuthClient.js +374 -0
  367. package/dist/esm/examples/client/simpleOAuthClient.js.map +1 -0
  368. package/dist/esm/examples/client/simpleStreamableHttp.d.ts +2 -0
  369. package/dist/esm/examples/client/simpleStreamableHttp.d.ts.map +1 -0
  370. package/dist/esm/examples/client/simpleStreamableHttp.js +742 -0
  371. package/dist/esm/examples/client/simpleStreamableHttp.js.map +1 -0
  372. package/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts +2 -0
  373. package/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +1 -0
  374. package/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js +166 -0
  375. package/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js.map +1 -0
  376. package/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts +78 -0
  377. package/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -0
  378. package/dist/esm/examples/server/demoInMemoryOAuthProvider.js +180 -0
  379. package/dist/esm/examples/server/demoInMemoryOAuthProvider.js.map +1 -0
  380. package/dist/esm/examples/server/elicitationExample.d.ts +2 -0
  381. package/dist/esm/examples/server/elicitationExample.d.ts.map +1 -0
  382. package/dist/esm/examples/server/elicitationExample.js +430 -0
  383. package/dist/esm/examples/server/elicitationExample.js.map +1 -0
  384. package/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts +2 -0
  385. package/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts.map +1 -0
  386. package/dist/esm/examples/server/jsonResponseStreamableHttp.js +147 -0
  387. package/dist/esm/examples/server/jsonResponseStreamableHttp.js.map +1 -0
  388. package/dist/esm/examples/server/mcpServerOutputSchema.d.ts +7 -0
  389. package/dist/esm/examples/server/mcpServerOutputSchema.d.ts.map +1 -0
  390. package/dist/esm/examples/server/mcpServerOutputSchema.js +70 -0
  391. package/dist/esm/examples/server/mcpServerOutputSchema.js.map +1 -0
  392. package/dist/esm/examples/server/simpleSseServer.d.ts +2 -0
  393. package/dist/esm/examples/server/simpleSseServer.d.ts.map +1 -0
  394. package/dist/esm/examples/server/simpleSseServer.js +141 -0
  395. package/dist/esm/examples/server/simpleSseServer.js.map +1 -0
  396. package/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts +2 -0
  397. package/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts.map +1 -0
  398. package/dist/esm/examples/server/simpleStatelessStreamableHttp.js +142 -0
  399. package/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map +1 -0
  400. package/dist/esm/examples/server/simpleStreamableHttp.d.ts +2 -0
  401. package/dist/esm/examples/server/simpleStreamableHttp.d.ts.map +1 -0
  402. package/dist/esm/examples/server/simpleStreamableHttp.js +582 -0
  403. package/dist/esm/examples/server/simpleStreamableHttp.js.map +1 -0
  404. package/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +2 -0
  405. package/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +1 -0
  406. package/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +235 -0
  407. package/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -0
  408. package/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts +2 -0
  409. package/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +1 -0
  410. package/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +111 -0
  411. package/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -0
  412. package/dist/esm/examples/server/toolWithSampleServer.d.ts +2 -0
  413. package/dist/esm/examples/server/toolWithSampleServer.d.ts.map +1 -0
  414. package/dist/esm/examples/server/toolWithSampleServer.js +47 -0
  415. package/dist/esm/examples/server/toolWithSampleServer.js.map +1 -0
  416. package/dist/esm/examples/shared/inMemoryEventStore.d.ts +31 -0
  417. package/dist/esm/examples/shared/inMemoryEventStore.d.ts.map +1 -0
  418. package/dist/esm/examples/shared/inMemoryEventStore.js +65 -0
  419. package/dist/esm/examples/shared/inMemoryEventStore.js.map +1 -0
  420. package/dist/esm/inMemory.d.ts +31 -0
  421. package/dist/esm/inMemory.d.ts.map +1 -0
  422. package/dist/esm/inMemory.js +49 -0
  423. package/dist/esm/inMemory.js.map +1 -0
  424. package/dist/esm/index.d.ts +3 -0
  425. package/dist/esm/index.d.ts.map +1 -0
  426. package/dist/esm/index.js +83 -0
  427. package/dist/esm/index.js.map +1 -0
  428. package/dist/esm/mcp/completable.d.ts +24 -0
  429. package/dist/esm/mcp/completable.d.ts.map +1 -0
  430. package/dist/esm/mcp/completable.js +60 -0
  431. package/dist/esm/mcp/completable.js.map +1 -0
  432. package/dist/esm/mcp/index.d.ts +124 -0
  433. package/dist/esm/mcp/index.d.ts.map +1 -0
  434. package/dist/esm/mcp/index.js +255 -0
  435. package/dist/esm/mcp/index.js.map +1 -0
  436. package/dist/esm/mcp/mcp.d.ts +331 -0
  437. package/dist/esm/mcp/mcp.d.ts.map +1 -0
  438. package/dist/esm/mcp/mcp.js +701 -0
  439. package/dist/esm/mcp/mcp.js.map +1 -0
  440. package/dist/esm/mcp/shared/metadataUtils.d.ts +16 -0
  441. package/dist/esm/mcp/shared/metadataUtils.d.ts.map +1 -0
  442. package/dist/esm/mcp/shared/metadataUtils.js +23 -0
  443. package/dist/esm/mcp/shared/metadataUtils.js.map +1 -0
  444. package/dist/esm/mcp/shared/protocol.d.ts +231 -0
  445. package/dist/esm/mcp/shared/protocol.d.ts.map +1 -0
  446. package/dist/esm/mcp/shared/protocol.js +423 -0
  447. package/dist/esm/mcp/shared/protocol.js.map +1 -0
  448. package/dist/esm/mcp/shared/stdio.d.ts +13 -0
  449. package/dist/esm/mcp/shared/stdio.d.ts.map +1 -0
  450. package/dist/esm/mcp/shared/stdio.js +31 -0
  451. package/dist/esm/mcp/shared/stdio.js.map +1 -0
  452. package/dist/esm/mcp/shared/toolNameValidation.d.ts +31 -0
  453. package/dist/esm/mcp/shared/toolNameValidation.d.ts.map +1 -0
  454. package/dist/esm/mcp/shared/toolNameValidation.js +92 -0
  455. package/dist/esm/mcp/shared/toolNameValidation.js.map +1 -0
  456. package/dist/esm/mcp/shared/transport.d.ts +75 -0
  457. package/dist/esm/mcp/shared/transport.d.ts.map +1 -0
  458. package/dist/esm/mcp/shared/transport.js +2 -0
  459. package/dist/esm/mcp/shared/transport.js.map +1 -0
  460. package/dist/esm/mcp/shared/uriTemplate.d.ts +25 -0
  461. package/dist/esm/mcp/shared/uriTemplate.d.ts.map +1 -0
  462. package/dist/esm/mcp/shared/uriTemplate.js +239 -0
  463. package/dist/esm/mcp/shared/uriTemplate.js.map +1 -0
  464. package/dist/esm/mcp/stdio.d.ts +28 -0
  465. package/dist/esm/mcp/stdio.d.ts.map +1 -0
  466. package/dist/esm/mcp/stdio.js +78 -0
  467. package/dist/esm/mcp/stdio.js.map +1 -0
  468. package/dist/esm/mcp/validation/ajv-provider.d.ts +53 -0
  469. package/dist/esm/mcp/validation/ajv-provider.d.ts.map +1 -0
  470. package/dist/esm/mcp/validation/ajv-provider.js +88 -0
  471. package/dist/esm/mcp/validation/ajv-provider.js.map +1 -0
  472. package/dist/esm/mcp/validation/index.d.ts +29 -0
  473. package/dist/esm/mcp/validation/index.d.ts.map +1 -0
  474. package/dist/esm/mcp/validation/index.js +29 -0
  475. package/dist/esm/mcp/validation/index.js.map +1 -0
  476. package/dist/esm/mcp/validation/types.d.ts +55 -0
  477. package/dist/esm/mcp/validation/types.d.ts.map +1 -0
  478. package/dist/esm/mcp/validation/types.js +2 -0
  479. package/dist/esm/mcp/validation/types.js.map +1 -0
  480. package/dist/esm/package.json +1 -0
  481. package/dist/esm/server/auth/clients.d.ts +19 -0
  482. package/dist/esm/server/auth/clients.d.ts.map +1 -0
  483. package/dist/esm/server/auth/clients.js +2 -0
  484. package/dist/esm/server/auth/clients.js.map +1 -0
  485. package/dist/esm/server/auth/errors.d.ts +141 -0
  486. package/dist/esm/server/auth/errors.d.ts.map +1 -0
  487. package/dist/esm/server/auth/errors.js +172 -0
  488. package/dist/esm/server/auth/errors.js.map +1 -0
  489. package/dist/esm/server/auth/handlers/authorize.d.ts +13 -0
  490. package/dist/esm/server/auth/handlers/authorize.d.ts.map +1 -0
  491. package/dist/esm/server/auth/handlers/authorize.js +138 -0
  492. package/dist/esm/server/auth/handlers/authorize.js.map +1 -0
  493. package/dist/esm/server/auth/handlers/metadata.d.ts +4 -0
  494. package/dist/esm/server/auth/handlers/metadata.d.ts.map +1 -0
  495. package/dist/esm/server/auth/handlers/metadata.js +15 -0
  496. package/dist/esm/server/auth/handlers/metadata.js.map +1 -0
  497. package/dist/esm/server/auth/handlers/register.d.ts +29 -0
  498. package/dist/esm/server/auth/handlers/register.d.ts.map +1 -0
  499. package/dist/esm/server/auth/handlers/register.js +71 -0
  500. package/dist/esm/server/auth/handlers/register.js.map +1 -0
  501. package/dist/esm/server/auth/handlers/revoke.d.ts +13 -0
  502. package/dist/esm/server/auth/handlers/revoke.d.ts.map +1 -0
  503. package/dist/esm/server/auth/handlers/revoke.js +59 -0
  504. package/dist/esm/server/auth/handlers/revoke.js.map +1 -0
  505. package/dist/esm/server/auth/handlers/token.d.ts +13 -0
  506. package/dist/esm/server/auth/handlers/token.d.ts.map +1 -0
  507. package/dist/esm/server/auth/handlers/token.js +107 -0
  508. package/dist/esm/server/auth/handlers/token.js.map +1 -0
  509. package/dist/esm/server/auth/middleware/allowedMethods.d.ts +9 -0
  510. package/dist/esm/server/auth/middleware/allowedMethods.d.ts.map +1 -0
  511. package/dist/esm/server/auth/middleware/allowedMethods.js +18 -0
  512. package/dist/esm/server/auth/middleware/allowedMethods.js.map +1 -0
  513. package/dist/esm/server/auth/middleware/bearerAuth.d.ts +35 -0
  514. package/dist/esm/server/auth/middleware/bearerAuth.d.ts.map +1 -0
  515. package/dist/esm/server/auth/middleware/bearerAuth.js +67 -0
  516. package/dist/esm/server/auth/middleware/bearerAuth.js.map +1 -0
  517. package/dist/esm/server/auth/middleware/clientAuth.d.ts +19 -0
  518. package/dist/esm/server/auth/middleware/clientAuth.d.ts.map +1 -0
  519. package/dist/esm/server/auth/middleware/clientAuth.js +49 -0
  520. package/dist/esm/server/auth/middleware/clientAuth.js.map +1 -0
  521. package/dist/esm/server/auth/provider.d.ts +68 -0
  522. package/dist/esm/server/auth/provider.d.ts.map +1 -0
  523. package/dist/esm/server/auth/provider.js +2 -0
  524. package/dist/esm/server/auth/provider.js.map +1 -0
  525. package/dist/esm/server/auth/providers/proxyProvider.d.ts +49 -0
  526. package/dist/esm/server/auth/providers/proxyProvider.d.ts.map +1 -0
  527. package/dist/esm/server/auth/providers/proxyProvider.js +157 -0
  528. package/dist/esm/server/auth/providers/proxyProvider.js.map +1 -0
  529. package/dist/esm/server/auth/router.d.ts +101 -0
  530. package/dist/esm/server/auth/router.d.ts.map +1 -0
  531. package/dist/esm/server/auth/router.js +115 -0
  532. package/dist/esm/server/auth/router.js.map +1 -0
  533. package/dist/esm/server/auth/types.d.ts +32 -0
  534. package/dist/esm/server/auth/types.d.ts.map +1 -0
  535. package/dist/esm/server/auth/types.js +2 -0
  536. package/dist/esm/server/auth/types.js.map +1 -0
  537. package/dist/esm/server/completable.d.ts +24 -0
  538. package/dist/esm/server/completable.d.ts.map +1 -0
  539. package/dist/esm/server/completable.js +60 -0
  540. package/dist/esm/server/completable.js.map +1 -0
  541. package/dist/esm/server/index.d.ts +191 -0
  542. package/dist/esm/server/index.d.ts.map +1 -0
  543. package/dist/esm/server/index.js +255 -0
  544. package/dist/esm/server/index.js.map +1 -0
  545. package/dist/esm/server/mcp.d.ts +331 -0
  546. package/dist/esm/server/mcp.d.ts.map +1 -0
  547. package/dist/esm/server/mcp.js +701 -0
  548. package/dist/esm/server/mcp.js.map +1 -0
  549. package/dist/esm/server/sse.d.ts +76 -0
  550. package/dist/esm/server/sse.d.ts.map +1 -0
  551. package/dist/esm/server/sse.js +161 -0
  552. package/dist/esm/server/sse.js.map +1 -0
  553. package/dist/esm/server/stdio.d.ts +28 -0
  554. package/dist/esm/server/stdio.d.ts.map +1 -0
  555. package/dist/esm/server/stdio.js +78 -0
  556. package/dist/esm/server/stdio.js.map +1 -0
  557. package/dist/esm/server/streamableHttp.d.ts +185 -0
  558. package/dist/esm/server/streamableHttp.d.ts.map +1 -0
  559. package/dist/esm/server/streamableHttp.js +624 -0
  560. package/dist/esm/server/streamableHttp.js.map +1 -0
  561. package/dist/esm/server.d.ts +3 -0
  562. package/dist/esm/server.d.ts.map +1 -0
  563. package/dist/esm/server.js +4 -0
  564. package/dist/esm/server.js.map +1 -0
  565. package/dist/esm/services/x32-connection.d.ts +87 -0
  566. package/dist/esm/services/x32-connection.d.ts.map +1 -0
  567. package/dist/esm/services/x32-connection.js +280 -0
  568. package/dist/esm/services/x32-connection.js.map +1 -0
  569. package/dist/esm/shared/auth-utils.d.ts +23 -0
  570. package/dist/esm/shared/auth-utils.d.ts.map +1 -0
  571. package/dist/esm/shared/auth-utils.js +44 -0
  572. package/dist/esm/shared/auth-utils.js.map +1 -0
  573. package/dist/esm/shared/auth.d.ts +626 -0
  574. package/dist/esm/shared/auth.d.ts.map +1 -0
  575. package/dist/esm/shared/auth.js +200 -0
  576. package/dist/esm/shared/auth.js.map +1 -0
  577. package/dist/esm/shared/metadataUtils.d.ts +16 -0
  578. package/dist/esm/shared/metadataUtils.d.ts.map +1 -0
  579. package/dist/esm/shared/metadataUtils.js +23 -0
  580. package/dist/esm/shared/metadataUtils.js.map +1 -0
  581. package/dist/esm/shared/protocol.d.ts +230 -0
  582. package/dist/esm/shared/protocol.d.ts.map +1 -0
  583. package/dist/esm/shared/protocol.js +423 -0
  584. package/dist/esm/shared/protocol.js.map +1 -0
  585. package/dist/esm/shared/stdio.d.ts +13 -0
  586. package/dist/esm/shared/stdio.d.ts.map +1 -0
  587. package/dist/esm/shared/stdio.js +31 -0
  588. package/dist/esm/shared/stdio.js.map +1 -0
  589. package/dist/esm/shared/toolNameValidation.d.ts +31 -0
  590. package/dist/esm/shared/toolNameValidation.d.ts.map +1 -0
  591. package/dist/esm/shared/toolNameValidation.js +92 -0
  592. package/dist/esm/shared/toolNameValidation.js.map +1 -0
  593. package/dist/esm/shared/transport.d.ts +75 -0
  594. package/dist/esm/shared/transport.d.ts.map +1 -0
  595. package/dist/esm/shared/transport.js +2 -0
  596. package/dist/esm/shared/transport.js.map +1 -0
  597. package/dist/esm/shared/uriTemplate.d.ts +25 -0
  598. package/dist/esm/shared/uriTemplate.d.ts.map +1 -0
  599. package/dist/esm/shared/uriTemplate.js +239 -0
  600. package/dist/esm/shared/uriTemplate.js.map +1 -0
  601. package/dist/esm/spec.types.d.ts +1429 -0
  602. package/dist/esm/spec.types.d.ts.map +1 -0
  603. package/dist/esm/spec.types.js +17 -0
  604. package/dist/esm/spec.types.js.map +1 -0
  605. package/dist/esm/src/index.d.ts +3 -0
  606. package/dist/esm/src/index.d.ts.map +1 -0
  607. package/dist/esm/src/index.js +68 -0
  608. package/dist/esm/src/index.js.map +1 -0
  609. package/dist/esm/src/mcp/completable.d.ts +24 -0
  610. package/dist/esm/src/mcp/completable.d.ts.map +1 -0
  611. package/dist/esm/src/mcp/completable.js +60 -0
  612. package/dist/esm/src/mcp/completable.js.map +1 -0
  613. package/dist/esm/src/mcp/index.d.ts +124 -0
  614. package/dist/esm/src/mcp/index.d.ts.map +1 -0
  615. package/dist/esm/src/mcp/index.js +255 -0
  616. package/dist/esm/src/mcp/index.js.map +1 -0
  617. package/dist/esm/src/mcp/mcp.d.ts +331 -0
  618. package/dist/esm/src/mcp/mcp.d.ts.map +1 -0
  619. package/dist/esm/src/mcp/mcp.js +701 -0
  620. package/dist/esm/src/mcp/mcp.js.map +1 -0
  621. package/dist/esm/src/mcp/shared/metadataUtils.d.ts +16 -0
  622. package/dist/esm/src/mcp/shared/metadataUtils.d.ts.map +1 -0
  623. package/dist/esm/src/mcp/shared/metadataUtils.js +23 -0
  624. package/dist/esm/src/mcp/shared/metadataUtils.js.map +1 -0
  625. package/dist/esm/src/mcp/shared/protocol.d.ts +231 -0
  626. package/dist/esm/src/mcp/shared/protocol.d.ts.map +1 -0
  627. package/dist/esm/src/mcp/shared/protocol.js +423 -0
  628. package/dist/esm/src/mcp/shared/protocol.js.map +1 -0
  629. package/dist/esm/src/mcp/shared/stdio.d.ts +13 -0
  630. package/dist/esm/src/mcp/shared/stdio.d.ts.map +1 -0
  631. package/dist/esm/src/mcp/shared/stdio.js +31 -0
  632. package/dist/esm/src/mcp/shared/stdio.js.map +1 -0
  633. package/dist/esm/src/mcp/shared/toolNameValidation.d.ts +31 -0
  634. package/dist/esm/src/mcp/shared/toolNameValidation.d.ts.map +1 -0
  635. package/dist/esm/src/mcp/shared/toolNameValidation.js +92 -0
  636. package/dist/esm/src/mcp/shared/toolNameValidation.js.map +1 -0
  637. package/dist/esm/src/mcp/shared/transport.d.ts +75 -0
  638. package/dist/esm/src/mcp/shared/transport.d.ts.map +1 -0
  639. package/dist/esm/src/mcp/shared/transport.js +2 -0
  640. package/dist/esm/src/mcp/shared/transport.js.map +1 -0
  641. package/dist/esm/src/mcp/shared/uriTemplate.d.ts +25 -0
  642. package/dist/esm/src/mcp/shared/uriTemplate.d.ts.map +1 -0
  643. package/dist/esm/src/mcp/shared/uriTemplate.js +239 -0
  644. package/dist/esm/src/mcp/shared/uriTemplate.js.map +1 -0
  645. package/dist/esm/src/mcp/stdio.d.ts +28 -0
  646. package/dist/esm/src/mcp/stdio.d.ts.map +1 -0
  647. package/dist/esm/src/mcp/stdio.js +78 -0
  648. package/dist/esm/src/mcp/stdio.js.map +1 -0
  649. package/dist/esm/src/mcp/validation/ajv-provider.d.ts +53 -0
  650. package/dist/esm/src/mcp/validation/ajv-provider.d.ts.map +1 -0
  651. package/dist/esm/src/mcp/validation/ajv-provider.js +88 -0
  652. package/dist/esm/src/mcp/validation/ajv-provider.js.map +1 -0
  653. package/dist/esm/src/mcp/validation/index.d.ts +29 -0
  654. package/dist/esm/src/mcp/validation/index.d.ts.map +1 -0
  655. package/dist/esm/src/mcp/validation/index.js +29 -0
  656. package/dist/esm/src/mcp/validation/index.js.map +1 -0
  657. package/dist/esm/src/mcp/validation/types.d.ts +55 -0
  658. package/dist/esm/src/mcp/validation/types.d.ts.map +1 -0
  659. package/dist/esm/src/mcp/validation/types.js +2 -0
  660. package/dist/esm/src/mcp/validation/types.js.map +1 -0
  661. package/dist/esm/src/server.d.ts +3 -0
  662. package/dist/esm/src/server.d.ts.map +1 -0
  663. package/dist/esm/src/server.js +4 -0
  664. package/dist/esm/src/server.js.map +1 -0
  665. package/dist/esm/src/services/x32-connection.d.ts +87 -0
  666. package/dist/esm/src/services/x32-connection.d.ts.map +1 -0
  667. package/dist/esm/src/services/x32-connection.js +279 -0
  668. package/dist/esm/src/services/x32-connection.js.map +1 -0
  669. package/dist/esm/src/tools/channel.d.ts +7 -0
  670. package/dist/esm/src/tools/channel.d.ts.map +1 -0
  671. package/dist/esm/src/tools/channel.js +441 -0
  672. package/dist/esm/src/tools/channel.js.map +1 -0
  673. package/dist/esm/src/tools/connection.d.ts +7 -0
  674. package/dist/esm/src/tools/connection.d.ts.map +1 -0
  675. package/dist/esm/src/tools/connection.js +227 -0
  676. package/dist/esm/src/tools/connection.js.map +1 -0
  677. package/dist/esm/src/tools/index.d.ts +8 -0
  678. package/dist/esm/src/tools/index.d.ts.map +1 -0
  679. package/dist/esm/src/tools/index.js +8 -0
  680. package/dist/esm/src/tools/index.js.map +1 -0
  681. package/dist/esm/src/tools/parameter.d.ts +7 -0
  682. package/dist/esm/src/tools/parameter.d.ts.map +1 -0
  683. package/dist/esm/src/tools/parameter.js +120 -0
  684. package/dist/esm/src/tools/parameter.js.map +1 -0
  685. package/dist/esm/src/types/index.d.ts +4 -0
  686. package/dist/esm/src/types/index.d.ts.map +1 -0
  687. package/dist/esm/src/types/index.js +4 -0
  688. package/dist/esm/src/types/index.js.map +1 -0
  689. package/dist/esm/src/types/osc.d.ts +35 -0
  690. package/dist/esm/src/types/osc.d.ts.map +1 -0
  691. package/dist/esm/src/types/osc.js +6 -0
  692. package/dist/esm/src/types/osc.js.map +1 -0
  693. package/dist/esm/src/types/x32.d.ts +94 -0
  694. package/dist/esm/src/types/x32.d.ts.map +1 -0
  695. package/dist/esm/src/types/x32.js +2 -0
  696. package/dist/esm/src/types/x32.js.map +1 -0
  697. package/dist/esm/tools/channel.d.ts +7 -0
  698. package/dist/esm/tools/channel.d.ts.map +1 -0
  699. package/dist/esm/tools/channel.js +533 -0
  700. package/dist/esm/tools/channel.js.map +1 -0
  701. package/dist/esm/tools/channel.tool.d.ts +8 -0
  702. package/dist/esm/tools/channel.tool.d.ts.map +1 -0
  703. package/dist/esm/tools/channel.tool.js +79 -0
  704. package/dist/esm/tools/channel.tool.js.map +1 -0
  705. package/dist/esm/tools/connect.tool.d.ts +8 -0
  706. package/dist/esm/tools/connect.tool.d.ts.map +1 -0
  707. package/dist/esm/tools/connect.tool.js +51 -0
  708. package/dist/esm/tools/connect.tool.js.map +1 -0
  709. package/dist/esm/tools/connection.d.ts +7 -0
  710. package/dist/esm/tools/connection.d.ts.map +1 -0
  711. package/dist/esm/tools/connection.js +227 -0
  712. package/dist/esm/tools/connection.js.map +1 -0
  713. package/dist/esm/tools/get-parameter.tool.d.ts +8 -0
  714. package/dist/esm/tools/get-parameter.tool.d.ts.map +1 -0
  715. package/dist/esm/tools/get-parameter.tool.js +51 -0
  716. package/dist/esm/tools/get-parameter.tool.js.map +1 -0
  717. package/dist/esm/tools/index.d.ts +8 -0
  718. package/dist/esm/tools/index.d.ts.map +1 -0
  719. package/dist/esm/tools/index.js +8 -0
  720. package/dist/esm/tools/index.js.map +1 -0
  721. package/dist/esm/tools/info.tool.d.ts +8 -0
  722. package/dist/esm/tools/info.tool.d.ts.map +1 -0
  723. package/dist/esm/tools/info.tool.js +54 -0
  724. package/dist/esm/tools/info.tool.js.map +1 -0
  725. package/dist/esm/tools/parameter.d.ts +7 -0
  726. package/dist/esm/tools/parameter.d.ts.map +1 -0
  727. package/dist/esm/tools/parameter.js +126 -0
  728. package/dist/esm/tools/parameter.js.map +1 -0
  729. package/dist/esm/tools/set-parameter.tool.d.ts +8 -0
  730. package/dist/esm/tools/set-parameter.tool.d.ts.map +1 -0
  731. package/dist/esm/tools/set-parameter.tool.js +52 -0
  732. package/dist/esm/tools/set-parameter.tool.js.map +1 -0
  733. package/dist/esm/tools/status.tool.d.ts +8 -0
  734. package/dist/esm/tools/status.tool.d.ts.map +1 -0
  735. package/dist/esm/tools/status.tool.js +49 -0
  736. package/dist/esm/tools/status.tool.js.map +1 -0
  737. package/dist/esm/types/index.d.ts +4 -0
  738. package/dist/esm/types/index.d.ts.map +1 -0
  739. package/dist/esm/types/index.js +4 -0
  740. package/dist/esm/types/index.js.map +1 -0
  741. package/dist/esm/types/osc.d.ts +36 -0
  742. package/dist/esm/types/osc.d.ts.map +1 -0
  743. package/dist/esm/types/osc.js +6 -0
  744. package/dist/esm/types/osc.js.map +1 -0
  745. package/dist/esm/types/x32.d.ts +94 -0
  746. package/dist/esm/types/x32.d.ts.map +1 -0
  747. package/dist/esm/types/x32.js +2 -0
  748. package/dist/esm/types/x32.js.map +1 -0
  749. package/dist/esm/types.d.ts +24615 -0
  750. package/dist/esm/types.d.ts.map +1 -0
  751. package/dist/esm/types.js +1420 -0
  752. package/dist/esm/types.js.map +1 -0
  753. package/dist/esm/utils/color-converter.d.ts +54 -0
  754. package/dist/esm/utils/color-converter.d.ts.map +1 -0
  755. package/dist/esm/utils/color-converter.js +79 -0
  756. package/dist/esm/utils/color-converter.js.map +1 -0
  757. package/dist/esm/utils/db-converter.d.ts +58 -0
  758. package/dist/esm/utils/db-converter.d.ts.map +1 -0
  759. package/dist/esm/utils/db-converter.js +143 -0
  760. package/dist/esm/utils/db-converter.js.map +1 -0
  761. package/dist/esm/utils/pan-converter.d.ts +56 -0
  762. package/dist/esm/utils/pan-converter.d.ts.map +1 -0
  763. package/dist/esm/utils/pan-converter.js +127 -0
  764. package/dist/esm/utils/pan-converter.js.map +1 -0
  765. package/dist/esm/validation/ajv-provider.d.ts +53 -0
  766. package/dist/esm/validation/ajv-provider.d.ts.map +1 -0
  767. package/dist/esm/validation/ajv-provider.js +88 -0
  768. package/dist/esm/validation/ajv-provider.js.map +1 -0
  769. package/dist/esm/validation/cfworker-provider.d.ts +52 -0
  770. package/dist/esm/validation/cfworker-provider.d.ts.map +1 -0
  771. package/dist/esm/validation/cfworker-provider.js +67 -0
  772. package/dist/esm/validation/cfworker-provider.js.map +1 -0
  773. package/dist/esm/validation/index.d.ts +29 -0
  774. package/dist/esm/validation/index.d.ts.map +1 -0
  775. package/dist/esm/validation/index.js +29 -0
  776. package/dist/esm/validation/index.js.map +1 -0
  777. package/dist/esm/validation/types.d.ts +55 -0
  778. package/dist/esm/validation/types.d.ts.map +1 -0
  779. package/dist/esm/validation/types.js +2 -0
  780. package/dist/esm/validation/types.js.map +1 -0
  781. package/dist/esm/x32-server/index.d.ts +3 -0
  782. package/dist/esm/x32-server/index.d.ts.map +1 -0
  783. package/dist/esm/x32-server/index.js +71 -0
  784. package/dist/esm/x32-server/index.js.map +1 -0
  785. package/dist/esm/x32-server/tools/channel.tool.d.ts +8 -0
  786. package/dist/esm/x32-server/tools/channel.tool.d.ts.map +1 -0
  787. package/dist/esm/x32-server/tools/channel.tool.js +79 -0
  788. package/dist/esm/x32-server/tools/channel.tool.js.map +1 -0
  789. package/dist/esm/x32-server/tools/connect.tool.d.ts +8 -0
  790. package/dist/esm/x32-server/tools/connect.tool.d.ts.map +1 -0
  791. package/dist/esm/x32-server/tools/connect.tool.js +51 -0
  792. package/dist/esm/x32-server/tools/connect.tool.js.map +1 -0
  793. package/dist/esm/x32-server/tools/get-parameter.tool.d.ts +8 -0
  794. package/dist/esm/x32-server/tools/get-parameter.tool.d.ts.map +1 -0
  795. package/dist/esm/x32-server/tools/get-parameter.tool.js +51 -0
  796. package/dist/esm/x32-server/tools/get-parameter.tool.js.map +1 -0
  797. package/dist/esm/x32-server/tools/index.d.ts +11 -0
  798. package/dist/esm/x32-server/tools/index.d.ts.map +1 -0
  799. package/dist/esm/x32-server/tools/index.js +11 -0
  800. package/dist/esm/x32-server/tools/index.js.map +1 -0
  801. package/dist/esm/x32-server/tools/info.tool.d.ts +8 -0
  802. package/dist/esm/x32-server/tools/info.tool.d.ts.map +1 -0
  803. package/dist/esm/x32-server/tools/info.tool.js +54 -0
  804. package/dist/esm/x32-server/tools/info.tool.js.map +1 -0
  805. package/dist/esm/x32-server/tools/set-parameter.tool.d.ts +8 -0
  806. package/dist/esm/x32-server/tools/set-parameter.tool.d.ts.map +1 -0
  807. package/dist/esm/x32-server/tools/set-parameter.tool.js +52 -0
  808. package/dist/esm/x32-server/tools/set-parameter.tool.js.map +1 -0
  809. package/dist/esm/x32-server/tools/status.tool.d.ts +8 -0
  810. package/dist/esm/x32-server/tools/status.tool.d.ts.map +1 -0
  811. package/dist/esm/x32-server/tools/status.tool.js +49 -0
  812. package/dist/esm/x32-server/tools/status.tool.js.map +1 -0
  813. package/dist/esm/x32-server/types.d.ts +94 -0
  814. package/dist/esm/x32-server/types.d.ts.map +1 -0
  815. package/dist/esm/x32-server/types.js +2 -0
  816. package/dist/esm/x32-server/types.js.map +1 -0
  817. package/dist/esm/x32-server/x32-connection.d.ts +87 -0
  818. package/dist/esm/x32-server/x32-connection.d.ts.map +1 -0
  819. package/dist/esm/x32-server/x32-connection.js +270 -0
  820. package/dist/esm/x32-server/x32-connection.js.map +1 -0
  821. package/dist/index.d.ts +3 -0
  822. package/dist/index.d.ts.map +1 -0
  823. package/dist/index.js +81 -0
  824. package/dist/index.js.map +1 -0
  825. package/dist/mcp/completable.d.ts +24 -0
  826. package/dist/mcp/completable.d.ts.map +1 -0
  827. package/dist/mcp/completable.js +59 -0
  828. package/dist/mcp/completable.js.map +1 -0
  829. package/dist/mcp/index.d.ts +124 -0
  830. package/dist/mcp/index.d.ts.map +1 -0
  831. package/dist/mcp/index.js +262 -0
  832. package/dist/mcp/index.js.map +1 -0
  833. package/dist/mcp/mcp.d.ts +331 -0
  834. package/dist/mcp/mcp.d.ts.map +1 -0
  835. package/dist/mcp/mcp.js +706 -0
  836. package/dist/mcp/mcp.js.map +1 -0
  837. package/dist/mcp/shared/metadataUtils.d.ts +16 -0
  838. package/dist/mcp/shared/metadataUtils.d.ts.map +1 -0
  839. package/dist/mcp/shared/metadataUtils.js +22 -0
  840. package/dist/mcp/shared/metadataUtils.js.map +1 -0
  841. package/dist/mcp/shared/protocol.d.ts +231 -0
  842. package/dist/mcp/shared/protocol.d.ts.map +1 -0
  843. package/dist/mcp/shared/protocol.js +436 -0
  844. package/dist/mcp/shared/protocol.js.map +1 -0
  845. package/dist/mcp/shared/stdio.d.ts +13 -0
  846. package/dist/mcp/shared/stdio.d.ts.map +1 -0
  847. package/dist/mcp/shared/stdio.js +32 -0
  848. package/dist/mcp/shared/stdio.js.map +1 -0
  849. package/dist/mcp/shared/toolNameValidation.d.ts +31 -0
  850. package/dist/mcp/shared/toolNameValidation.d.ts.map +1 -0
  851. package/dist/mcp/shared/toolNameValidation.js +92 -0
  852. package/dist/mcp/shared/toolNameValidation.js.map +1 -0
  853. package/dist/mcp/shared/transport.d.ts +75 -0
  854. package/dist/mcp/shared/transport.d.ts.map +1 -0
  855. package/dist/mcp/shared/transport.js +2 -0
  856. package/dist/mcp/shared/transport.js.map +1 -0
  857. package/dist/mcp/shared/uriTemplate.d.ts +25 -0
  858. package/dist/mcp/shared/uriTemplate.d.ts.map +1 -0
  859. package/dist/mcp/shared/uriTemplate.js +241 -0
  860. package/dist/mcp/shared/uriTemplate.js.map +1 -0
  861. package/dist/mcp/stdio.d.ts +28 -0
  862. package/dist/mcp/stdio.d.ts.map +1 -0
  863. package/dist/mcp/stdio.js +80 -0
  864. package/dist/mcp/stdio.js.map +1 -0
  865. package/dist/mcp/validation/ajv-provider.d.ts +53 -0
  866. package/dist/mcp/validation/ajv-provider.d.ts.map +1 -0
  867. package/dist/mcp/validation/ajv-provider.js +88 -0
  868. package/dist/mcp/validation/ajv-provider.js.map +1 -0
  869. package/dist/mcp/validation/index.d.ts +29 -0
  870. package/dist/mcp/validation/index.d.ts.map +1 -0
  871. package/dist/mcp/validation/index.js +29 -0
  872. package/dist/mcp/validation/index.js.map +1 -0
  873. package/dist/mcp/validation/types.d.ts +55 -0
  874. package/dist/mcp/validation/types.d.ts.map +1 -0
  875. package/dist/mcp/validation/types.js +2 -0
  876. package/dist/mcp/validation/types.js.map +1 -0
  877. package/dist/server.d.ts +3 -0
  878. package/dist/server.d.ts.map +1 -0
  879. package/dist/server.js +4 -0
  880. package/dist/server.js.map +1 -0
  881. package/dist/services/x32-connection.d.ts +87 -0
  882. package/dist/services/x32-connection.d.ts.map +1 -0
  883. package/dist/services/x32-connection.js +279 -0
  884. package/dist/services/x32-connection.js.map +1 -0
  885. package/dist/simple-server.d.ts +3 -0
  886. package/dist/simple-server.d.ts.map +1 -0
  887. package/dist/simple-server.js +243 -0
  888. package/dist/simple-server.js.map +1 -0
  889. package/dist/tools/channel.d.ts +7 -0
  890. package/dist/tools/channel.d.ts.map +1 -0
  891. package/dist/tools/channel.js +534 -0
  892. package/dist/tools/channel.js.map +1 -0
  893. package/dist/tools/connection.d.ts +7 -0
  894. package/dist/tools/connection.d.ts.map +1 -0
  895. package/dist/tools/connection.js +227 -0
  896. package/dist/tools/connection.js.map +1 -0
  897. package/dist/tools/index.d.ts +8 -0
  898. package/dist/tools/index.d.ts.map +1 -0
  899. package/dist/tools/index.js +8 -0
  900. package/dist/tools/index.js.map +1 -0
  901. package/dist/tools/parameter.d.ts +7 -0
  902. package/dist/tools/parameter.d.ts.map +1 -0
  903. package/dist/tools/parameter.js +120 -0
  904. package/dist/tools/parameter.js.map +1 -0
  905. package/dist/types/index.d.ts +4 -0
  906. package/dist/types/index.d.ts.map +1 -0
  907. package/dist/types/index.js +4 -0
  908. package/dist/types/index.js.map +1 -0
  909. package/dist/types/osc.d.ts +35 -0
  910. package/dist/types/osc.d.ts.map +1 -0
  911. package/dist/types/osc.js +6 -0
  912. package/dist/types/osc.js.map +1 -0
  913. package/dist/types/x32.d.ts +94 -0
  914. package/dist/types/x32.d.ts.map +1 -0
  915. package/dist/types/x32.js +2 -0
  916. package/dist/types/x32.js.map +1 -0
  917. package/dist/utils/color-converter.d.ts +54 -0
  918. package/dist/utils/color-converter.d.ts.map +1 -0
  919. package/dist/utils/color-converter.js +79 -0
  920. package/dist/utils/color-converter.js.map +1 -0
  921. package/dist/utils/db-converter.d.ts +58 -0
  922. package/dist/utils/db-converter.d.ts.map +1 -0
  923. package/dist/utils/db-converter.js +143 -0
  924. package/dist/utils/db-converter.js.map +1 -0
  925. package/dist/utils/pan-converter.d.ts +56 -0
  926. package/dist/utils/pan-converter.d.ts.map +1 -0
  927. package/dist/utils/pan-converter.js +127 -0
  928. package/dist/utils/pan-converter.js.map +1 -0
  929. package/package.json +145 -0
@@ -0,0 +1,1687 @@
1
+ /**
2
+ * This file is automatically generated from the Model Context Protocol specification.
3
+ *
4
+ * Source: https://github.com/modelcontextprotocol/modelcontextprotocol
5
+ * Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts
6
+ * Last updated from commit: 11ad2a720d8e2f54881235f734121db0bda39052
7
+ *
8
+ * DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates.
9
+ * To update this file, run: npm run fetch:spec-types
10
+ */
11
+ /**
12
+ * Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
13
+ *
14
+ * @internal
15
+ */
16
+ export type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResponse | JSONRPCError;
17
+ /** @internal */
18
+ export declare const LATEST_PROTOCOL_VERSION = "DRAFT-2025-v3";
19
+ /** @internal */
20
+ export declare const JSONRPC_VERSION = "2.0";
21
+ /**
22
+ * A progress token, used to associate progress notifications with the original request.
23
+ */
24
+ export type ProgressToken = string | number;
25
+ /**
26
+ * An opaque token used to represent a cursor for pagination.
27
+ */
28
+ export type Cursor = string;
29
+ /**
30
+ * Common params for any request.
31
+ */
32
+ export interface RequestParams {
33
+ /**
34
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
35
+ */
36
+ _meta?: {
37
+ /**
38
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
39
+ */
40
+ progressToken?: ProgressToken;
41
+ [key: string]: unknown;
42
+ };
43
+ }
44
+ /** @internal */
45
+ export interface Request {
46
+ method: string;
47
+ params?: {
48
+ [key: string]: any;
49
+ };
50
+ }
51
+ /** @internal */
52
+ export interface NotificationParams {
53
+ /**
54
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
55
+ */
56
+ _meta?: {
57
+ [key: string]: unknown;
58
+ };
59
+ }
60
+ /** @internal */
61
+ export interface Notification {
62
+ method: string;
63
+ params?: {
64
+ [key: string]: any;
65
+ };
66
+ }
67
+ export interface Result {
68
+ /**
69
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
70
+ */
71
+ _meta?: {
72
+ [key: string]: unknown;
73
+ };
74
+ [key: string]: unknown;
75
+ }
76
+ export interface Error {
77
+ /**
78
+ * The error type that occurred.
79
+ */
80
+ code: number;
81
+ /**
82
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
83
+ */
84
+ message: string;
85
+ /**
86
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
87
+ */
88
+ data?: unknown;
89
+ }
90
+ /**
91
+ * A uniquely identifying ID for a request in JSON-RPC.
92
+ */
93
+ export type RequestId = string | number;
94
+ /**
95
+ * A request that expects a response.
96
+ */
97
+ export interface JSONRPCRequest extends Request {
98
+ jsonrpc: typeof JSONRPC_VERSION;
99
+ id: RequestId;
100
+ }
101
+ /**
102
+ * A notification which does not expect a response.
103
+ */
104
+ export interface JSONRPCNotification extends Notification {
105
+ jsonrpc: typeof JSONRPC_VERSION;
106
+ }
107
+ /**
108
+ * A successful (non-error) response to a request.
109
+ */
110
+ export interface JSONRPCResponse {
111
+ jsonrpc: typeof JSONRPC_VERSION;
112
+ id: RequestId;
113
+ result: Result;
114
+ }
115
+ /** @internal */
116
+ export declare const PARSE_ERROR = -32700;
117
+ /** @internal */
118
+ export declare const INVALID_REQUEST = -32600;
119
+ /** @internal */
120
+ export declare const METHOD_NOT_FOUND = -32601;
121
+ /** @internal */
122
+ export declare const INVALID_PARAMS = -32602;
123
+ /** @internal */
124
+ export declare const INTERNAL_ERROR = -32603;
125
+ /**
126
+ * A response to a request that indicates an error occurred.
127
+ */
128
+ export interface JSONRPCError {
129
+ jsonrpc: typeof JSONRPC_VERSION;
130
+ id: RequestId;
131
+ error: Error;
132
+ }
133
+ /**
134
+ * A response that indicates success but carries no data.
135
+ */
136
+ export type EmptyResult = Result;
137
+ /**
138
+ * Parameters for a `notifications/cancelled` notification.
139
+ *
140
+ * @category notifications/cancelled
141
+ */
142
+ export interface CancelledNotificationParams extends NotificationParams {
143
+ /**
144
+ * The ID of the request to cancel.
145
+ *
146
+ * This MUST correspond to the ID of a request previously issued in the same direction.
147
+ */
148
+ requestId: RequestId;
149
+ /**
150
+ * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
151
+ */
152
+ reason?: string;
153
+ }
154
+ /**
155
+ * This notification can be sent by either side to indicate that it is cancelling a previously-issued request.
156
+ *
157
+ * 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.
158
+ *
159
+ * This notification indicates that the result will be unused, so any associated processing SHOULD cease.
160
+ *
161
+ * A client MUST NOT attempt to cancel its `initialize` request.
162
+ *
163
+ * @category notifications/cancelled
164
+ */
165
+ export interface CancelledNotification extends JSONRPCNotification {
166
+ method: "notifications/cancelled";
167
+ params: CancelledNotificationParams;
168
+ }
169
+ /**
170
+ * Parameters for an `initialize` request.
171
+ *
172
+ * @category initialize
173
+ */
174
+ export interface InitializeRequestParams extends RequestParams {
175
+ /**
176
+ * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
177
+ */
178
+ protocolVersion: string;
179
+ capabilities: ClientCapabilities;
180
+ clientInfo: Implementation;
181
+ }
182
+ /**
183
+ * This request is sent from the client to the server when it first connects, asking it to begin initialization.
184
+ *
185
+ * @category initialize
186
+ */
187
+ export interface InitializeRequest extends JSONRPCRequest {
188
+ method: "initialize";
189
+ params: InitializeRequestParams;
190
+ }
191
+ /**
192
+ * After receiving an initialize request from the client, the server sends this response.
193
+ *
194
+ * @category initialize
195
+ */
196
+ export interface InitializeResult extends Result {
197
+ /**
198
+ * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
199
+ */
200
+ protocolVersion: string;
201
+ capabilities: ServerCapabilities;
202
+ serverInfo: Implementation;
203
+ /**
204
+ * Instructions describing how to use the server and its features.
205
+ *
206
+ * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
207
+ */
208
+ instructions?: string;
209
+ }
210
+ /**
211
+ * This notification is sent from the client to the server after initialization has finished.
212
+ *
213
+ * @category notifications/initialized
214
+ */
215
+ export interface InitializedNotification extends JSONRPCNotification {
216
+ method: "notifications/initialized";
217
+ params?: NotificationParams;
218
+ }
219
+ /**
220
+ * 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.
221
+ */
222
+ export interface ClientCapabilities {
223
+ /**
224
+ * Experimental, non-standard capabilities that the client supports.
225
+ */
226
+ experimental?: {
227
+ [key: string]: object;
228
+ };
229
+ /**
230
+ * Present if the client supports listing roots.
231
+ */
232
+ roots?: {
233
+ /**
234
+ * Whether the client supports notifications for changes to the roots list.
235
+ */
236
+ listChanged?: boolean;
237
+ };
238
+ /**
239
+ * Present if the client supports sampling from an LLM.
240
+ */
241
+ sampling?: object;
242
+ /**
243
+ * Present if the client supports elicitation from the server.
244
+ */
245
+ elicitation?: object;
246
+ }
247
+ /**
248
+ * 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.
249
+ */
250
+ export interface ServerCapabilities {
251
+ /**
252
+ * Experimental, non-standard capabilities that the server supports.
253
+ */
254
+ experimental?: {
255
+ [key: string]: object;
256
+ };
257
+ /**
258
+ * Present if the server supports sending log messages to the client.
259
+ */
260
+ logging?: object;
261
+ /**
262
+ * Present if the server supports argument autocompletion suggestions.
263
+ */
264
+ completions?: object;
265
+ /**
266
+ * Present if the server offers any prompt templates.
267
+ */
268
+ prompts?: {
269
+ /**
270
+ * Whether this server supports notifications for changes to the prompt list.
271
+ */
272
+ listChanged?: boolean;
273
+ };
274
+ /**
275
+ * Present if the server offers any resources to read.
276
+ */
277
+ resources?: {
278
+ /**
279
+ * Whether this server supports subscribing to resource updates.
280
+ */
281
+ subscribe?: boolean;
282
+ /**
283
+ * Whether this server supports notifications for changes to the resource list.
284
+ */
285
+ listChanged?: boolean;
286
+ };
287
+ /**
288
+ * Present if the server offers any tools to call.
289
+ */
290
+ tools?: {
291
+ /**
292
+ * Whether this server supports notifications for changes to the tool list.
293
+ */
294
+ listChanged?: boolean;
295
+ };
296
+ }
297
+ /**
298
+ * An optionally-sized icon that can be displayed in a user interface.
299
+ */
300
+ export interface Icon {
301
+ /**
302
+ * A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
303
+ * `data:` URI with Base64-encoded image data.
304
+ *
305
+ * Consumers SHOULD takes steps to ensure URLs serving icons are from the
306
+ * same domain as the client/server or a trusted domain.
307
+ *
308
+ * Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
309
+ * executable JavaScript.
310
+ *
311
+ * @format uri
312
+ */
313
+ src: string;
314
+ /**
315
+ * Optional MIME type override if the source MIME type is missing or generic.
316
+ * For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`.
317
+ */
318
+ mimeType?: string;
319
+ /**
320
+ * Optional array of strings that specify sizes at which the icon can be used.
321
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
322
+ *
323
+ * If not provided, the client should assume that the icon can be used at any size.
324
+ */
325
+ sizes?: string[];
326
+ /**
327
+ * Optional specifier for the theme this icon is designed for. `light` indicates
328
+ * the icon is designed to be used with a light background, and `dark` indicates
329
+ * the icon is designed to be used with a dark background.
330
+ *
331
+ * If not provided, the client should assume the icon can be used with any theme.
332
+ */
333
+ theme?: "light" | "dark";
334
+ }
335
+ /**
336
+ * Base interface to add `icons` property.
337
+ *
338
+ * @internal
339
+ */
340
+ export interface Icons {
341
+ /**
342
+ * Optional set of sized icons that the client can display in a user interface.
343
+ *
344
+ * Clients that support rendering icons MUST support at least the following MIME types:
345
+ * - `image/png` - PNG images (safe, universal compatibility)
346
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
347
+ *
348
+ * Clients that support rendering icons SHOULD also support:
349
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
350
+ * - `image/webp` - WebP images (modern, efficient format)
351
+ */
352
+ icons?: Icon[];
353
+ }
354
+ /**
355
+ * Base interface for metadata with name (identifier) and title (display name) properties.
356
+ *
357
+ * @internal
358
+ */
359
+ export interface BaseMetadata {
360
+ /**
361
+ * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
362
+ */
363
+ name: string;
364
+ /**
365
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
366
+ * even by those unfamiliar with domain-specific terminology.
367
+ *
368
+ * If not provided, the name should be used for display (except for Tool,
369
+ * where `annotations.title` should be given precedence over using `name`,
370
+ * if present).
371
+ */
372
+ title?: string;
373
+ }
374
+ /**
375
+ * Describes the MCP implementation
376
+ */
377
+ export interface Implementation extends BaseMetadata, Icons {
378
+ version: string;
379
+ /**
380
+ * An optional URL of the website for this implementation.
381
+ *
382
+ * @format uri
383
+ */
384
+ websiteUrl?: string;
385
+ }
386
+ /**
387
+ * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
388
+ *
389
+ * @category ping
390
+ */
391
+ export interface PingRequest extends JSONRPCRequest {
392
+ method: "ping";
393
+ params?: RequestParams;
394
+ }
395
+ /**
396
+ * Parameters for a `notifications/progress` notification.
397
+ *
398
+ * @category notifications/progress
399
+ */
400
+ export interface ProgressNotificationParams extends NotificationParams {
401
+ /**
402
+ * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
403
+ */
404
+ progressToken: ProgressToken;
405
+ /**
406
+ * The progress thus far. This should increase every time progress is made, even if the total is unknown.
407
+ *
408
+ * @TJS-type number
409
+ */
410
+ progress: number;
411
+ /**
412
+ * Total number of items to process (or total progress required), if known.
413
+ *
414
+ * @TJS-type number
415
+ */
416
+ total?: number;
417
+ /**
418
+ * An optional message describing the current progress.
419
+ */
420
+ message?: string;
421
+ }
422
+ /**
423
+ * An out-of-band notification used to inform the receiver of a progress update for a long-running request.
424
+ *
425
+ * @category notifications/progress
426
+ */
427
+ export interface ProgressNotification extends JSONRPCNotification {
428
+ method: "notifications/progress";
429
+ params: ProgressNotificationParams;
430
+ }
431
+ /**
432
+ * Common parameters for paginated requests.
433
+ */
434
+ export interface PaginatedRequestParams extends RequestParams {
435
+ /**
436
+ * An opaque token representing the current pagination position.
437
+ * If provided, the server should return results starting after this cursor.
438
+ */
439
+ cursor?: Cursor;
440
+ }
441
+ /** @internal */
442
+ export interface PaginatedRequest extends JSONRPCRequest {
443
+ params?: PaginatedRequestParams;
444
+ }
445
+ /** @internal */
446
+ export interface PaginatedResult extends Result {
447
+ /**
448
+ * An opaque token representing the pagination position after the last returned result.
449
+ * If present, there may be more results available.
450
+ */
451
+ nextCursor?: Cursor;
452
+ }
453
+ /**
454
+ * Sent from the client to request a list of resources the server has.
455
+ *
456
+ * @category resources/list
457
+ */
458
+ export interface ListResourcesRequest extends PaginatedRequest {
459
+ method: "resources/list";
460
+ }
461
+ /**
462
+ * The server's response to a resources/list request from the client.
463
+ *
464
+ * @category resources/list
465
+ */
466
+ export interface ListResourcesResult extends PaginatedResult {
467
+ resources: Resource[];
468
+ }
469
+ /**
470
+ * Sent from the client to request a list of resource templates the server has.
471
+ *
472
+ * @category resources/templates/list
473
+ */
474
+ export interface ListResourceTemplatesRequest extends PaginatedRequest {
475
+ method: "resources/templates/list";
476
+ }
477
+ /**
478
+ * The server's response to a resources/templates/list request from the client.
479
+ *
480
+ * @category resources/templates/list
481
+ */
482
+ export interface ListResourceTemplatesResult extends PaginatedResult {
483
+ resourceTemplates: ResourceTemplate[];
484
+ }
485
+ /**
486
+ * Common parameters when working with resources.
487
+ *
488
+ * @internal
489
+ */
490
+ export interface ResourceRequestParams extends RequestParams {
491
+ /**
492
+ * The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.
493
+ *
494
+ * @format uri
495
+ */
496
+ uri: string;
497
+ }
498
+ /**
499
+ * Parameters for a `resources/read` request.
500
+ *
501
+ * @category resources/read
502
+ */
503
+ export interface ReadResourceRequestParams extends ResourceRequestParams {
504
+ }
505
+ /**
506
+ * Sent from the client to the server, to read a specific resource URI.
507
+ *
508
+ * @category resources/read
509
+ */
510
+ export interface ReadResourceRequest extends JSONRPCRequest {
511
+ method: "resources/read";
512
+ params: ReadResourceRequestParams;
513
+ }
514
+ /**
515
+ * The server's response to a resources/read request from the client.
516
+ *
517
+ * @category resources/read
518
+ */
519
+ export interface ReadResourceResult extends Result {
520
+ contents: (TextResourceContents | BlobResourceContents)[];
521
+ }
522
+ /**
523
+ * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
524
+ *
525
+ * @category notifications/resources/list_changed
526
+ */
527
+ export interface ResourceListChangedNotification extends JSONRPCNotification {
528
+ method: "notifications/resources/list_changed";
529
+ params?: NotificationParams;
530
+ }
531
+ /**
532
+ * Parameters for a `resources/subscribe` request.
533
+ *
534
+ * @category resources/subscribe
535
+ */
536
+ export interface SubscribeRequestParams extends ResourceRequestParams {
537
+ }
538
+ /**
539
+ * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
540
+ *
541
+ * @category resources/subscribe
542
+ */
543
+ export interface SubscribeRequest extends JSONRPCRequest {
544
+ method: "resources/subscribe";
545
+ params: SubscribeRequestParams;
546
+ }
547
+ /**
548
+ * Parameters for a `resources/unsubscribe` request.
549
+ *
550
+ * @category resources/unsubscribe
551
+ */
552
+ export interface UnsubscribeRequestParams extends ResourceRequestParams {
553
+ }
554
+ /**
555
+ * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
556
+ *
557
+ * @category resources/unsubscribe
558
+ */
559
+ export interface UnsubscribeRequest extends JSONRPCRequest {
560
+ method: "resources/unsubscribe";
561
+ params: UnsubscribeRequestParams;
562
+ }
563
+ /**
564
+ * Parameters for a `notifications/resources/updated` notification.
565
+ *
566
+ * @category notifications/resources/updated
567
+ */
568
+ export interface ResourceUpdatedNotificationParams extends NotificationParams {
569
+ /**
570
+ * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
571
+ *
572
+ * @format uri
573
+ */
574
+ uri: string;
575
+ }
576
+ /**
577
+ * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.
578
+ *
579
+ * @category notifications/resources/updated
580
+ */
581
+ export interface ResourceUpdatedNotification extends JSONRPCNotification {
582
+ method: "notifications/resources/updated";
583
+ params: ResourceUpdatedNotificationParams;
584
+ }
585
+ /**
586
+ * A known resource that the server is capable of reading.
587
+ */
588
+ export interface Resource extends BaseMetadata, Icons {
589
+ /**
590
+ * The URI of this resource.
591
+ *
592
+ * @format uri
593
+ */
594
+ uri: string;
595
+ /**
596
+ * A description of what this resource represents.
597
+ *
598
+ * 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.
599
+ */
600
+ description?: string;
601
+ /**
602
+ * The MIME type of this resource, if known.
603
+ */
604
+ mimeType?: string;
605
+ /**
606
+ * Optional annotations for the client.
607
+ */
608
+ annotations?: Annotations;
609
+ /**
610
+ * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
611
+ *
612
+ * This can be used by Hosts to display file sizes and estimate context window usage.
613
+ */
614
+ size?: number;
615
+ /**
616
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
617
+ */
618
+ _meta?: {
619
+ [key: string]: unknown;
620
+ };
621
+ }
622
+ /**
623
+ * A template description for resources available on the server.
624
+ */
625
+ export interface ResourceTemplate extends BaseMetadata, Icons {
626
+ /**
627
+ * A URI template (according to RFC 6570) that can be used to construct resource URIs.
628
+ *
629
+ * @format uri-template
630
+ */
631
+ uriTemplate: string;
632
+ /**
633
+ * A description of what this template is for.
634
+ *
635
+ * 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.
636
+ */
637
+ description?: string;
638
+ /**
639
+ * 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.
640
+ */
641
+ mimeType?: string;
642
+ /**
643
+ * Optional annotations for the client.
644
+ */
645
+ annotations?: Annotations;
646
+ /**
647
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
648
+ */
649
+ _meta?: {
650
+ [key: string]: unknown;
651
+ };
652
+ }
653
+ /**
654
+ * The contents of a specific resource or sub-resource.
655
+ */
656
+ export interface ResourceContents {
657
+ /**
658
+ * The URI of this resource.
659
+ *
660
+ * @format uri
661
+ */
662
+ uri: string;
663
+ /**
664
+ * The MIME type of this resource, if known.
665
+ */
666
+ mimeType?: string;
667
+ /**
668
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
669
+ */
670
+ _meta?: {
671
+ [key: string]: unknown;
672
+ };
673
+ }
674
+ export interface TextResourceContents extends ResourceContents {
675
+ /**
676
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
677
+ */
678
+ text: string;
679
+ }
680
+ export interface BlobResourceContents extends ResourceContents {
681
+ /**
682
+ * A base64-encoded string representing the binary data of the item.
683
+ *
684
+ * @format byte
685
+ */
686
+ blob: string;
687
+ }
688
+ /**
689
+ * Sent from the client to request a list of prompts and prompt templates the server has.
690
+ *
691
+ * @category prompts/list
692
+ */
693
+ export interface ListPromptsRequest extends PaginatedRequest {
694
+ method: "prompts/list";
695
+ }
696
+ /**
697
+ * The server's response to a prompts/list request from the client.
698
+ *
699
+ * @category prompts/list
700
+ */
701
+ export interface ListPromptsResult extends PaginatedResult {
702
+ prompts: Prompt[];
703
+ }
704
+ /**
705
+ * Parameters for a `prompts/get` request.
706
+ *
707
+ * @category prompts/get
708
+ */
709
+ export interface GetPromptRequestParams extends RequestParams {
710
+ /**
711
+ * The name of the prompt or prompt template.
712
+ */
713
+ name: string;
714
+ /**
715
+ * Arguments to use for templating the prompt.
716
+ */
717
+ arguments?: {
718
+ [key: string]: string;
719
+ };
720
+ }
721
+ /**
722
+ * Used by the client to get a prompt provided by the server.
723
+ *
724
+ * @category prompts/get
725
+ */
726
+ export interface GetPromptRequest extends JSONRPCRequest {
727
+ method: "prompts/get";
728
+ params: GetPromptRequestParams;
729
+ }
730
+ /**
731
+ * The server's response to a prompts/get request from the client.
732
+ *
733
+ * @category prompts/get
734
+ */
735
+ export interface GetPromptResult extends Result {
736
+ /**
737
+ * An optional description for the prompt.
738
+ */
739
+ description?: string;
740
+ messages: PromptMessage[];
741
+ }
742
+ /**
743
+ * A prompt or prompt template that the server offers.
744
+ */
745
+ export interface Prompt extends BaseMetadata, Icons {
746
+ /**
747
+ * An optional description of what this prompt provides
748
+ */
749
+ description?: string;
750
+ /**
751
+ * A list of arguments to use for templating the prompt.
752
+ */
753
+ arguments?: PromptArgument[];
754
+ /**
755
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
756
+ */
757
+ _meta?: {
758
+ [key: string]: unknown;
759
+ };
760
+ }
761
+ /**
762
+ * Describes an argument that a prompt can accept.
763
+ */
764
+ export interface PromptArgument extends BaseMetadata {
765
+ /**
766
+ * A human-readable description of the argument.
767
+ */
768
+ description?: string;
769
+ /**
770
+ * Whether this argument must be provided.
771
+ */
772
+ required?: boolean;
773
+ }
774
+ /**
775
+ * The sender or recipient of messages and data in a conversation.
776
+ */
777
+ export type Role = "user" | "assistant";
778
+ /**
779
+ * Describes a message returned as part of a prompt.
780
+ *
781
+ * This is similar to `SamplingMessage`, but also supports the embedding of
782
+ * resources from the MCP server.
783
+ */
784
+ export interface PromptMessage {
785
+ role: Role;
786
+ content: ContentBlock;
787
+ }
788
+ /**
789
+ * A resource that the server is capable of reading, included in a prompt or tool call result.
790
+ *
791
+ * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
792
+ */
793
+ export interface ResourceLink extends Resource {
794
+ type: "resource_link";
795
+ }
796
+ /**
797
+ * The contents of a resource, embedded into a prompt or tool call result.
798
+ *
799
+ * It is up to the client how best to render embedded resources for the benefit
800
+ * of the LLM and/or the user.
801
+ */
802
+ export interface EmbeddedResource {
803
+ type: "resource";
804
+ resource: TextResourceContents | BlobResourceContents;
805
+ /**
806
+ * Optional annotations for the client.
807
+ */
808
+ annotations?: Annotations;
809
+ /**
810
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
811
+ */
812
+ _meta?: {
813
+ [key: string]: unknown;
814
+ };
815
+ }
816
+ /**
817
+ * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
818
+ *
819
+ * @category notifications/prompts/list_changed
820
+ */
821
+ export interface PromptListChangedNotification extends JSONRPCNotification {
822
+ method: "notifications/prompts/list_changed";
823
+ params?: NotificationParams;
824
+ }
825
+ /**
826
+ * Sent from the client to request a list of tools the server has.
827
+ *
828
+ * @category tools/list
829
+ */
830
+ export interface ListToolsRequest extends PaginatedRequest {
831
+ method: "tools/list";
832
+ }
833
+ /**
834
+ * The server's response to a tools/list request from the client.
835
+ *
836
+ * @category tools/list
837
+ */
838
+ export interface ListToolsResult extends PaginatedResult {
839
+ tools: Tool[];
840
+ }
841
+ /**
842
+ * The server's response to a tool call.
843
+ *
844
+ * @category tools/call
845
+ */
846
+ export interface CallToolResult extends Result {
847
+ /**
848
+ * A list of content objects that represent the unstructured result of the tool call.
849
+ */
850
+ content: ContentBlock[];
851
+ /**
852
+ * An optional JSON object that represents the structured result of the tool call.
853
+ */
854
+ structuredContent?: {
855
+ [key: string]: unknown;
856
+ };
857
+ /**
858
+ * Whether the tool call ended in an error.
859
+ *
860
+ * If not set, this is assumed to be false (the call was successful).
861
+ *
862
+ * Any errors that originate from the tool SHOULD be reported inside the result
863
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
864
+ * response. Otherwise, the LLM would not be able to see that an error occurred
865
+ * and self-correct.
866
+ *
867
+ * However, any errors in _finding_ the tool, an error indicating that the
868
+ * server does not support tool calls, or any other exceptional conditions,
869
+ * should be reported as an MCP error response.
870
+ */
871
+ isError?: boolean;
872
+ }
873
+ /**
874
+ * Parameters for a `tools/call` request.
875
+ *
876
+ * @category tools/call
877
+ */
878
+ export interface CallToolRequestParams extends RequestParams {
879
+ /**
880
+ * The name of the tool.
881
+ */
882
+ name: string;
883
+ /**
884
+ * Arguments to use for the tool call.
885
+ */
886
+ arguments?: {
887
+ [key: string]: unknown;
888
+ };
889
+ }
890
+ /**
891
+ * Used by the client to invoke a tool provided by the server.
892
+ *
893
+ * @category tools/call
894
+ */
895
+ export interface CallToolRequest extends JSONRPCRequest {
896
+ method: "tools/call";
897
+ params: CallToolRequestParams;
898
+ }
899
+ /**
900
+ * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
901
+ *
902
+ * @category notifications/tools/list_changed
903
+ */
904
+ export interface ToolListChangedNotification extends JSONRPCNotification {
905
+ method: "notifications/tools/list_changed";
906
+ params?: NotificationParams;
907
+ }
908
+ /**
909
+ * Additional properties describing a Tool to clients.
910
+ *
911
+ * NOTE: all properties in ToolAnnotations are **hints**.
912
+ * They are not guaranteed to provide a faithful description of
913
+ * tool behavior (including descriptive properties like `title`).
914
+ *
915
+ * Clients should never make tool use decisions based on ToolAnnotations
916
+ * received from untrusted servers.
917
+ */
918
+ export interface ToolAnnotations {
919
+ /**
920
+ * A human-readable title for the tool.
921
+ */
922
+ title?: string;
923
+ /**
924
+ * If true, the tool does not modify its environment.
925
+ *
926
+ * Default: false
927
+ */
928
+ readOnlyHint?: boolean;
929
+ /**
930
+ * If true, the tool may perform destructive updates to its environment.
931
+ * If false, the tool performs only additive updates.
932
+ *
933
+ * (This property is meaningful only when `readOnlyHint == false`)
934
+ *
935
+ * Default: true
936
+ */
937
+ destructiveHint?: boolean;
938
+ /**
939
+ * If true, calling the tool repeatedly with the same arguments
940
+ * will have no additional effect on its environment.
941
+ *
942
+ * (This property is meaningful only when `readOnlyHint == false`)
943
+ *
944
+ * Default: false
945
+ */
946
+ idempotentHint?: boolean;
947
+ /**
948
+ * If true, this tool may interact with an "open world" of external
949
+ * entities. If false, the tool's domain of interaction is closed.
950
+ * For example, the world of a web search tool is open, whereas that
951
+ * of a memory tool is not.
952
+ *
953
+ * Default: true
954
+ */
955
+ openWorldHint?: boolean;
956
+ }
957
+ /**
958
+ * Definition for a tool the client can call.
959
+ */
960
+ export interface Tool extends BaseMetadata, Icons {
961
+ /**
962
+ * A human-readable description of the tool.
963
+ *
964
+ * 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.
965
+ */
966
+ description?: string;
967
+ /**
968
+ * A JSON Schema object defining the expected parameters for the tool.
969
+ */
970
+ inputSchema: {
971
+ type: "object";
972
+ properties?: {
973
+ [key: string]: object;
974
+ };
975
+ required?: string[];
976
+ };
977
+ /**
978
+ * An optional JSON Schema object defining the structure of the tool's output returned in
979
+ * the structuredContent field of a CallToolResult.
980
+ */
981
+ outputSchema?: {
982
+ type: "object";
983
+ properties?: {
984
+ [key: string]: object;
985
+ };
986
+ required?: string[];
987
+ };
988
+ /**
989
+ * Optional additional tool information.
990
+ *
991
+ * Display name precedence order is: title, annotations.title, then name.
992
+ */
993
+ annotations?: ToolAnnotations;
994
+ /**
995
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
996
+ */
997
+ _meta?: {
998
+ [key: string]: unknown;
999
+ };
1000
+ }
1001
+ /**
1002
+ * Parameters for a `logging/setLevel` request.
1003
+ *
1004
+ * @category logging/setLevel
1005
+ */
1006
+ export interface SetLevelRequestParams extends RequestParams {
1007
+ /**
1008
+ * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/message.
1009
+ */
1010
+ level: LoggingLevel;
1011
+ }
1012
+ /**
1013
+ * A request from the client to the server, to enable or adjust logging.
1014
+ *
1015
+ * @category logging/setLevel
1016
+ */
1017
+ export interface SetLevelRequest extends JSONRPCRequest {
1018
+ method: "logging/setLevel";
1019
+ params: SetLevelRequestParams;
1020
+ }
1021
+ /**
1022
+ * Parameters for a `notifications/message` notification.
1023
+ *
1024
+ * @category notifications/message
1025
+ */
1026
+ export interface LoggingMessageNotificationParams extends NotificationParams {
1027
+ /**
1028
+ * The severity of this log message.
1029
+ */
1030
+ level: LoggingLevel;
1031
+ /**
1032
+ * An optional name of the logger issuing this message.
1033
+ */
1034
+ logger?: string;
1035
+ /**
1036
+ * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
1037
+ */
1038
+ data: unknown;
1039
+ }
1040
+ /**
1041
+ * JSONRPCNotification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
1042
+ *
1043
+ * @category notifications/message
1044
+ */
1045
+ export interface LoggingMessageNotification extends JSONRPCNotification {
1046
+ method: "notifications/message";
1047
+ params: LoggingMessageNotificationParams;
1048
+ }
1049
+ /**
1050
+ * The severity of a log message.
1051
+ *
1052
+ * These map to syslog message severities, as specified in RFC-5424:
1053
+ * https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
1054
+ */
1055
+ export type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency";
1056
+ /**
1057
+ * Parameters for a `sampling/createMessage` request.
1058
+ *
1059
+ * @category sampling/createMessage
1060
+ */
1061
+ export interface CreateMessageRequestParams extends RequestParams {
1062
+ messages: SamplingMessage[];
1063
+ /**
1064
+ * The server's preferences for which model to select. The client MAY ignore these preferences.
1065
+ */
1066
+ modelPreferences?: ModelPreferences;
1067
+ /**
1068
+ * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
1069
+ */
1070
+ systemPrompt?: string;
1071
+ /**
1072
+ * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
1073
+ */
1074
+ includeContext?: "none" | "thisServer" | "allServers";
1075
+ /**
1076
+ * @TJS-type number
1077
+ */
1078
+ temperature?: number;
1079
+ /**
1080
+ * The requested maximum number of tokens to sample (to prevent runaway completions).
1081
+ *
1082
+ * The client MAY choose to sample fewer tokens than the requested maximum.
1083
+ */
1084
+ maxTokens: number;
1085
+ stopSequences?: string[];
1086
+ /**
1087
+ * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
1088
+ */
1089
+ metadata?: object;
1090
+ }
1091
+ /**
1092
+ * 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.
1093
+ *
1094
+ * @category sampling/createMessage
1095
+ */
1096
+ export interface CreateMessageRequest extends JSONRPCRequest {
1097
+ method: "sampling/createMessage";
1098
+ params: CreateMessageRequestParams;
1099
+ }
1100
+ /**
1101
+ * The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
1102
+ *
1103
+ * @category sampling/createMessage
1104
+ */
1105
+ export interface CreateMessageResult extends Result, SamplingMessage {
1106
+ /**
1107
+ * The name of the model that generated the message.
1108
+ */
1109
+ model: string;
1110
+ /**
1111
+ * The reason why sampling stopped, if known.
1112
+ */
1113
+ stopReason?: "endTurn" | "stopSequence" | "maxTokens" | string;
1114
+ }
1115
+ /**
1116
+ * Describes a message issued to or received from an LLM API.
1117
+ */
1118
+ export interface SamplingMessage {
1119
+ role: Role;
1120
+ content: TextContent | ImageContent | AudioContent;
1121
+ }
1122
+ /**
1123
+ * Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
1124
+ */
1125
+ export interface Annotations {
1126
+ /**
1127
+ * Describes who the intended customer of this object or data is.
1128
+ *
1129
+ * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
1130
+ */
1131
+ audience?: Role[];
1132
+ /**
1133
+ * Describes how important this data is for operating the server.
1134
+ *
1135
+ * A value of 1 means "most important," and indicates that the data is
1136
+ * effectively required, while 0 means "least important," and indicates that
1137
+ * the data is entirely optional.
1138
+ *
1139
+ * @TJS-type number
1140
+ * @minimum 0
1141
+ * @maximum 1
1142
+ */
1143
+ priority?: number;
1144
+ /**
1145
+ * The moment the resource was last modified, as an ISO 8601 formatted string.
1146
+ *
1147
+ * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
1148
+ *
1149
+ * Examples: last activity timestamp in an open file, timestamp when the resource
1150
+ * was attached, etc.
1151
+ */
1152
+ lastModified?: string;
1153
+ }
1154
+ export type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;
1155
+ /**
1156
+ * Text provided to or from an LLM.
1157
+ */
1158
+ export interface TextContent {
1159
+ type: "text";
1160
+ /**
1161
+ * The text content of the message.
1162
+ */
1163
+ text: string;
1164
+ /**
1165
+ * Optional annotations for the client.
1166
+ */
1167
+ annotations?: Annotations;
1168
+ /**
1169
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
1170
+ */
1171
+ _meta?: {
1172
+ [key: string]: unknown;
1173
+ };
1174
+ }
1175
+ /**
1176
+ * An image provided to or from an LLM.
1177
+ */
1178
+ export interface ImageContent {
1179
+ type: "image";
1180
+ /**
1181
+ * The base64-encoded image data.
1182
+ *
1183
+ * @format byte
1184
+ */
1185
+ data: string;
1186
+ /**
1187
+ * The MIME type of the image. Different providers may support different image types.
1188
+ */
1189
+ mimeType: string;
1190
+ /**
1191
+ * Optional annotations for the client.
1192
+ */
1193
+ annotations?: Annotations;
1194
+ /**
1195
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
1196
+ */
1197
+ _meta?: {
1198
+ [key: string]: unknown;
1199
+ };
1200
+ }
1201
+ /**
1202
+ * Audio provided to or from an LLM.
1203
+ */
1204
+ export interface AudioContent {
1205
+ type: "audio";
1206
+ /**
1207
+ * The base64-encoded audio data.
1208
+ *
1209
+ * @format byte
1210
+ */
1211
+ data: string;
1212
+ /**
1213
+ * The MIME type of the audio. Different providers may support different audio types.
1214
+ */
1215
+ mimeType: string;
1216
+ /**
1217
+ * Optional annotations for the client.
1218
+ */
1219
+ annotations?: Annotations;
1220
+ /**
1221
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
1222
+ */
1223
+ _meta?: {
1224
+ [key: string]: unknown;
1225
+ };
1226
+ }
1227
+ /**
1228
+ * The server's preferences for model selection, requested of the client during sampling.
1229
+ *
1230
+ * Because LLMs can vary along multiple dimensions, choosing the "best" model is
1231
+ * rarely straightforward. Different models excel in different areas—some are
1232
+ * faster but less capable, others are more capable but more expensive, and so
1233
+ * on. This interface allows servers to express their priorities across multiple
1234
+ * dimensions to help clients make an appropriate selection for their use case.
1235
+ *
1236
+ * These preferences are always advisory. The client MAY ignore them. It is also
1237
+ * up to the client to decide how to interpret these preferences and how to
1238
+ * balance them against other considerations.
1239
+ */
1240
+ export interface ModelPreferences {
1241
+ /**
1242
+ * Optional hints to use for model selection.
1243
+ *
1244
+ * If multiple hints are specified, the client MUST evaluate them in order
1245
+ * (such that the first match is taken).
1246
+ *
1247
+ * The client SHOULD prioritize these hints over the numeric priorities, but
1248
+ * MAY still use the priorities to select from ambiguous matches.
1249
+ */
1250
+ hints?: ModelHint[];
1251
+ /**
1252
+ * How much to prioritize cost when selecting a model. A value of 0 means cost
1253
+ * is not important, while a value of 1 means cost is the most important
1254
+ * factor.
1255
+ *
1256
+ * @TJS-type number
1257
+ * @minimum 0
1258
+ * @maximum 1
1259
+ */
1260
+ costPriority?: number;
1261
+ /**
1262
+ * How much to prioritize sampling speed (latency) when selecting a model. A
1263
+ * value of 0 means speed is not important, while a value of 1 means speed is
1264
+ * the most important factor.
1265
+ *
1266
+ * @TJS-type number
1267
+ * @minimum 0
1268
+ * @maximum 1
1269
+ */
1270
+ speedPriority?: number;
1271
+ /**
1272
+ * How much to prioritize intelligence and capabilities when selecting a
1273
+ * model. A value of 0 means intelligence is not important, while a value of 1
1274
+ * means intelligence is the most important factor.
1275
+ *
1276
+ * @TJS-type number
1277
+ * @minimum 0
1278
+ * @maximum 1
1279
+ */
1280
+ intelligencePriority?: number;
1281
+ }
1282
+ /**
1283
+ * Hints to use for model selection.
1284
+ *
1285
+ * Keys not declared here are currently left unspecified by the spec and are up
1286
+ * to the client to interpret.
1287
+ */
1288
+ export interface ModelHint {
1289
+ /**
1290
+ * A hint for a model name.
1291
+ *
1292
+ * The client SHOULD treat this as a substring of a model name; for example:
1293
+ * - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
1294
+ * - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
1295
+ * - `claude` should match any Claude model
1296
+ *
1297
+ * 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:
1298
+ * - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
1299
+ */
1300
+ name?: string;
1301
+ }
1302
+ /**
1303
+ * Parameters for a `completion/complete` request.
1304
+ *
1305
+ * @category completion/complete
1306
+ */
1307
+ export interface CompleteRequestParams extends RequestParams {
1308
+ ref: PromptReference | ResourceTemplateReference;
1309
+ /**
1310
+ * The argument's information
1311
+ */
1312
+ argument: {
1313
+ /**
1314
+ * The name of the argument
1315
+ */
1316
+ name: string;
1317
+ /**
1318
+ * The value of the argument to use for completion matching.
1319
+ */
1320
+ value: string;
1321
+ };
1322
+ /**
1323
+ * Additional, optional context for completions
1324
+ */
1325
+ context?: {
1326
+ /**
1327
+ * Previously-resolved variables in a URI template or prompt.
1328
+ */
1329
+ arguments?: {
1330
+ [key: string]: string;
1331
+ };
1332
+ };
1333
+ }
1334
+ /**
1335
+ * A request from the client to the server, to ask for completion options.
1336
+ *
1337
+ * @category completion/complete
1338
+ */
1339
+ export interface CompleteRequest extends JSONRPCRequest {
1340
+ method: "completion/complete";
1341
+ params: CompleteRequestParams;
1342
+ }
1343
+ /**
1344
+ * The server's response to a completion/complete request
1345
+ *
1346
+ * @category completion/complete
1347
+ */
1348
+ export interface CompleteResult extends Result {
1349
+ completion: {
1350
+ /**
1351
+ * An array of completion values. Must not exceed 100 items.
1352
+ */
1353
+ values: string[];
1354
+ /**
1355
+ * The total number of completion options available. This can exceed the number of values actually sent in the response.
1356
+ */
1357
+ total?: number;
1358
+ /**
1359
+ * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
1360
+ */
1361
+ hasMore?: boolean;
1362
+ };
1363
+ }
1364
+ /**
1365
+ * A reference to a resource or resource template definition.
1366
+ */
1367
+ export interface ResourceTemplateReference {
1368
+ type: "ref/resource";
1369
+ /**
1370
+ * The URI or URI template of the resource.
1371
+ *
1372
+ * @format uri-template
1373
+ */
1374
+ uri: string;
1375
+ }
1376
+ /**
1377
+ * Identifies a prompt.
1378
+ */
1379
+ export interface PromptReference extends BaseMetadata {
1380
+ type: "ref/prompt";
1381
+ }
1382
+ /**
1383
+ * Sent from the server to request a list of root URIs from the client. Roots allow
1384
+ * servers to ask for specific directories or files to operate on. A common example
1385
+ * for roots is providing a set of repositories or directories a server should operate
1386
+ * on.
1387
+ *
1388
+ * This request is typically used when the server needs to understand the file system
1389
+ * structure or access specific locations that the client has permission to read from.
1390
+ *
1391
+ * @category roots/list
1392
+ */
1393
+ export interface ListRootsRequest extends JSONRPCRequest {
1394
+ method: "roots/list";
1395
+ params?: RequestParams;
1396
+ }
1397
+ /**
1398
+ * The client's response to a roots/list request from the server.
1399
+ * This result contains an array of Root objects, each representing a root directory
1400
+ * or file that the server can operate on.
1401
+ *
1402
+ * @category roots/list
1403
+ */
1404
+ export interface ListRootsResult extends Result {
1405
+ roots: Root[];
1406
+ }
1407
+ /**
1408
+ * Represents a root directory or file that the server can operate on.
1409
+ */
1410
+ export interface Root {
1411
+ /**
1412
+ * The URI identifying the root. This *must* start with file:// for now.
1413
+ * This restriction may be relaxed in future versions of the protocol to allow
1414
+ * other URI schemes.
1415
+ *
1416
+ * @format uri
1417
+ */
1418
+ uri: string;
1419
+ /**
1420
+ * An optional name for the root. This can be used to provide a human-readable
1421
+ * identifier for the root, which may be useful for display purposes or for
1422
+ * referencing the root in other parts of the application.
1423
+ */
1424
+ name?: string;
1425
+ /**
1426
+ * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
1427
+ */
1428
+ _meta?: {
1429
+ [key: string]: unknown;
1430
+ };
1431
+ }
1432
+ /**
1433
+ * A notification from the client to the server, informing it that the list of roots has changed.
1434
+ * This notification should be sent whenever the client adds, removes, or modifies any root.
1435
+ * The server should then request an updated list of roots using the ListRootsRequest.
1436
+ *
1437
+ * @category notifications/roots/list_changed
1438
+ */
1439
+ export interface RootsListChangedNotification extends JSONRPCNotification {
1440
+ method: "notifications/roots/list_changed";
1441
+ params?: NotificationParams;
1442
+ }
1443
+ /**
1444
+ * Parameters for an `elicitation/create` request.
1445
+ *
1446
+ * @category elicitation/create
1447
+ */
1448
+ export interface ElicitRequestParams extends RequestParams {
1449
+ /**
1450
+ * The message to present to the user.
1451
+ */
1452
+ message: string;
1453
+ /**
1454
+ * A restricted subset of JSON Schema.
1455
+ * Only top-level properties are allowed, without nesting.
1456
+ */
1457
+ requestedSchema: {
1458
+ type: "object";
1459
+ properties: {
1460
+ [key: string]: PrimitiveSchemaDefinition;
1461
+ };
1462
+ required?: string[];
1463
+ };
1464
+ }
1465
+ /**
1466
+ * A request from the server to elicit additional information from the user via the client.
1467
+ *
1468
+ * @category elicitation/create
1469
+ */
1470
+ export interface ElicitRequest extends JSONRPCRequest {
1471
+ method: "elicitation/create";
1472
+ params: ElicitRequestParams;
1473
+ }
1474
+ /**
1475
+ * Restricted schema definitions that only allow primitive types
1476
+ * without nested objects or arrays.
1477
+ */
1478
+ export type PrimitiveSchemaDefinition = StringSchema | NumberSchema | BooleanSchema | EnumSchema;
1479
+ export interface StringSchema {
1480
+ type: "string";
1481
+ title?: string;
1482
+ description?: string;
1483
+ minLength?: number;
1484
+ maxLength?: number;
1485
+ format?: "email" | "uri" | "date" | "date-time";
1486
+ default?: string;
1487
+ }
1488
+ export interface NumberSchema {
1489
+ type: "number" | "integer";
1490
+ title?: string;
1491
+ description?: string;
1492
+ minimum?: number;
1493
+ maximum?: number;
1494
+ default?: number;
1495
+ }
1496
+ export interface BooleanSchema {
1497
+ type: "boolean";
1498
+ title?: string;
1499
+ description?: string;
1500
+ default?: boolean;
1501
+ }
1502
+ /**
1503
+ * Schema for single-selection enumeration without display titles for options.
1504
+ */
1505
+ export interface UntitledSingleSelectEnumSchema {
1506
+ type: "string";
1507
+ /**
1508
+ * Optional title for the enum field.
1509
+ */
1510
+ title?: string;
1511
+ /**
1512
+ * Optional description for the enum field.
1513
+ */
1514
+ description?: string;
1515
+ /**
1516
+ * Array of enum values to choose from.
1517
+ */
1518
+ enum: string[];
1519
+ /**
1520
+ * Optional default value.
1521
+ */
1522
+ default?: string;
1523
+ }
1524
+ /**
1525
+ * Schema for single-selection enumeration with display titles for each option.
1526
+ */
1527
+ export interface TitledSingleSelectEnumSchema {
1528
+ type: "string";
1529
+ /**
1530
+ * Optional title for the enum field.
1531
+ */
1532
+ title?: string;
1533
+ /**
1534
+ * Optional description for the enum field.
1535
+ */
1536
+ description?: string;
1537
+ /**
1538
+ * Array of enum options with values and display labels.
1539
+ */
1540
+ oneOf: Array<{
1541
+ /**
1542
+ * The enum value.
1543
+ */
1544
+ const: string;
1545
+ /**
1546
+ * Display label for this option.
1547
+ */
1548
+ title: string;
1549
+ }>;
1550
+ /**
1551
+ * Optional default value.
1552
+ */
1553
+ default?: string;
1554
+ }
1555
+ export type SingleSelectEnumSchema = UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema;
1556
+ /**
1557
+ * Schema for multiple-selection enumeration without display titles for options.
1558
+ */
1559
+ export interface UntitledMultiSelectEnumSchema {
1560
+ type: "array";
1561
+ /**
1562
+ * Optional title for the enum field.
1563
+ */
1564
+ title?: string;
1565
+ /**
1566
+ * Optional description for the enum field.
1567
+ */
1568
+ description?: string;
1569
+ /**
1570
+ * Minimum number of items to select.
1571
+ */
1572
+ minItems?: number;
1573
+ /**
1574
+ * Maximum number of items to select.
1575
+ */
1576
+ maxItems?: number;
1577
+ /**
1578
+ * Schema for the array items.
1579
+ */
1580
+ items: {
1581
+ type: "string";
1582
+ /**
1583
+ * Array of enum values to choose from.
1584
+ */
1585
+ enum: string[];
1586
+ };
1587
+ /**
1588
+ * Optional default value.
1589
+ */
1590
+ default?: string[];
1591
+ }
1592
+ /**
1593
+ * Schema for multiple-selection enumeration with display titles for each option.
1594
+ */
1595
+ export interface TitledMultiSelectEnumSchema {
1596
+ type: "array";
1597
+ /**
1598
+ * Optional title for the enum field.
1599
+ */
1600
+ title?: string;
1601
+ /**
1602
+ * Optional description for the enum field.
1603
+ */
1604
+ description?: string;
1605
+ /**
1606
+ * Minimum number of items to select.
1607
+ */
1608
+ minItems?: number;
1609
+ /**
1610
+ * Maximum number of items to select.
1611
+ */
1612
+ maxItems?: number;
1613
+ /**
1614
+ * Schema for array items with enum options and display labels.
1615
+ */
1616
+ items: {
1617
+ /**
1618
+ * Array of enum options with values and display labels.
1619
+ */
1620
+ anyOf: Array<{
1621
+ /**
1622
+ * The constant enum value.
1623
+ */
1624
+ const: string;
1625
+ /**
1626
+ * Display title for this option.
1627
+ */
1628
+ title: string;
1629
+ }>;
1630
+ };
1631
+ /**
1632
+ * Optional default value.
1633
+ */
1634
+ default?: string[];
1635
+ }
1636
+ export type MultiSelectEnumSchema = UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema;
1637
+ /**
1638
+ * Use TitledSingleSelectEnumSchema instead.
1639
+ * This interface will be removed in a future version.
1640
+ */
1641
+ export interface LegacyTitledEnumSchema {
1642
+ type: "string";
1643
+ title?: string;
1644
+ description?: string;
1645
+ enum: string[];
1646
+ /**
1647
+ * (Legacy) Display names for enum values.
1648
+ * Non-standard according to JSON schema 2020-12.
1649
+ */
1650
+ enumNames?: string[];
1651
+ default?: string;
1652
+ }
1653
+ export type EnumSchema = SingleSelectEnumSchema | MultiSelectEnumSchema | LegacyTitledEnumSchema;
1654
+ /**
1655
+ * The client's response to an elicitation request.
1656
+ *
1657
+ * @category elicitation/create
1658
+ */
1659
+ export interface ElicitResult extends Result {
1660
+ /**
1661
+ * The user action in response to the elicitation.
1662
+ * - "accept": User submitted the form/confirmed the action
1663
+ * - "decline": User explicitly decline the action
1664
+ * - "cancel": User dismissed without making an explicit choice
1665
+ */
1666
+ action: "accept" | "decline" | "cancel";
1667
+ /**
1668
+ * The submitted form data, only present when action is "accept".
1669
+ * Contains values matching the requested schema.
1670
+ */
1671
+ content?: {
1672
+ [key: string]: string | number | boolean | string[];
1673
+ };
1674
+ }
1675
+ /** @internal */
1676
+ export type ClientRequest = PingRequest | InitializeRequest | CompleteRequest | SetLevelRequest | GetPromptRequest | ListPromptsRequest | ListResourcesRequest | ListResourceTemplatesRequest | ReadResourceRequest | SubscribeRequest | UnsubscribeRequest | CallToolRequest | ListToolsRequest;
1677
+ /** @internal */
1678
+ export type ClientNotification = CancelledNotification | ProgressNotification | InitializedNotification | RootsListChangedNotification;
1679
+ /** @internal */
1680
+ export type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult | ElicitResult;
1681
+ /** @internal */
1682
+ export type ServerRequest = PingRequest | CreateMessageRequest | ListRootsRequest | ElicitRequest;
1683
+ /** @internal */
1684
+ export type ServerNotification = CancelledNotification | ProgressNotification | LoggingMessageNotification | ResourceUpdatedNotification | ResourceListChangedNotification | ToolListChangedNotification | PromptListChangedNotification;
1685
+ /** @internal */
1686
+ export type ServerResult = EmptyResult | InitializeResult | CompleteResult | GetPromptResult | ListPromptsResult | ListResourceTemplatesResult | ListResourcesResult | ReadResourceResult | CallToolResult | ListToolsResult;
1687
+ //# sourceMappingURL=spec.types.d.ts.map