@codingame/monaco-vscode-api 26.2.2 → 28.0.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 (1167) hide show
  1. package/missing-services.js +507 -27
  2. package/package.json +9 -9
  3. package/service-override/tools/editor.d.ts +4 -2
  4. package/service-override/tools/editor.js +1 -0
  5. package/services.d.ts +16 -1
  6. package/services.js +21 -4
  7. package/vscode/product.json.js +1 -1
  8. package/vscode/src/vs/base/browser/dom.d.ts +0 -15
  9. package/vscode/src/vs/base/browser/dom.js +3 -42
  10. package/vscode/src/vs/base/browser/pixelRatio.js +4 -1
  11. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +3 -3
  12. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +1 -1
  13. package/vscode/src/vs/base/browser/ui/animations/animations.d.ts +40 -0
  14. package/vscode/src/vs/base/browser/ui/animations/animations.js +373 -0
  15. package/vscode/src/vs/base/browser/ui/button/button.js +11 -4
  16. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  17. package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +3 -42
  18. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +48 -126
  19. package/vscode/src/vs/base/browser/ui/dialog/dialog.css +19 -2
  20. package/vscode/src/vs/base/browser/ui/dialog/dialog.d.ts +1 -0
  21. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +2 -0
  22. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.css +5 -0
  23. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -1
  24. package/vscode/src/vs/base/browser/ui/grid/grid.d.ts +2 -1
  25. package/vscode/src/vs/base/browser/ui/grid/grid.js +2 -2
  26. package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -1
  27. package/vscode/src/vs/base/browser/ui/grid/gridview.js +6 -2
  28. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css +1 -0
  29. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +8 -3
  30. package/vscode/src/vs/base/browser/ui/list/listView.js +9 -2
  31. package/vscode/src/vs/base/browser/ui/menu/menu.d.ts +1 -1
  32. package/vscode/src/vs/base/browser/ui/menu/menu.js +12 -10
  33. package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +1 -0
  34. package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +6 -0
  35. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +2 -2
  36. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +1 -0
  37. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +2 -1
  38. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css +42 -5
  39. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +69 -35
  40. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxNative.js +8 -3
  41. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
  42. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
  43. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
  44. package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +3 -0
  45. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +24 -19
  46. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +3 -1
  47. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
  48. package/vscode/src/vs/base/common/actions.d.ts +4 -0
  49. package/vscode/src/vs/base/common/actions.js +15 -1
  50. package/vscode/src/vs/base/common/codicons.d.ts +2 -0
  51. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +2 -0
  52. package/vscode/src/vs/base/common/codiconsLibrary.js +2 -0
  53. package/vscode/src/vs/base/common/date.js +40 -40
  54. package/vscode/src/vs/base/common/defaultAccount.d.ts +5 -0
  55. package/vscode/src/vs/base/common/errorMessage.js +6 -6
  56. package/vscode/src/vs/base/common/event.d.ts +3 -2
  57. package/vscode/src/vs/base/common/event.js +40 -1
  58. package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
  59. package/vscode/src/vs/base/common/keyCodes.js +4 -2
  60. package/vscode/src/vs/base/common/keybindingLabels.js +20 -20
  61. package/vscode/src/vs/base/common/layout.d.ts +67 -0
  62. package/vscode/src/vs/base/common/layout.js +96 -0
  63. package/vscode/src/vs/base/common/lifecycle.d.ts +32 -0
  64. package/vscode/src/vs/base/common/lifecycle.js +58 -1
  65. package/vscode/src/vs/base/common/mime.js +7 -5
  66. package/vscode/src/vs/base/common/parsers.d.ts +32 -0
  67. package/vscode/src/vs/base/common/parsers.js +54 -0
  68. package/vscode/src/vs/base/common/platform.d.ts +1 -0
  69. package/vscode/src/vs/base/common/product.d.ts +2 -0
  70. package/vscode/src/vs/base/common/strings.d.ts +0 -30
  71. package/vscode/src/vs/base/common/strings.js +0 -11
  72. package/vscode/src/vs/base/common/uri.js +5 -1
  73. package/vscode/src/vs/base/common/yaml.d.ts +29 -53
  74. package/vscode/src/vs/base/common/yaml.js +1119 -502
  75. package/vscode/src/vs/base/parts/ipc/common/ipc.js +3 -2
  76. package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +2 -2
  77. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +1 -1
  78. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +21 -11
  79. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
  80. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
  81. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
  82. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +1 -1
  83. package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
  84. package/vscode/src/vs/editor/browser/editorExtensions.js +9 -9
  85. package/vscode/src/vs/editor/browser/gpu/renderStrategy/fullFileRenderStrategy.js +3 -0
  86. package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.js +3 -0
  87. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  88. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +4 -4
  89. package/vscode/src/vs/editor/browser/view/viewController.js +29 -9
  90. package/vscode/src/vs/editor/browser/view.d.ts +3 -1
  91. package/vscode/src/vs/editor/browser/view.js +10 -7
  92. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +5 -1
  93. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +1 -1
  94. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +0 -3
  95. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +3 -1
  96. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +8 -4
  97. package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css +1 -0
  98. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.d.ts +2 -1
  99. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +4 -2
  100. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  101. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +12 -12
  102. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  103. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +4 -4
  104. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  105. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -0
  106. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  107. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
  108. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -1
  109. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  110. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  111. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
  112. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +50 -50
  113. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +10 -3
  114. package/vscode/src/vs/editor/common/config/editorOptions.js +428 -385
  115. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +72 -72
  116. package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +5 -0
  117. package/vscode/src/vs/editor/common/core/edits/stringEdit.js +19 -21
  118. package/vscode/src/vs/editor/common/core/ranges/offsetRange.d.ts +4 -0
  119. package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.d.ts +7 -1
  120. package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +93 -3
  121. package/vscode/src/vs/editor/common/editorContextKeys.d.ts +1 -0
  122. package/vscode/src/vs/editor/common/editorContextKeys.js +49 -48
  123. package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -0
  124. package/vscode/src/vs/editor/common/languageFeatureRegistry.js +8 -1
  125. package/vscode/src/vs/editor/common/languageSelector.d.ts +1 -0
  126. package/vscode/src/vs/editor/common/languageSelector.js +15 -1
  127. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  128. package/vscode/src/vs/editor/common/languages.d.ts +13 -0
  129. package/vscode/src/vs/editor/common/languages.js +56 -56
  130. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +1 -1
  131. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js +1 -1
  132. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider.js +1 -1
  133. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  134. package/vscode/src/vs/editor/common/model/prefixSumComputer.js +6 -1
  135. package/vscode/src/vs/editor/common/model/textModel.d.ts +9 -4
  136. package/vscode/src/vs/editor/common/model/textModel.js +99 -34
  137. package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.d.ts +3 -2
  138. package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +3 -0
  139. package/vscode/src/vs/editor/common/model/tokens/annotations.js +9 -1
  140. package/vscode/src/vs/editor/common/model/tokens/tokenizationFontDecorationsProvider.js +2 -2
  141. package/vscode/src/vs/editor/common/model.d.ts +2 -1
  142. package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +2 -1
  143. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +1 -0
  144. package/vscode/src/vs/editor/common/standaloneStrings.d.ts +1 -0
  145. package/vscode/src/vs/editor/common/standaloneStrings.js +55 -49
  146. package/vscode/src/vs/editor/common/textModelEvents.d.ts +25 -5
  147. package/vscode/src/vs/editor/common/textModelEvents.js +13 -4
  148. package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +14 -4
  149. package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +192 -91
  150. package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +3 -3
  151. package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +11 -15
  152. package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +3 -3
  153. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  154. package/vscode/src/vs/editor/common/viewModel/inlineDecorations.d.ts +71 -7
  155. package/vscode/src/vs/editor/common/viewModel/inlineDecorations.js +180 -14
  156. package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.js +8 -2
  157. package/vscode/src/vs/editor/common/viewModel/modelLineProjection.d.ts +2 -2
  158. package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +31 -82
  159. package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +2 -23
  160. package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +19 -114
  161. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +11 -0
  162. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +174 -141
  163. package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +1 -0
  164. package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +16 -3
  165. package/vscode/src/vs/editor/common/viewModel.d.ts +6 -3
  166. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  167. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  168. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  169. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  170. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  171. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  172. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +19 -19
  173. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  174. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.d.ts +9 -1
  175. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +56 -13
  176. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  177. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.d.ts +2 -0
  178. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +23 -3
  179. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.d.ts +2 -0
  180. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +59 -52
  181. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -2
  182. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerModel.d.ts +2 -1
  183. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerModel.js +6 -4
  184. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  185. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  186. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +2 -2
  187. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +2 -2
  188. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  189. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  190. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  191. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  192. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  193. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  194. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  195. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +5 -5
  196. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  197. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css +1 -1
  198. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  199. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  200. package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +25 -1
  201. package/vscode/src/vs/editor/contrib/find/browser/findController.js +38 -20
  202. package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +1 -1
  203. package/vscode/src/vs/editor/contrib/find/browser/findModel.d.ts +5 -0
  204. package/vscode/src/vs/editor/contrib/find/browser/findModel.js +2 -1
  205. package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.css +1 -1
  206. package/vscode/src/vs/editor/contrib/find/browser/findWidget.css +5 -7
  207. package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +29 -1
  208. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +101 -33
  209. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +39 -3
  210. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +11 -7
  211. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
  212. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  213. package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.d.ts +2 -1
  214. package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.js +1 -0
  215. package/vscode/src/vs/editor/contrib/folding/browser/hiddenRangeModel.d.ts +2 -1
  216. package/vscode/src/vs/editor/contrib/folding/browser/hiddenRangeModel.js +1 -0
  217. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  218. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  219. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  220. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -13
  221. package/vscode/src/vs/editor/contrib/gotoError/browser/markerSelectionStatus.d.ts +1 -0
  222. package/vscode/src/vs/editor/contrib/gotoError/browser/markerSelectionStatus.js +60 -0
  223. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +33 -33
  224. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  225. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  226. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  227. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +4 -4
  228. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  229. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  230. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  231. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  232. package/vscode/src/vs/editor/contrib/hover/browser/hover.css +6 -3
  233. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  234. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.d.ts +1 -0
  235. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -3
  236. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +22 -22
  237. package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +6 -0
  238. package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
  239. package/vscode/src/vs/editor/contrib/hover/browser/hoverUtils.js +8 -4
  240. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +27 -18
  241. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  242. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  243. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +18 -18
  244. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -5
  245. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
  246. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/common.d.ts +4 -0
  247. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/common.js +11 -0
  248. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
  249. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +4 -2
  250. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  251. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
  252. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +6 -1
  253. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +41 -13
  254. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +10 -3
  255. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +44 -9
  256. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +18 -7
  257. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +79 -37
  258. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +1 -0
  259. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +53 -1
  260. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +5 -3
  261. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/textModelValueReference.d.ts +30 -0
  262. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/textModelValueReference.js +65 -0
  263. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.d.ts +1 -1
  264. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +27 -20
  265. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +9 -3
  266. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +30 -15
  267. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +3 -3
  268. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +20 -7
  269. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +4 -5
  270. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +3 -1
  271. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +6 -3
  272. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +4 -2
  273. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +17 -9
  274. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.d.ts +7 -1
  275. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.js +74 -39
  276. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.d.ts +6 -0
  277. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.js +3 -2
  278. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  279. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +2 -2
  280. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +14 -0
  281. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  282. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  283. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  284. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  285. package/vscode/src/vs/editor/contrib/links/browser/links.js +6 -6
  286. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  287. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  288. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css +2 -0
  289. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  290. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +1 -1
  291. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  292. package/vscode/src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css +4 -0
  293. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +19 -18
  294. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  295. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +9 -1
  296. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +20 -10
  297. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  298. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  299. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  300. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css +1 -0
  301. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +8 -8
  302. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.d.ts +1 -0
  303. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +42 -24
  304. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  305. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  306. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  307. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +1 -1
  308. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  309. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.d.ts +1 -0
  310. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +5 -1
  311. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -5
  312. package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css +3 -1
  313. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
  314. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
  315. package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +3 -1
  316. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +22 -17
  317. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +4 -2
  318. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  319. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  320. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.css +34 -34
  321. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  322. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  323. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  324. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  325. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  326. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  327. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  328. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  329. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  330. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +3 -2
  331. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +10 -6
  332. package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +3 -3
  333. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +71 -65
  334. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.d.ts +7 -0
  335. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +38 -4
  336. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +7 -1
  337. package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +6 -0
  338. package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +2 -0
  339. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  340. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  341. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +104 -4
  342. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +533 -56
  343. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +89 -14
  344. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +6 -2
  345. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +133 -10
  346. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -2
  347. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
  348. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +2 -0
  349. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +15 -4
  350. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +11 -0
  351. package/vscode/src/vs/platform/actions/browser/toolbar.js +27 -21
  352. package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -1
  353. package/vscode/src/vs/platform/actions/common/actions.js +25 -2
  354. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  355. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  356. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +11 -4
  357. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +24 -12
  358. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  359. package/vscode/src/vs/platform/contextkey/common/contextkey.js +26 -12
  360. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  361. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  362. package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +2 -0
  363. package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -1
  364. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +4 -1
  365. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +4 -1
  366. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +11 -0
  367. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  368. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  369. package/vscode/src/vs/platform/editor/common/editor.d.ts +32 -0
  370. package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
  371. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
  372. package/vscode/src/vs/platform/environment/common/environmentService.d.ts +0 -1
  373. package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +1 -1
  374. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +14 -14
  375. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  376. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  377. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
  378. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
  379. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +12 -1
  380. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +15 -4
  381. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  382. package/vscode/src/vs/platform/files/common/files.js +6 -6
  383. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  384. package/vscode/src/vs/platform/hover/browser/hover.css +1 -1
  385. package/vscode/src/vs/platform/hover/browser/hoverService.js +1 -1
  386. package/vscode/src/vs/platform/hover/browser/hoverWidget.js +3 -2
  387. package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  388. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
  389. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
  390. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
  391. package/vscode/src/vs/platform/list/browser/listService.js +25 -25
  392. package/vscode/src/vs/platform/log/common/log.js +6 -6
  393. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  394. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  395. package/vscode/src/vs/platform/mcp/common/mcpManagement.d.ts +2 -1
  396. package/vscode/src/vs/platform/mcp/common/mcpManagementIpc.d.ts +42 -0
  397. package/vscode/src/vs/platform/mcp/common/mcpManagementIpc.js +105 -0
  398. package/vscode/src/vs/platform/mcp/common/mcpManagementService.d.ts +130 -0
  399. package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +666 -0
  400. package/vscode/src/vs/platform/mcp/common/mcpPlatformTypes.d.ts +12 -0
  401. package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +1 -0
  402. package/vscode/src/vs/platform/mcp/common/modelContextProtocol.d.ts +2917 -0
  403. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.d.ts +1 -0
  404. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +32 -0
  405. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.d.ts +44 -0
  406. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.js +62 -0
  407. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.service.d.ts +18 -0
  408. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.service.js +6 -0
  409. package/vscode/src/vs/platform/native/common/native.d.ts +43 -5
  410. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  411. package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +10 -2
  412. package/vscode/src/vs/platform/product/common/product.js +3 -3
  413. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +13 -1
  414. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
  415. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  416. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +9 -0
  417. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +15 -4
  418. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +77 -15
  419. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +6 -6
  420. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  421. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
  422. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  423. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +1 -1
  424. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +1 -0
  425. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +5 -1
  426. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +19 -0
  427. package/vscode/src/vs/platform/remote/common/remoteHosts.d.ts +13 -0
  428. package/vscode/src/vs/platform/remote/common/remoteHosts.js +11 -1
  429. package/vscode/src/vs/platform/request/common/request.js +19 -19
  430. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +8 -2
  431. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +13 -2
  432. package/vscode/src/vs/platform/terminal/common/terminal.js +2 -0
  433. package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +1 -1
  434. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +31 -31
  435. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
  436. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.d.ts +0 -13
  437. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +2 -2
  438. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +3 -3
  439. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  440. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +18 -18
  441. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  442. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  443. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +51 -51
  444. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  445. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +8 -8
  446. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  447. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
  448. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  449. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  450. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  451. package/vscode/src/vs/platform/theme/common/sizeRegistry.d.ts +2 -0
  452. package/vscode/src/vs/platform/theme/common/sizeUtils.d.ts +90 -0
  453. package/vscode/src/vs/platform/theme/common/sizeUtils.js +142 -0
  454. package/vscode/src/vs/platform/theme/common/sizes/baseSizes.d.ts +11 -0
  455. package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +18 -0
  456. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  457. package/vscode/src/vs/platform/tunnel/common/tunnel.js +4 -3
  458. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  459. package/vscode/src/vs/platform/update/common/update.d.ts +14 -6
  460. package/vscode/src/vs/platform/update/common/update.js +4 -3
  461. package/vscode/src/vs/platform/update/common/update.service.d.ts +5 -2
  462. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  463. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
  464. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
  465. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
  466. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  467. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
  468. package/vscode/src/vs/platform/userInteraction/browser/userInteractionService.d.ts +25 -0
  469. package/vscode/src/vs/platform/userInteraction/browser/userInteractionService.service.d.ts +28 -0
  470. package/vscode/src/vs/platform/userInteraction/browser/userInteractionService.service.js +6 -0
  471. package/vscode/src/vs/platform/userInteraction/browser/userInteractionServiceImpl.d.ts +13 -0
  472. package/vscode/src/vs/platform/userInteraction/browser/userInteractionServiceImpl.js +62 -0
  473. package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
  474. package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -7
  475. package/vscode/src/vs/platform/workspace/common/workspace.js +3 -16
  476. package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +4 -0
  477. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service.d.ts +47 -0
  478. package/vscode/src/vs/{workbench/services/layout/common/workbenchModeService.service.js → sessions/contrib/agentFeedback/browser/agentFeedbackService.service.js} +2 -2
  479. package/vscode/src/vs/sessions/contrib/chat/browser/sessionTargetPicker.d.ts +73 -0
  480. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service.d.ts +37 -0
  481. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service.js +6 -0
  482. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.service.d.ts +47 -0
  483. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.service.js +6 -0
  484. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
  485. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +145 -7
  486. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +6 -0
  487. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +250 -12
  488. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +17 -3
  489. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +6 -5
  490. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +23 -3
  491. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +68 -5
  492. package/vscode/src/vs/workbench/api/common/extHostChatContext.js +34 -13
  493. package/vscode/src/vs/workbench/api/common/extHostChatDebug.d.ts +22 -0
  494. package/vscode/src/vs/workbench/api/common/extHostChatDebug.js +287 -0
  495. package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +4 -12
  496. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +158 -139
  497. package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -0
  498. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  499. package/vscode/src/vs/workbench/api/common/extHostDocuments.d.ts +1 -1
  500. package/vscode/src/vs/workbench/api/common/extHostDocuments.js +6 -6
  501. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +6 -3
  502. package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.d.ts +31 -0
  503. package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.js +167 -0
  504. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -0
  505. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +41 -3
  506. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +0 -3
  507. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
  508. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -4
  509. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  510. package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +4 -0
  511. package/vscode/src/vs/workbench/api/common/extHostMcp.js +15 -1
  512. package/vscode/src/vs/workbench/api/common/extHostMeteredConnection.d.ts +19 -0
  513. package/vscode/src/vs/workbench/api/common/extHostMeteredConnection.js +28 -0
  514. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  515. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +6 -3
  516. package/vscode/src/vs/workbench/api/common/extHostPower.d.ts +45 -0
  517. package/vscode/src/vs/workbench/api/common/extHostPower.js +88 -0
  518. package/vscode/src/vs/workbench/api/common/extHostSCM.js +3 -0
  519. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +4 -2
  520. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
  521. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
  522. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +46 -12
  523. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +3 -3
  524. package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +7 -7
  525. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +11 -24
  526. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +3 -3
  527. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +11 -5
  528. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +173 -16
  529. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +159 -8
  530. package/vscode/src/vs/workbench/api/common/extHostTypes.js +132 -7
  531. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -1
  532. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -10
  533. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
  534. package/vscode/src/vs/workbench/browser/actions/developerActions.js +32 -32
  535. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +130 -130
  536. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  537. package/vscode/src/vs/workbench/browser/actions/windowActions.js +29 -29
  538. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  539. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  540. package/vscode/src/vs/workbench/browser/contextkeys.d.ts +2 -8
  541. package/vscode/src/vs/workbench/browser/contextkeys.js +8 -26
  542. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  543. package/vscode/src/vs/workbench/browser/labels.js +4 -4
  544. package/vscode/src/vs/workbench/browser/media/style.css +14 -1
  545. package/vscode/src/vs/workbench/browser/panecomposite.d.ts +1 -0
  546. package/vscode/src/vs/workbench/browser/panecomposite.js +3 -1
  547. package/vscode/src/vs/workbench/browser/part.d.ts +1 -1
  548. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +15 -4
  549. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +112 -33
  550. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css +26 -6
  551. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css +10 -1
  552. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +44 -40
  553. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.d.ts +2 -0
  554. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +39 -6
  555. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
  556. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +13 -13
  557. package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +1 -1
  558. package/vscode/src/vs/workbench/browser/parts/compositePart.js +23 -17
  559. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.d.ts +11 -0
  560. package/vscode/src/vs/{platform/dialogs/browser → workbench/browser/parts/dialogs}/dialog.js +12 -10
  561. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.d.ts +1 -0
  562. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +19 -7
  563. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  564. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  565. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +37 -37
  566. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -12
  567. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +3 -3
  568. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +8 -10
  569. package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +3 -2
  570. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +2 -0
  571. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +135 -135
  572. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.d.ts +6 -0
  573. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +220 -20
  574. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.d.ts +3 -1
  575. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +14 -6
  576. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
  577. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +13 -13
  578. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
  579. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.d.ts +5 -5
  580. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +16 -9
  581. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.d.ts +9 -2
  582. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +79 -22
  583. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
  584. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
  585. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
  586. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +4 -3
  587. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css +4 -0
  588. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +46 -0
  589. package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +142 -0
  590. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css +8 -0
  591. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +64 -0
  592. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +405 -0
  593. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1 -1
  594. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
  595. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  596. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
  597. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  598. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +21 -20
  599. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css +9 -1
  600. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css +14 -2
  601. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css +19 -5
  602. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.d.ts +12 -1
  603. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +49 -18
  604. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  605. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.d.ts +10 -1
  606. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +87 -28
  607. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +92 -11
  608. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  609. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.d.ts +5 -1
  610. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +58 -25
  611. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.d.ts +8 -1
  612. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +62 -20
  613. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.d.ts +3 -1
  614. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +24 -8
  615. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +3 -2
  616. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +9 -8
  617. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +13 -7
  618. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +89 -68
  619. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +38 -50
  620. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +6 -4
  621. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
  622. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +2 -0
  623. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +44 -7
  624. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +21 -21
  625. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +23 -14
  626. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +3 -3
  627. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  628. package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css +1 -1
  629. package/vscode/src/vs/workbench/browser/parts/views/media/views.css +33 -2
  630. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +8 -7
  631. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +19 -1
  632. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +27 -4
  633. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +7 -5
  634. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +178 -174
  635. package/vscode/src/vs/workbench/browser/parts/visibleViewContainersTracker.d.ts +29 -0
  636. package/vscode/src/vs/workbench/browser/parts/visibleViewContainersTracker.js +104 -0
  637. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  638. package/vscode/src/vs/workbench/browser/window.js +14 -14
  639. package/vscode/src/vs/workbench/browser/workbench.contribution.js +317 -225
  640. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  641. package/vscode/src/vs/workbench/common/contextkeys.d.ts +4 -2
  642. package/vscode/src/vs/workbench/common/contextkeys.js +78 -76
  643. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  644. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +4 -1
  645. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  646. package/vscode/src/vs/workbench/common/editor.d.ts +7 -1
  647. package/vscode/src/vs/workbench/common/editor.js +5 -4
  648. package/vscode/src/vs/workbench/common/notifications.d.ts +11 -0
  649. package/vscode/src/vs/workbench/common/notifications.js +19 -1
  650. package/vscode/src/vs/workbench/common/theme.d.ts +1 -0
  651. package/vscode/src/vs/workbench/common/theme.js +161 -160
  652. package/vscode/src/vs/workbench/common/views.d.ts +32 -5
  653. package/vscode/src/vs/workbench/common/views.js +16 -12
  654. package/vscode/src/vs/workbench/common/views.service.d.ts +1 -0
  655. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +4 -2
  656. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +170 -152
  657. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  658. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +1 -0
  659. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +40 -0
  660. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +524 -102
  661. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +4 -6
  662. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +26 -18
  663. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +9 -2
  664. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +34 -12
  665. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.service.d.ts +1 -0
  666. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service.d.ts +19 -0
  667. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service.js +6 -0
  668. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.d.ts +44 -0
  669. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +243 -0
  670. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
  671. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +15 -0
  672. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +76 -0
  673. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +48 -0
  674. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +9 -0
  675. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  676. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.service.d.ts +73 -7
  677. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.js +2 -2
  678. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.d.ts +3 -1
  679. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +30 -17
  680. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +24 -1
  681. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +137 -66
  682. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +71 -0
  683. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.js +6 -0
  684. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +40 -4
  685. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +3 -3
  686. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +91 -0
  687. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.js +6 -0
  688. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +10 -1
  689. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +41 -13
  690. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +123 -5
  691. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +4 -2
  692. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +27 -13
  693. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +11 -6
  694. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +36 -13
  695. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +34 -9
  696. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +29 -11
  697. package/vscode/src/vs/workbench/contrib/chat/common/contextContrib/chatContext.d.ts +3 -2
  698. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
  699. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
  700. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +52 -6
  701. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +253 -32
  702. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +33 -3
  703. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +21 -6
  704. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +104 -12
  705. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.d.ts +22 -0
  706. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.js +26 -0
  707. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +71 -0
  708. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +298 -0
  709. package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.d.ts +1 -0
  710. package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.js +5 -0
  711. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +17 -33
  712. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +10 -73
  713. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.service.d.ts +1 -1
  714. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service.d.ts +2 -2
  715. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +23 -0
  716. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +64 -0
  717. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.js +6 -0
  718. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +10 -0
  719. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.js +6 -0
  720. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +20 -0
  721. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.js +6 -0
  722. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +21 -0
  723. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.js +6 -0
  724. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +53 -0
  725. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +7 -1
  726. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +35 -20
  727. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +4 -0
  728. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +1 -0
  729. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +10 -1
  730. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +20 -2
  731. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.d.ts +54 -76
  732. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +221 -158
  733. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.d.ts +34 -0
  734. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +94 -0
  735. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.d.ts +67 -0
  736. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +565 -0
  737. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +21 -36
  738. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +148 -111
  739. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +6 -0
  740. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +8 -1
  741. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +60 -18
  742. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +3 -9
  743. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +30 -7
  744. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.d.ts +2 -2
  745. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.js +1 -1
  746. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptsServiceUtils.d.ts +7 -0
  747. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptsServiceUtils.js +12 -1
  748. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +5 -1
  749. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +15 -3
  750. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +57 -0
  751. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +544 -0
  752. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +3 -0
  753. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +40 -2
  754. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +9 -9
  755. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.d.ts +11 -0
  756. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.js +205 -0
  757. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +3 -6
  758. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +40 -29
  759. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +12 -0
  760. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +53 -0
  761. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +17 -1
  762. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.service.d.ts +1 -0
  763. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.d.ts +3 -1
  764. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.service.d.ts +9 -0
  765. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +45 -25
  766. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +9 -11
  767. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +4 -4
  768. package/vscode/src/vs/workbench/contrib/chat/common/tools/promptTsxTypes.d.ts +3 -0
  769. package/vscode/src/vs/workbench/contrib/chat/common/tools/promptTsxTypes.js +12 -1
  770. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service.d.ts +15 -0
  771. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service.js +6 -0
  772. package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
  773. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
  774. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css +1 -1
  775. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  776. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  777. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  778. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css +1 -1
  779. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.d.ts +19 -1
  780. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +35 -11
  781. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  782. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  783. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.d.ts +1 -3
  784. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +9 -11
  785. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  786. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +2 -2
  787. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  788. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
  789. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  790. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  791. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +6 -6
  792. package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
  793. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  794. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
  795. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +5 -4
  796. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
  797. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +4 -4
  798. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
  799. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -4
  800. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +7 -4
  801. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  802. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.d.ts +2 -2
  803. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +30 -28
  804. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  805. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  806. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
  807. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
  808. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  809. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.d.ts +2 -1
  810. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +4 -1
  811. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
  812. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  813. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  814. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  815. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  816. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
  817. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  818. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +14 -8
  819. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  820. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
  821. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -8
  822. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +4 -3
  823. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  824. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  825. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
  826. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
  827. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css +7 -2
  828. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +19 -19
  829. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
  830. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +11 -11
  831. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +3 -1
  832. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +68 -68
  833. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +7 -9
  834. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  835. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  836. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +2 -2
  837. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  838. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  839. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  840. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
  841. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
  842. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
  843. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +49 -47
  844. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
  845. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
  846. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
  847. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +159 -147
  848. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +181 -181
  849. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
  850. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
  851. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
  852. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.d.ts +1 -0
  853. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +29 -25
  854. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +4 -3
  855. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
  856. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.d.ts +10 -2
  857. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +93 -13
  858. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.d.ts +4 -4
  859. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +92 -91
  860. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.d.ts +2 -0
  861. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +24 -6
  862. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.d.ts +7 -0
  863. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +58 -31
  864. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.d.ts +3 -1
  865. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +134 -82
  866. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
  867. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css +24 -3
  868. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css +1 -1
  869. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css +34 -9
  870. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
  871. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
  872. package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +2 -1
  873. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +6 -0
  874. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +3 -2
  875. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  876. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  877. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  878. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
  879. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
  880. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  881. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
  882. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  883. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  884. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  885. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  886. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
  887. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  888. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
  889. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
  890. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  891. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +27 -27
  892. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
  893. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  894. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  895. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  896. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
  897. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +18 -17
  898. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  899. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  900. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  901. package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +1 -0
  902. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
  903. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  904. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  905. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  906. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  907. package/vscode/src/vs/workbench/contrib/git/browser/gitService.d.ts +25 -0
  908. package/vscode/src/vs/workbench/contrib/git/browser/gitService.js +61 -0
  909. package/vscode/src/vs/workbench/contrib/git/common/gitService.service.d.ts +10 -0
  910. package/vscode/src/vs/workbench/contrib/git/common/gitService.service.js +6 -0
  911. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  912. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  913. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  914. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +71 -69
  915. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.d.ts +259 -0
  916. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +1225 -0
  917. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.d.ts +72 -0
  918. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +996 -0
  919. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.d.ts +17 -0
  920. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +49 -0
  921. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.d.ts +5 -0
  922. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +12 -0
  923. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.d.ts +88 -0
  924. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +464 -0
  925. package/vscode/src/vs/workbench/contrib/mcp/browser/media/mcpServerEditor.css +94 -0
  926. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +118 -31
  927. package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.d.ts +11 -0
  928. package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.service.d.ts +26 -0
  929. package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.service.js +6 -0
  930. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.service.d.ts +13 -0
  931. package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.service.js +6 -0
  932. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.d.ts +15 -3
  933. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +155 -19
  934. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTaskManager.js +1 -1
  935. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +19 -3
  936. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +15 -12
  937. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +1 -1
  938. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypesUtils.js +1 -0
  939. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +1 -2917
  940. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
  941. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
  942. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
  943. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  944. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.d.ts +1 -0
  945. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +55 -0
  946. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.d.ts +13 -0
  947. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +62 -0
  948. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  949. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
  950. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  951. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
  952. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css +1 -1
  953. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +19 -18
  954. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  955. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
  956. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  957. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  958. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
  959. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
  960. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  961. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +1 -1
  962. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +2 -4
  963. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  964. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  965. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +13 -1
  966. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
  967. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
  968. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  969. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
  970. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
  971. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
  972. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  973. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  974. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  975. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  976. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  977. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  978. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  979. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  980. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -1
  981. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
  982. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  983. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  984. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  985. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +4 -5
  986. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css +3 -0
  987. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
  988. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +11 -11
  989. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.d.ts +1 -1
  990. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +151 -57
  991. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.d.ts +1 -1
  992. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +16 -4
  993. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +0 -1
  994. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +5 -6
  995. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  996. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +18 -17
  997. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  998. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +84 -84
  999. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.d.ts +15 -2
  1000. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +28 -5
  1001. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
  1002. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
  1003. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
  1004. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
  1005. package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css +3 -3
  1006. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.js +1 -1
  1007. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
  1008. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
  1009. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
  1010. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
  1011. package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +6 -6
  1012. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  1013. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  1014. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  1015. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
  1016. package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/fileMatch.js +1 -1
  1017. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
  1018. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.d.ts +15 -0
  1019. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +33 -10
  1020. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
  1021. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  1022. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  1023. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  1024. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  1025. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  1026. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  1027. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  1028. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.d.ts +433 -0
  1029. package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +1637 -0
  1030. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +514 -0
  1031. package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +1796 -0
  1032. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  1033. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.d.ts +1 -0
  1034. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
  1035. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +18 -14
  1036. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +30 -27
  1037. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -0
  1038. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +6 -7
  1039. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
  1040. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
  1041. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.d.ts +2 -1
  1042. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +195 -87
  1043. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
  1044. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +5 -3
  1045. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +17 -9
  1046. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  1047. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
  1048. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
  1049. package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +2 -0
  1050. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
  1051. package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
  1052. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +71 -61
  1053. package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
  1054. package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
  1055. package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
  1056. package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.d.ts +6 -0
  1057. package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +21 -0
  1058. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
  1059. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
  1060. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
  1061. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
  1062. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  1063. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  1064. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  1065. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.d.ts +2 -1
  1066. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  1067. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +6 -3
  1068. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.d.ts +10 -0
  1069. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +118 -0
  1070. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +10 -4
  1071. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  1072. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +6 -2
  1073. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +193 -100
  1074. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.d.ts +1 -1
  1075. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
  1076. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
  1077. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  1078. package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -1
  1079. package/vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.d.ts +2 -0
  1080. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +9 -0
  1081. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +34 -17
  1082. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +3 -0
  1083. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  1084. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  1085. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  1086. package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +2 -2
  1087. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.d.ts +7 -7
  1088. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +39 -20
  1089. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +59 -3
  1090. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +6 -1
  1091. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +14 -1
  1092. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  1093. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +6 -1
  1094. package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
  1095. package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +1 -1
  1096. package/vscode/src/vs/workbench/services/environment/browser/environmentService.d.ts +1 -1
  1097. package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +16 -9
  1098. package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
  1099. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
  1100. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  1101. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
  1102. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -1
  1103. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +90 -90
  1104. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  1105. package/vscode/src/vs/workbench/services/host/browser/host.d.ts +11 -0
  1106. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +11 -0
  1107. package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
  1108. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +3 -0
  1109. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +3 -0
  1110. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  1111. package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.d.ts +87 -0
  1112. package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.js +702 -0
  1113. package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +1 -1
  1114. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +3 -0
  1115. package/vscode/src/vs/workbench/services/power/common/powerService.d.ts +12 -0
  1116. package/vscode/src/vs/workbench/services/power/common/powerService.service.d.ts +25 -0
  1117. package/vscode/src/vs/workbench/services/power/common/powerService.service.js +6 -0
  1118. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  1119. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  1120. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +1 -0
  1121. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
  1122. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  1123. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +1 -1
  1124. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +13 -13
  1125. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  1126. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +16 -14
  1127. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  1128. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  1129. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
  1130. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  1131. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  1132. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
  1133. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +9 -9
  1134. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +10 -8
  1135. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  1136. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  1137. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  1138. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
  1139. package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.d.ts +12 -0
  1140. package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +7 -0
  1141. package/vscode-dts/vscode.d.ts +26 -1
  1142. package/vscode-dts/vscode.proposed.chatContextProvider.d.ts +47 -11
  1143. package/vscode-dts/vscode.proposed.chatDebug.d.ts +657 -0
  1144. package/vscode-dts/vscode.proposed.chatHooks.d.ts +1 -1
  1145. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +98 -12
  1146. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +36 -6
  1147. package/vscode-dts/vscode.proposed.chatPromptFiles.d.ts +33 -0
  1148. package/vscode-dts/vscode.proposed.chatProvider.d.ts +16 -1
  1149. package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +90 -15
  1150. package/vscode-dts/vscode.proposed.d.ts +4 -1
  1151. package/vscode-dts/{vscode.proposed.envIsAppPortable.d.ts → vscode.proposed.envIsConnectionMetered.d.ts} +7 -7
  1152. package/vscode-dts/vscode.proposed.environmentPower.d.ts +166 -0
  1153. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +17 -0
  1154. package/vscode-dts/vscode.proposed.languageModelToolSupportsModel.d.ts +1 -1
  1155. package/vscode-dts/vscode.proposed.mcpServerDefinitions.d.ts +28 -0
  1156. package/vscode-dts/vscode.proposed.terminalTitle.d.ts +37 -0
  1157. package/vscode/src/vs/platform/assignment/common/assignment.d.ts +0 -85
  1158. package/vscode/src/vs/platform/dialogs/browser/dialog.d.ts +0 -10
  1159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +0 -44
  1160. package/vscode/src/vs/workbench/services/layout/common/workbenchModeService.d.ts +0 -16
  1161. package/vscode/src/vs/workbench/services/layout/common/workbenchModeService.js +0 -20
  1162. package/vscode/src/vs/workbench/services/layout/common/workbenchModeService.service.d.ts +0 -27
  1163. package/vscode/src/vs/workbench/services/views/browser/viewsService.d.ts +0 -77
  1164. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +0 -733
  1165. /package/vscode/src/vs/{workbench/contrib → platform}/mcp/common/modelContextProtocol.js +0 -0
  1166. /package/vscode/src/vs/workbench/contrib/url/{browser → common}/trustedDomainService.service.d.ts +0 -0
  1167. /package/vscode/src/vs/workbench/contrib/url/{browser → common}/trustedDomainService.service.js +0 -0
@@ -1,2917 +1 @@
1
- /**
2
- * MCP protocol proposals.
3
- * - Proposals here MUST have an MCP PR linked to them
4
- * - Proposals here are subject to change and SHALL be removed when
5
- * the upstream MCP PR is merged or closed.
6
- */
7
- export declare namespace MCP {
8
- }
9
- /**
10
- * Schema updated from the Model Context Protocol repository at
11
- * https://github.com/modelcontextprotocol/specification/tree/main/schema
12
- *
13
- * ⚠️ Do not edit within `namespace` manually except to update schema versions ⚠️
14
- */
15
- export declare namespace MCP {
16
- /**
17
- * Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
18
- *
19
- * @category JSON-RPC
20
- */
21
- type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResponse;
22
- /** @internal */
23
- const LATEST_PROTOCOL_VERSION = "2025-11-25";
24
- /** @internal */
25
- const JSONRPC_VERSION = "2.0";
26
- /**
27
- * Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions.
28
- *
29
- * Certain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions.
30
- *
31
- * Valid keys have two segments:
32
- *
33
- * **Prefix:**
34
- * - Optional - if specified, MUST be a series of _labels_ separated by dots (`.`), followed by a slash (`/`).
35
- * - Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).
36
- * - Any prefix consisting of zero or more labels, followed by `modelcontextprotocol` or `mcp`, followed by any label, is **reserved** for MCP use. For example: `modelcontextprotocol.io/`, `mcp.dev/`, `api.modelcontextprotocol.org/`, and `tools.mcp.com/` are all reserved.
37
- *
38
- * **Name:**
39
- * - Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).
40
- * - Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).
41
- *
42
- * @see [General fields: `_meta`](/specification/draft/basic/index#meta) for more details.
43
- * @category Common Types
44
- */
45
- type MetaObject = Record<string, unknown>;
46
- /**
47
- * Extends {@link MetaObject} with additional request-specific fields. All key naming rules from `MetaObject` apply.
48
- *
49
- * @see {@link MetaObject} for key naming rules and reserved prefixes.
50
- * @see [General fields: `_meta`](/specification/draft/basic/index#meta) for more details.
51
- * @category Common Types
52
- */
53
- interface RequestMetaObject extends MetaObject {
54
- /**
55
- * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by {@link ProgressNotification | 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.
56
- */
57
- progressToken?: ProgressToken;
58
- }
59
- /**
60
- * A progress token, used to associate progress notifications with the original request.
61
- *
62
- * @category Common Types
63
- */
64
- type ProgressToken = string | number;
65
- /**
66
- * An opaque token used to represent a cursor for pagination.
67
- *
68
- * @category Common Types
69
- */
70
- type Cursor = string;
71
- /**
72
- * Common params for any task-augmented request.
73
- *
74
- * @internal
75
- */
76
- interface TaskAugmentedRequestParams extends RequestParams {
77
- /**
78
- * If specified, the caller is requesting task-augmented execution for this request.
79
- * The request will return a {@link CreateTaskResult} immediately, and the actual result can be
80
- * retrieved later via {@link GetTaskPayloadRequest | tasks/result}.
81
- *
82
- * Task augmentation is subject to capability negotiation - receivers MUST declare support
83
- * for task augmentation of specific request types in their capabilities.
84
- */
85
- task?: TaskMetadata;
86
- }
87
- /**
88
- * Common params for any request.
89
- *
90
- * @category Common Types
91
- */
92
- interface RequestParams {
93
- _meta?: RequestMetaObject;
94
- }
95
- /** @internal */
96
- interface Request {
97
- method: string;
98
- params?: {
99
- [key: string]: any;
100
- };
101
- }
102
- /**
103
- * Common params for any notification.
104
- *
105
- * @category Common Types
106
- */
107
- interface NotificationParams {
108
- _meta?: MetaObject;
109
- }
110
- /** @internal */
111
- interface Notification {
112
- method: string;
113
- params?: {
114
- [key: string]: any;
115
- };
116
- }
117
- /**
118
- * Common result fields.
119
- *
120
- * @category Common Types
121
- */
122
- interface Result {
123
- _meta?: MetaObject;
124
- [key: string]: unknown;
125
- }
126
- /**
127
- * @category Errors
128
- */
129
- interface Error {
130
- /**
131
- * The error type that occurred.
132
- */
133
- code: number;
134
- /**
135
- * A short description of the error. The message SHOULD be limited to a concise single sentence.
136
- */
137
- message: string;
138
- /**
139
- * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
140
- */
141
- data?: unknown;
142
- }
143
- /**
144
- * A uniquely identifying ID for a request in JSON-RPC.
145
- *
146
- * @category Common Types
147
- */
148
- type RequestId = string | number;
149
- /**
150
- * A request that expects a response.
151
- *
152
- * @category JSON-RPC
153
- */
154
- interface JSONRPCRequest extends Request {
155
- jsonrpc: typeof JSONRPC_VERSION;
156
- id: RequestId;
157
- }
158
- /**
159
- * A notification which does not expect a response.
160
- *
161
- * @category JSON-RPC
162
- */
163
- interface JSONRPCNotification extends Notification {
164
- jsonrpc: typeof JSONRPC_VERSION;
165
- }
166
- /**
167
- * A successful (non-error) response to a request.
168
- *
169
- * @category JSON-RPC
170
- */
171
- interface JSONRPCResultResponse {
172
- jsonrpc: typeof JSONRPC_VERSION;
173
- id: RequestId;
174
- result: Result;
175
- }
176
- /**
177
- * A response to a request that indicates an error occurred.
178
- *
179
- * @category JSON-RPC
180
- */
181
- interface JSONRPCErrorResponse {
182
- jsonrpc: typeof JSONRPC_VERSION;
183
- id?: RequestId;
184
- error: Error;
185
- }
186
- /**
187
- * A response to a request, containing either the result or error.
188
- *
189
- * @category JSON-RPC
190
- */
191
- type JSONRPCResponse = JSONRPCResultResponse | JSONRPCErrorResponse;
192
- const PARSE_ERROR = -32700;
193
- const INVALID_REQUEST = -32600;
194
- const METHOD_NOT_FOUND = -32601;
195
- const INVALID_PARAMS = -32602;
196
- const INTERNAL_ERROR = -32603;
197
- /**
198
- * A JSON-RPC error indicating that invalid JSON was received by the server. This error is returned when the server cannot parse the JSON text of a message.
199
- *
200
- * @see {@link https://www.jsonrpc.org/specification#error_object | JSON-RPC 2.0 Error Object}
201
- *
202
- * @example Invalid JSON
203
- * {@includeCode ./examples/ParseError/invalid-json.json}
204
- *
205
- * @category Errors
206
- */
207
- interface ParseError extends Error {
208
- code: typeof PARSE_ERROR;
209
- }
210
- /**
211
- * A JSON-RPC error indicating that the request is not a valid request object. This error is returned when the message structure does not conform to the JSON-RPC 2.0 specification requirements for a request (e.g., missing required fields like `jsonrpc` or `method`, or using invalid types for these fields).
212
- *
213
- * @see {@link https://www.jsonrpc.org/specification#error_object | JSON-RPC 2.0 Error Object}
214
- *
215
- * @category Errors
216
- */
217
- interface InvalidRequestError extends Error {
218
- code: typeof INVALID_REQUEST;
219
- }
220
- /**
221
- * A JSON-RPC error indicating that the requested method does not exist or is not available.
222
- *
223
- * In MCP, this error is returned when a request is made for a method that requires a capability that has not been declared. This can occur in either direction:
224
- *
225
- * - A server returning this error when the client requests a capability it doesn't support (e.g., requesting completions when the `completions` capability was not advertised)
226
- * - A client returning this error when the server requests a capability it doesn't support (e.g., requesting roots when the client did not declare the `roots` capability)
227
- *
228
- * @see {@link https://www.jsonrpc.org/specification#error_object | JSON-RPC 2.0 Error Object}
229
- *
230
- * @example Roots not supported
231
- * {@includeCode ./examples/MethodNotFoundError/roots-not-supported.json}
232
- *
233
- * @category Errors
234
- */
235
- interface MethodNotFoundError extends Error {
236
- code: typeof METHOD_NOT_FOUND;
237
- }
238
- /**
239
- * A JSON-RPC error indicating that the method parameters are invalid or malformed.
240
- *
241
- * In MCP, this error is returned in various contexts when request parameters fail validation:
242
- *
243
- * - **Tools**: Unknown tool name or invalid tool arguments
244
- * - **Prompts**: Unknown prompt name or missing required arguments
245
- * - **Pagination**: Invalid or expired cursor values
246
- * - **Logging**: Invalid log level
247
- * - **Tasks**: Invalid or nonexistent task ID, invalid cursor, or attempting to cancel a task already in a terminal status
248
- * - **Elicitation**: Server requests an elicitation mode not declared in client capabilities
249
- * - **Sampling**: Missing tool result or tool results mixed with other content
250
- *
251
- * @see {@link https://www.jsonrpc.org/specification#error_object | JSON-RPC 2.0 Error Object}
252
- *
253
- * @example Unknown tool
254
- * {@includeCode ./examples/InvalidParamsError/unknown-tool.json}
255
- *
256
- * @example Invalid tool arguments
257
- * {@includeCode ./examples/InvalidParamsError/invalid-tool-arguments.json}
258
- *
259
- * @example Unknown prompt
260
- * {@includeCode ./examples/InvalidParamsError/unknown-prompt.json}
261
- *
262
- * @example Invalid cursor
263
- * {@includeCode ./examples/InvalidParamsError/invalid-cursor.json}
264
- *
265
- * @category Errors
266
- */
267
- interface InvalidParamsError extends Error {
268
- code: typeof INVALID_PARAMS;
269
- }
270
- /**
271
- * A JSON-RPC error indicating that an internal error occurred on the receiver. This error is returned when the receiver encounters an unexpected condition that prevents it from fulfilling the request.
272
- *
273
- * @see {@link https://www.jsonrpc.org/specification#error_object | JSON-RPC 2.0 Error Object}
274
- *
275
- * @example Unexpected error
276
- * {@includeCode ./examples/InternalError/unexpected-error.json}
277
- *
278
- * @category Errors
279
- */
280
- interface InternalError extends Error {
281
- code: typeof INTERNAL_ERROR;
282
- }
283
- /** @internal */
284
- const URL_ELICITATION_REQUIRED = -32042;
285
- /**
286
- * An error response that indicates that the server requires the client to provide additional information via an elicitation request.
287
- *
288
- * @example Authorization required
289
- * {@includeCode ./examples/URLElicitationRequiredError/authorization-required.json}
290
- *
291
- * @internal
292
- */
293
- interface URLElicitationRequiredError extends Omit<JSONRPCErrorResponse, "error"> {
294
- error: Error & {
295
- code: typeof URL_ELICITATION_REQUIRED;
296
- data: {
297
- elicitations: ElicitRequestURLParams[];
298
- [key: string]: unknown;
299
- };
300
- };
301
- }
302
- /**
303
- * A result that indicates success but carries no data.
304
- *
305
- * @category Common Types
306
- */
307
- type EmptyResult = Result;
308
- /**
309
- * Parameters for a `notifications/cancelled` notification.
310
- *
311
- * @example User-requested cancellation
312
- * {@includeCode ./examples/CancelledNotificationParams/user-requested-cancellation.json}
313
- *
314
- * @category `notifications/cancelled`
315
- */
316
- interface CancelledNotificationParams extends NotificationParams {
317
- /**
318
- * The ID of the request to cancel.
319
- *
320
- * This MUST correspond to the ID of a request previously issued in the same direction.
321
- * This MUST be provided for cancelling non-task requests.
322
- * This MUST NOT be used for cancelling tasks (use the {@link CancelTaskRequest | tasks/cancel} request instead).
323
- */
324
- requestId?: RequestId;
325
- /**
326
- * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
327
- */
328
- reason?: string;
329
- }
330
- /**
331
- * This notification can be sent by either side to indicate that it is cancelling a previously-issued request.
332
- *
333
- * 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.
334
- *
335
- * This notification indicates that the result will be unused, so any associated processing SHOULD cease.
336
- *
337
- * A client MUST NOT attempt to cancel its `initialize` request.
338
- *
339
- * For task cancellation, use the {@link CancelTaskRequest | tasks/cancel} request instead of this notification.
340
- *
341
- * @example User-requested cancellation
342
- * {@includeCode ./examples/CancelledNotification/user-requested-cancellation.json}
343
- *
344
- * @category `notifications/cancelled`
345
- */
346
- interface CancelledNotification extends JSONRPCNotification {
347
- method: "notifications/cancelled";
348
- params: CancelledNotificationParams;
349
- }
350
- /**
351
- * Parameters for an `initialize` request.
352
- *
353
- * @example Full client capabilities
354
- * {@includeCode ./examples/InitializeRequestParams/full-client-capabilities.json}
355
- *
356
- * @category `initialize`
357
- */
358
- interface InitializeRequestParams extends RequestParams {
359
- /**
360
- * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
361
- */
362
- protocolVersion: string;
363
- capabilities: ClientCapabilities;
364
- clientInfo: Implementation;
365
- }
366
- /**
367
- * This request is sent from the client to the server when it first connects, asking it to begin initialization.
368
- *
369
- * @example Initialize request
370
- * {@includeCode ./examples/InitializeRequest/initialize-request.json}
371
- *
372
- * @category `initialize`
373
- */
374
- interface InitializeRequest extends JSONRPCRequest {
375
- method: "initialize";
376
- params: InitializeRequestParams;
377
- }
378
- /**
379
- * The result returned by the server for an {@link InitializeRequest | initialize} request.
380
- *
381
- * @example Full server capabilities
382
- * {@includeCode ./examples/InitializeResult/full-server-capabilities.json}
383
- *
384
- * @category `initialize`
385
- */
386
- interface InitializeResult extends Result {
387
- /**
388
- * 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.
389
- */
390
- protocolVersion: string;
391
- capabilities: ServerCapabilities;
392
- serverInfo: Implementation;
393
- /**
394
- * Instructions describing how to use the server and its features.
395
- *
396
- * 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.
397
- */
398
- instructions?: string;
399
- }
400
- /**
401
- * A successful response from the server for a {@link InitializeRequest | initialize} request.
402
- *
403
- * @example Initialize result response
404
- * {@includeCode ./examples/InitializeResultResponse/initialize-result-response.json}
405
- *
406
- * @category `initialize`
407
- */
408
- interface InitializeResultResponse extends JSONRPCResultResponse {
409
- result: InitializeResult;
410
- }
411
- /**
412
- * This notification is sent from the client to the server after initialization has finished.
413
- *
414
- * @example Initialized notification
415
- * {@includeCode ./examples/InitializedNotification/initialized-notification.json}
416
- *
417
- * @category `notifications/initialized`
418
- */
419
- interface InitializedNotification extends JSONRPCNotification {
420
- method: "notifications/initialized";
421
- params?: NotificationParams;
422
- }
423
- /**
424
- * 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.
425
- *
426
- * @category `initialize`
427
- */
428
- interface ClientCapabilities {
429
- /**
430
- * Experimental, non-standard capabilities that the client supports.
431
- */
432
- experimental?: {
433
- [key: string]: object;
434
- };
435
- /**
436
- * Present if the client supports listing roots.
437
- *
438
- * @example Roots - minimum baseline support
439
- * {@includeCode ./examples/ClientCapabilities/roots-minimum-baseline-support.json}
440
- *
441
- * @example Roots - list changed notifications
442
- * {@includeCode ./examples/ClientCapabilities/roots-list-changed-notifications.json}
443
- */
444
- roots?: {
445
- /**
446
- * Whether the client supports notifications for changes to the roots list.
447
- */
448
- listChanged?: boolean;
449
- };
450
- /**
451
- * Present if the client supports sampling from an LLM.
452
- *
453
- * @example Sampling - minimum baseline support
454
- * {@includeCode ./examples/ClientCapabilities/sampling-minimum-baseline-support.json}
455
- *
456
- * @example Sampling - tool use support
457
- * {@includeCode ./examples/ClientCapabilities/sampling-tool-use-support.json}
458
- *
459
- * @example Sampling - context inclusion support (soft-deprecated)
460
- * {@includeCode ./examples/ClientCapabilities/sampling-context-inclusion-support-soft-deprecated.json}
461
- */
462
- sampling?: {
463
- /**
464
- * Whether the client supports context inclusion via `includeContext` parameter.
465
- * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it).
466
- */
467
- context?: object;
468
- /**
469
- * Whether the client supports tool use via `tools` and `toolChoice` parameters.
470
- */
471
- tools?: object;
472
- };
473
- /**
474
- * Present if the client supports elicitation from the server.
475
- *
476
- * @example Elicitation - form and URL mode support
477
- * {@includeCode ./examples/ClientCapabilities/elicitation-form-and-url-mode-support.json}
478
- *
479
- * @example Elicitation - form mode only (implicit)
480
- * {@includeCode ./examples/ClientCapabilities/elicitation-form-only-implicit.json}
481
- */
482
- elicitation?: {
483
- form?: object;
484
- url?: object;
485
- };
486
- /**
487
- * Present if the client supports task-augmented requests.
488
- */
489
- tasks?: {
490
- /**
491
- * Whether this client supports {@link ListTasksRequest | tasks/list}.
492
- */
493
- list?: object;
494
- /**
495
- * Whether this client supports {@link CancelTaskRequest | tasks/cancel}.
496
- */
497
- cancel?: object;
498
- /**
499
- * Specifies which request types can be augmented with tasks.
500
- */
501
- requests?: {
502
- /**
503
- * Task support for sampling-related requests.
504
- */
505
- sampling?: {
506
- /**
507
- * Whether the client supports task-augmented `sampling/createMessage` requests.
508
- */
509
- createMessage?: object;
510
- };
511
- /**
512
- * Task support for elicitation-related requests.
513
- */
514
- elicitation?: {
515
- /**
516
- * Whether the client supports task-augmented {@link ElicitRequest | elicitation/create} requests.
517
- */
518
- create?: object;
519
- };
520
- };
521
- };
522
- /**
523
- * Optional MCP extensions that the client supports. Keys are extension identifiers
524
- * (e.g., "io.modelcontextprotocol/oauth-client-credentials"), and values are
525
- * per-extension settings objects. An empty object indicates support with no settings.
526
- *
527
- * @example Extensions - UI extension with MIME type support
528
- * {@includeCode ./examples/ClientCapabilities/extensions-ui-mime-types.json}
529
- */
530
- extensions?: {
531
- [key: string]: object;
532
- };
533
- }
534
- /**
535
- * 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.
536
- *
537
- * @category `initialize`
538
- */
539
- interface ServerCapabilities {
540
- /**
541
- * Experimental, non-standard capabilities that the server supports.
542
- */
543
- experimental?: {
544
- [key: string]: object;
545
- };
546
- /**
547
- * Present if the server supports sending log messages to the client.
548
- *
549
- * @example Logging - minimum baseline support
550
- * {@includeCode ./examples/ServerCapabilities/logging-minimum-baseline-support.json}
551
- */
552
- logging?: object;
553
- /**
554
- * Present if the server supports argument autocompletion suggestions.
555
- *
556
- * @example Completions - minimum baseline support
557
- * {@includeCode ./examples/ServerCapabilities/completions-minimum-baseline-support.json}
558
- */
559
- completions?: object;
560
- /**
561
- * Present if the server offers any prompt templates.
562
- *
563
- * @example Prompts - minimum baseline support
564
- * {@includeCode ./examples/ServerCapabilities/prompts-minimum-baseline-support.json}
565
- *
566
- * @example Prompts - list changed notifications
567
- * {@includeCode ./examples/ServerCapabilities/prompts-list-changed-notifications.json}
568
- */
569
- prompts?: {
570
- /**
571
- * Whether this server supports notifications for changes to the prompt list.
572
- */
573
- listChanged?: boolean;
574
- };
575
- /**
576
- * Present if the server offers any resources to read.
577
- *
578
- * @example Resources - minimum baseline support
579
- * {@includeCode ./examples/ServerCapabilities/resources-minimum-baseline-support.json}
580
- *
581
- * @example Resources - subscription to individual resource updates (only)
582
- * {@includeCode ./examples/ServerCapabilities/resources-subscription-to-individual-resource-updates-only.json}
583
- *
584
- * @example Resources - list changed notifications (only)
585
- * {@includeCode ./examples/ServerCapabilities/resources-list-changed-notifications-only.json}
586
- *
587
- * @example Resources - all notifications
588
- * {@includeCode ./examples/ServerCapabilities/resources-all-notifications.json}
589
- */
590
- resources?: {
591
- /**
592
- * Whether this server supports subscribing to resource updates.
593
- */
594
- subscribe?: boolean;
595
- /**
596
- * Whether this server supports notifications for changes to the resource list.
597
- */
598
- listChanged?: boolean;
599
- };
600
- /**
601
- * Present if the server offers any tools to call.
602
- *
603
- * @example Tools - minimum baseline support
604
- * {@includeCode ./examples/ServerCapabilities/tools-minimum-baseline-support.json}
605
- *
606
- * @example Tools - list changed notifications
607
- * {@includeCode ./examples/ServerCapabilities/tools-list-changed-notifications.json}
608
- */
609
- tools?: {
610
- /**
611
- * Whether this server supports notifications for changes to the tool list.
612
- */
613
- listChanged?: boolean;
614
- };
615
- /**
616
- * Present if the server supports task-augmented requests.
617
- */
618
- tasks?: {
619
- /**
620
- * Whether this server supports {@link ListTasksRequest | tasks/list}.
621
- */
622
- list?: object;
623
- /**
624
- * Whether this server supports {@link CancelTaskRequest | tasks/cancel}.
625
- */
626
- cancel?: object;
627
- /**
628
- * Specifies which request types can be augmented with tasks.
629
- */
630
- requests?: {
631
- /**
632
- * Task support for tool-related requests.
633
- */
634
- tools?: {
635
- /**
636
- * Whether the server supports task-augmented {@link CallToolRequest | tools/call} requests.
637
- */
638
- call?: object;
639
- };
640
- };
641
- };
642
- /**
643
- * Optional MCP extensions that the server supports. Keys are extension identifiers
644
- * (e.g., "io.modelcontextprotocol/apps"), and values are per-extension settings
645
- * objects. An empty object indicates support with no settings.
646
- *
647
- * @example Extensions - UI extension support
648
- * {@includeCode ./examples/ServerCapabilities/extensions-ui.json}
649
- */
650
- extensions?: {
651
- [key: string]: object;
652
- };
653
- }
654
- /**
655
- * An optionally-sized icon that can be displayed in a user interface.
656
- *
657
- * @category Common Types
658
- */
659
- interface Icon {
660
- /**
661
- * A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
662
- * `data:` URI with Base64-encoded image data.
663
- *
664
- * Consumers SHOULD take steps to ensure URLs serving icons are from the
665
- * same domain as the client/server or a trusted domain.
666
- *
667
- * Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
668
- * executable JavaScript.
669
- *
670
- * @format uri
671
- */
672
- src: string;
673
- /**
674
- * Optional MIME type override if the source MIME type is missing or generic.
675
- * For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`.
676
- */
677
- mimeType?: string;
678
- /**
679
- * Optional array of strings that specify sizes at which the icon can be used.
680
- * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
681
- *
682
- * If not provided, the client should assume that the icon can be used at any size.
683
- */
684
- sizes?: string[];
685
- /**
686
- * Optional specifier for the theme this icon is designed for. `"light"` indicates
687
- * the icon is designed to be used with a light background, and `"dark"` indicates
688
- * the icon is designed to be used with a dark background.
689
- *
690
- * If not provided, the client should assume the icon can be used with any theme.
691
- */
692
- theme?: "light" | "dark";
693
- }
694
- /**
695
- * Base interface to add `icons` property.
696
- *
697
- * @internal
698
- */
699
- interface Icons {
700
- /**
701
- * Optional set of sized icons that the client can display in a user interface.
702
- *
703
- * Clients that support rendering icons MUST support at least the following MIME types:
704
- * - `image/png` - PNG images (safe, universal compatibility)
705
- * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
706
- *
707
- * Clients that support rendering icons SHOULD also support:
708
- * - `image/svg+xml` - SVG images (scalable but requires security precautions)
709
- * - `image/webp` - WebP images (modern, efficient format)
710
- */
711
- icons?: Icon[];
712
- }
713
- /**
714
- * Base interface for metadata with name (identifier) and title (display name) properties.
715
- *
716
- * @internal
717
- */
718
- interface BaseMetadata {
719
- /**
720
- * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
721
- */
722
- name: string;
723
- /**
724
- * Intended for UI and end-user contexts - optimized to be human-readable and easily understood,
725
- * even by those unfamiliar with domain-specific terminology.
726
- *
727
- * If not provided, the name should be used for display (except for {@link Tool},
728
- * where `annotations.title` should be given precedence over using `name`,
729
- * if present).
730
- */
731
- title?: string;
732
- }
733
- /**
734
- * Describes the MCP implementation.
735
- *
736
- * @category `initialize`
737
- */
738
- interface Implementation extends BaseMetadata, Icons {
739
- /**
740
- * The version of this implementation.
741
- */
742
- version: string;
743
- /**
744
- * An optional human-readable description of what this implementation does.
745
- *
746
- * This can be used by clients or servers to provide context about their purpose
747
- * and capabilities. For example, a server might describe the types of resources
748
- * or tools it provides, while a client might describe its intended use case.
749
- */
750
- description?: string;
751
- /**
752
- * An optional URL of the website for this implementation.
753
- *
754
- * @format uri
755
- */
756
- websiteUrl?: string;
757
- }
758
- /**
759
- * 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.
760
- *
761
- * @example Ping request
762
- * {@includeCode ./examples/PingRequest/ping-request.json}
763
- *
764
- * @category `ping`
765
- */
766
- interface PingRequest extends JSONRPCRequest {
767
- method: "ping";
768
- params?: RequestParams;
769
- }
770
- /**
771
- * A successful response for a {@link PingRequest | ping} request.
772
- *
773
- * @example Ping result response
774
- * {@includeCode ./examples/PingResultResponse/ping-result-response.json}
775
- *
776
- * @category `ping`
777
- */
778
- interface PingResultResponse extends JSONRPCResultResponse {
779
- result: EmptyResult;
780
- }
781
- /**
782
- * Parameters for a {@link ProgressNotification | notifications/progress} notification.
783
- *
784
- * @example Progress message
785
- * {@includeCode ./examples/ProgressNotificationParams/progress-message.json}
786
- *
787
- * @category `notifications/progress`
788
- */
789
- interface ProgressNotificationParams extends NotificationParams {
790
- /**
791
- * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
792
- */
793
- progressToken: ProgressToken;
794
- /**
795
- * The progress thus far. This should increase every time progress is made, even if the total is unknown.
796
- *
797
- * @TJS-type number
798
- */
799
- progress: number;
800
- /**
801
- * Total number of items to process (or total progress required), if known.
802
- *
803
- * @TJS-type number
804
- */
805
- total?: number;
806
- /**
807
- * An optional message describing the current progress.
808
- */
809
- message?: string;
810
- }
811
- /**
812
- * An out-of-band notification used to inform the receiver of a progress update for a long-running request.
813
- *
814
- * @example Progress message
815
- * {@includeCode ./examples/ProgressNotification/progress-message.json}
816
- *
817
- * @category `notifications/progress`
818
- */
819
- interface ProgressNotification extends JSONRPCNotification {
820
- method: "notifications/progress";
821
- params: ProgressNotificationParams;
822
- }
823
- /**
824
- * Common params for paginated requests.
825
- *
826
- * @example List request with cursor
827
- * {@includeCode ./examples/PaginatedRequestParams/list-with-cursor.json}
828
- *
829
- * @category Common Types
830
- */
831
- interface PaginatedRequestParams extends RequestParams {
832
- /**
833
- * An opaque token representing the current pagination position.
834
- * If provided, the server should return results starting after this cursor.
835
- */
836
- cursor?: Cursor;
837
- }
838
- /** @internal */
839
- interface PaginatedRequest extends JSONRPCRequest {
840
- params?: PaginatedRequestParams;
841
- }
842
- /** @internal */
843
- interface PaginatedResult extends Result {
844
- /**
845
- * An opaque token representing the pagination position after the last returned result.
846
- * If present, there may be more results available.
847
- */
848
- nextCursor?: Cursor;
849
- }
850
- /**
851
- * Sent from the client to request a list of resources the server has.
852
- *
853
- * @example List resources request
854
- * {@includeCode ./examples/ListResourcesRequest/list-resources-request.json}
855
- *
856
- * @category `resources/list`
857
- */
858
- interface ListResourcesRequest extends PaginatedRequest {
859
- method: "resources/list";
860
- }
861
- /**
862
- * The result returned by the server for a {@link ListResourcesRequest | resources/list} request.
863
- *
864
- * @example Resources list with cursor
865
- * {@includeCode ./examples/ListResourcesResult/resources-list-with-cursor.json}
866
- *
867
- * @category `resources/list`
868
- */
869
- interface ListResourcesResult extends PaginatedResult {
870
- resources: Resource[];
871
- }
872
- /**
873
- * A successful response from the server for a {@link ListResourcesRequest | resources/list} request.
874
- *
875
- * @example List resources result response
876
- * {@includeCode ./examples/ListResourcesResultResponse/list-resources-result-response.json}
877
- *
878
- * @category `resources/list`
879
- */
880
- interface ListResourcesResultResponse extends JSONRPCResultResponse {
881
- result: ListResourcesResult;
882
- }
883
- /**
884
- * Sent from the client to request a list of resource templates the server has.
885
- *
886
- * @example List resource templates request
887
- * {@includeCode ./examples/ListResourceTemplatesRequest/list-resource-templates-request.json}
888
- *
889
- * @category `resources/templates/list`
890
- */
891
- interface ListResourceTemplatesRequest extends PaginatedRequest {
892
- method: "resources/templates/list";
893
- }
894
- /**
895
- * The result returned by the server for a {@link ListResourceTemplatesRequest | resources/templates/list} request.
896
- *
897
- * @example Resource templates list
898
- * {@includeCode ./examples/ListResourceTemplatesResult/resource-templates-list.json}
899
- *
900
- * @category `resources/templates/list`
901
- */
902
- interface ListResourceTemplatesResult extends PaginatedResult {
903
- resourceTemplates: ResourceTemplate[];
904
- }
905
- /**
906
- * A successful response from the server for a {@link ListResourceTemplatesRequest | resources/templates/list} request.
907
- *
908
- * @example List resource templates result response
909
- * {@includeCode ./examples/ListResourceTemplatesResultResponse/list-resource-templates-result-response.json}
910
- *
911
- * @category `resources/templates/list`
912
- */
913
- interface ListResourceTemplatesResultResponse extends JSONRPCResultResponse {
914
- result: ListResourceTemplatesResult;
915
- }
916
- /**
917
- * Common params for resource-related requests.
918
- *
919
- * @internal
920
- */
921
- interface ResourceRequestParams extends RequestParams {
922
- /**
923
- * The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.
924
- *
925
- * @format uri
926
- */
927
- uri: string;
928
- }
929
- /**
930
- * Parameters for a `resources/read` request.
931
- *
932
- * @category `resources/read`
933
- */
934
- interface ReadResourceRequestParams extends ResourceRequestParams {
935
- }
936
- /**
937
- * Sent from the client to the server, to read a specific resource URI.
938
- *
939
- * @example Read resource request
940
- * {@includeCode ./examples/ReadResourceRequest/read-resource-request.json}
941
- *
942
- * @category `resources/read`
943
- */
944
- interface ReadResourceRequest extends JSONRPCRequest {
945
- method: "resources/read";
946
- params: ReadResourceRequestParams;
947
- }
948
- /**
949
- * The result returned by the server for a {@link ReadResourceRequest | resources/read} request.
950
- *
951
- * @example File resource contents
952
- * {@includeCode ./examples/ReadResourceResult/file-resource-contents.json}
953
- *
954
- * @category `resources/read`
955
- */
956
- interface ReadResourceResult extends Result {
957
- contents: (TextResourceContents | BlobResourceContents)[];
958
- }
959
- /**
960
- * A successful response from the server for a {@link ReadResourceRequest | resources/read} request.
961
- *
962
- * @example Read resource result response
963
- * {@includeCode ./examples/ReadResourceResultResponse/read-resource-result-response.json}
964
- *
965
- * @category `resources/read`
966
- */
967
- interface ReadResourceResultResponse extends JSONRPCResultResponse {
968
- result: ReadResourceResult;
969
- }
970
- /**
971
- * 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.
972
- *
973
- * @example Resources list changed
974
- * {@includeCode ./examples/ResourceListChangedNotification/resources-list-changed.json}
975
- *
976
- * @category `notifications/resources/list_changed`
977
- */
978
- interface ResourceListChangedNotification extends JSONRPCNotification {
979
- method: "notifications/resources/list_changed";
980
- params?: NotificationParams;
981
- }
982
- /**
983
- * Parameters for a `resources/subscribe` request.
984
- *
985
- * @example Subscribe to file resource
986
- * {@includeCode ./examples/SubscribeRequestParams/subscribe-to-file-resource.json}
987
- *
988
- * @category `resources/subscribe`
989
- */
990
- interface SubscribeRequestParams extends ResourceRequestParams {
991
- }
992
- /**
993
- * Sent from the client to request {@link ResourceUpdatedNotification | resources/updated} notifications from the server whenever a particular resource changes.
994
- *
995
- * @example Subscribe request
996
- * {@includeCode ./examples/SubscribeRequest/subscribe-request.json}
997
- *
998
- * @category `resources/subscribe`
999
- */
1000
- interface SubscribeRequest extends JSONRPCRequest {
1001
- method: "resources/subscribe";
1002
- params: SubscribeRequestParams;
1003
- }
1004
- /**
1005
- * A successful response from the server for a {@link SubscribeRequest | resources/subscribe} request.
1006
- *
1007
- * @example Subscribe result response
1008
- * {@includeCode ./examples/SubscribeResultResponse/subscribe-result-response.json}
1009
- *
1010
- * @category `resources/subscribe`
1011
- */
1012
- interface SubscribeResultResponse extends JSONRPCResultResponse {
1013
- result: EmptyResult;
1014
- }
1015
- /**
1016
- * Parameters for a `resources/unsubscribe` request.
1017
- *
1018
- * @category `resources/unsubscribe`
1019
- */
1020
- interface UnsubscribeRequestParams extends ResourceRequestParams {
1021
- }
1022
- /**
1023
- * Sent from the client to request cancellation of {@link ResourceUpdatedNotification | resources/updated} notifications from the server. This should follow a previous {@link SubscribeRequest | resources/subscribe} request.
1024
- *
1025
- * @example Unsubscribe request
1026
- * {@includeCode ./examples/UnsubscribeRequest/unsubscribe-request.json}
1027
- *
1028
- * @category `resources/unsubscribe`
1029
- */
1030
- interface UnsubscribeRequest extends JSONRPCRequest {
1031
- method: "resources/unsubscribe";
1032
- params: UnsubscribeRequestParams;
1033
- }
1034
- /**
1035
- * A successful response from the server for a {@link UnsubscribeRequest | resources/unsubscribe} request.
1036
- *
1037
- * @example Unsubscribe result response
1038
- * {@includeCode ./examples/UnsubscribeResultResponse/unsubscribe-result-response.json}
1039
- *
1040
- * @category `resources/unsubscribe`
1041
- */
1042
- interface UnsubscribeResultResponse extends JSONRPCResultResponse {
1043
- result: EmptyResult;
1044
- }
1045
- /**
1046
- * Parameters for a `notifications/resources/updated` notification.
1047
- *
1048
- * @example File resource updated
1049
- * {@includeCode ./examples/ResourceUpdatedNotificationParams/file-resource-updated.json}
1050
- *
1051
- * @category `notifications/resources/updated`
1052
- */
1053
- interface ResourceUpdatedNotificationParams extends NotificationParams {
1054
- /**
1055
- * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
1056
- *
1057
- * @format uri
1058
- */
1059
- uri: string;
1060
- }
1061
- /**
1062
- * 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 {@link SubscribeRequest | resources/subscribe} request.
1063
- *
1064
- * @example File resource updated notification
1065
- * {@includeCode ./examples/ResourceUpdatedNotification/file-resource-updated-notification.json}
1066
- *
1067
- * @category `notifications/resources/updated`
1068
- */
1069
- interface ResourceUpdatedNotification extends JSONRPCNotification {
1070
- method: "notifications/resources/updated";
1071
- params: ResourceUpdatedNotificationParams;
1072
- }
1073
- /**
1074
- * A known resource that the server is capable of reading.
1075
- *
1076
- * @example File resource with annotations
1077
- * {@includeCode ./examples/Resource/file-resource-with-annotations.json}
1078
- *
1079
- * @category `resources/list`
1080
- */
1081
- interface Resource extends BaseMetadata, Icons {
1082
- /**
1083
- * The URI of this resource.
1084
- *
1085
- * @format uri
1086
- */
1087
- uri: string;
1088
- /**
1089
- * A description of what this resource represents.
1090
- *
1091
- * 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.
1092
- */
1093
- description?: string;
1094
- /**
1095
- * The MIME type of this resource, if known.
1096
- */
1097
- mimeType?: string;
1098
- /**
1099
- * Optional annotations for the client.
1100
- */
1101
- annotations?: Annotations;
1102
- /**
1103
- * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
1104
- *
1105
- * This can be used by Hosts to display file sizes and estimate context window usage.
1106
- */
1107
- size?: number;
1108
- _meta?: MetaObject;
1109
- }
1110
- /**
1111
- * A template description for resources available on the server.
1112
- *
1113
- * @category `resources/templates/list`
1114
- */
1115
- interface ResourceTemplate extends BaseMetadata, Icons {
1116
- /**
1117
- * A URI template (according to RFC 6570) that can be used to construct resource URIs.
1118
- *
1119
- * @format uri-template
1120
- */
1121
- uriTemplate: string;
1122
- /**
1123
- * A description of what this template is for.
1124
- *
1125
- * 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.
1126
- */
1127
- description?: string;
1128
- /**
1129
- * 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.
1130
- */
1131
- mimeType?: string;
1132
- /**
1133
- * Optional annotations for the client.
1134
- */
1135
- annotations?: Annotations;
1136
- _meta?: MetaObject;
1137
- }
1138
- /**
1139
- * The contents of a specific resource or sub-resource.
1140
- *
1141
- * @internal
1142
- */
1143
- interface ResourceContents {
1144
- /**
1145
- * The URI of this resource.
1146
- *
1147
- * @format uri
1148
- */
1149
- uri: string;
1150
- /**
1151
- * The MIME type of this resource, if known.
1152
- */
1153
- mimeType?: string;
1154
- _meta?: MetaObject;
1155
- }
1156
- /**
1157
- * @example Text file contents
1158
- * {@includeCode ./examples/TextResourceContents/text-file-contents.json}
1159
- *
1160
- * @category Content
1161
- */
1162
- interface TextResourceContents extends ResourceContents {
1163
- /**
1164
- * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
1165
- */
1166
- text: string;
1167
- }
1168
- /**
1169
- * @example Image file contents
1170
- * {@includeCode ./examples/BlobResourceContents/image-file-contents.json}
1171
- *
1172
- * @category Content
1173
- */
1174
- interface BlobResourceContents extends ResourceContents {
1175
- /**
1176
- * A base64-encoded string representing the binary data of the item.
1177
- *
1178
- * @format byte
1179
- */
1180
- blob: string;
1181
- }
1182
- /**
1183
- * Sent from the client to request a list of prompts and prompt templates the server has.
1184
- *
1185
- * @example List prompts request
1186
- * {@includeCode ./examples/ListPromptsRequest/list-prompts-request.json}
1187
- *
1188
- * @category `prompts/list`
1189
- */
1190
- interface ListPromptsRequest extends PaginatedRequest {
1191
- method: "prompts/list";
1192
- }
1193
- /**
1194
- * The result returned by the server for a {@link ListPromptsRequest | prompts/list} request.
1195
- *
1196
- * @example Prompts list with cursor
1197
- * {@includeCode ./examples/ListPromptsResult/prompts-list-with-cursor.json}
1198
- *
1199
- * @category `prompts/list`
1200
- */
1201
- interface ListPromptsResult extends PaginatedResult {
1202
- prompts: Prompt[];
1203
- }
1204
- /**
1205
- * A successful response from the server for a {@link ListPromptsRequest | prompts/list} request.
1206
- *
1207
- * @example List prompts result response
1208
- * {@includeCode ./examples/ListPromptsResultResponse/list-prompts-result-response.json}
1209
- *
1210
- * @category `prompts/list`
1211
- */
1212
- interface ListPromptsResultResponse extends JSONRPCResultResponse {
1213
- result: ListPromptsResult;
1214
- }
1215
- /**
1216
- * Parameters for a `prompts/get` request.
1217
- *
1218
- * @example Get code review prompt
1219
- * {@includeCode ./examples/GetPromptRequestParams/get-code-review-prompt.json}
1220
- *
1221
- * @category `prompts/get`
1222
- */
1223
- interface GetPromptRequestParams extends RequestParams {
1224
- /**
1225
- * The name of the prompt or prompt template.
1226
- */
1227
- name: string;
1228
- /**
1229
- * Arguments to use for templating the prompt.
1230
- */
1231
- arguments?: {
1232
- [key: string]: string;
1233
- };
1234
- }
1235
- /**
1236
- * Used by the client to get a prompt provided by the server.
1237
- *
1238
- * @example Get prompt request
1239
- * {@includeCode ./examples/GetPromptRequest/get-prompt-request.json}
1240
- *
1241
- * @category `prompts/get`
1242
- */
1243
- interface GetPromptRequest extends JSONRPCRequest {
1244
- method: "prompts/get";
1245
- params: GetPromptRequestParams;
1246
- }
1247
- /**
1248
- * The result returned by the server for a {@link GetPromptRequest | prompts/get} request.
1249
- *
1250
- * @example Code review prompt
1251
- * {@includeCode ./examples/GetPromptResult/code-review-prompt.json}
1252
- *
1253
- * @category `prompts/get`
1254
- */
1255
- interface GetPromptResult extends Result {
1256
- /**
1257
- * An optional description for the prompt.
1258
- */
1259
- description?: string;
1260
- messages: PromptMessage[];
1261
- }
1262
- /**
1263
- * A successful response from the server for a {@link GetPromptRequest | prompts/get} request.
1264
- *
1265
- * @example Get prompt result response
1266
- * {@includeCode ./examples/GetPromptResultResponse/get-prompt-result-response.json}
1267
- *
1268
- * @category `prompts/get`
1269
- */
1270
- interface GetPromptResultResponse extends JSONRPCResultResponse {
1271
- result: GetPromptResult;
1272
- }
1273
- /**
1274
- * A prompt or prompt template that the server offers.
1275
- *
1276
- * @category `prompts/list`
1277
- */
1278
- interface Prompt extends BaseMetadata, Icons {
1279
- /**
1280
- * An optional description of what this prompt provides
1281
- */
1282
- description?: string;
1283
- /**
1284
- * A list of arguments to use for templating the prompt.
1285
- */
1286
- arguments?: PromptArgument[];
1287
- _meta?: MetaObject;
1288
- }
1289
- /**
1290
- * Describes an argument that a prompt can accept.
1291
- *
1292
- * @category `prompts/list`
1293
- */
1294
- interface PromptArgument extends BaseMetadata {
1295
- /**
1296
- * A human-readable description of the argument.
1297
- */
1298
- description?: string;
1299
- /**
1300
- * Whether this argument must be provided.
1301
- */
1302
- required?: boolean;
1303
- }
1304
- /**
1305
- * The sender or recipient of messages and data in a conversation.
1306
- *
1307
- * @category Common Types
1308
- */
1309
- type Role = "user" | "assistant";
1310
- /**
1311
- * Describes a message returned as part of a prompt.
1312
- *
1313
- * This is similar to {@link SamplingMessage}, but also supports the embedding of
1314
- * resources from the MCP server.
1315
- *
1316
- * @category `prompts/get`
1317
- */
1318
- interface PromptMessage {
1319
- role: Role;
1320
- content: ContentBlock;
1321
- }
1322
- /**
1323
- * A resource that the server is capable of reading, included in a prompt or tool call result.
1324
- *
1325
- * Note: resource links returned by tools are not guaranteed to appear in the results of {@link ListResourcesRequest | resources/list} requests.
1326
- *
1327
- * @example File resource link
1328
- * {@includeCode ./examples/ResourceLink/file-resource-link.json}
1329
- *
1330
- * @category Content
1331
- */
1332
- interface ResourceLink extends Resource {
1333
- type: "resource_link";
1334
- }
1335
- /**
1336
- * The contents of a resource, embedded into a prompt or tool call result.
1337
- *
1338
- * It is up to the client how best to render embedded resources for the benefit
1339
- * of the LLM and/or the user.
1340
- *
1341
- * @example Embedded file resource with annotations
1342
- * {@includeCode ./examples/EmbeddedResource/embedded-file-resource-with-annotations.json}
1343
- *
1344
- * @category Content
1345
- */
1346
- interface EmbeddedResource {
1347
- type: "resource";
1348
- resource: TextResourceContents | BlobResourceContents;
1349
- /**
1350
- * Optional annotations for the client.
1351
- */
1352
- annotations?: Annotations;
1353
- _meta?: MetaObject;
1354
- }
1355
- /**
1356
- * 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.
1357
- *
1358
- * @example Prompts list changed
1359
- * {@includeCode ./examples/PromptListChangedNotification/prompts-list-changed.json}
1360
- *
1361
- * @category `notifications/prompts/list_changed`
1362
- */
1363
- interface PromptListChangedNotification extends JSONRPCNotification {
1364
- method: "notifications/prompts/list_changed";
1365
- params?: NotificationParams;
1366
- }
1367
- /**
1368
- * Sent from the client to request a list of tools the server has.
1369
- *
1370
- * @example List tools request
1371
- * {@includeCode ./examples/ListToolsRequest/list-tools-request.json}
1372
- *
1373
- * @category `tools/list`
1374
- */
1375
- interface ListToolsRequest extends PaginatedRequest {
1376
- method: "tools/list";
1377
- }
1378
- /**
1379
- * The result returned by the server for a {@link ListToolsRequest | tools/list} request.
1380
- *
1381
- * @example Tools list with cursor
1382
- * {@includeCode ./examples/ListToolsResult/tools-list-with-cursor.json}
1383
- *
1384
- * @category `tools/list`
1385
- */
1386
- interface ListToolsResult extends PaginatedResult {
1387
- tools: Tool[];
1388
- }
1389
- /**
1390
- * A successful response from the server for a {@link ListToolsRequest | tools/list} request.
1391
- *
1392
- * @example List tools result response
1393
- * {@includeCode ./examples/ListToolsResultResponse/list-tools-result-response.json}
1394
- *
1395
- * @category `tools/list`
1396
- */
1397
- interface ListToolsResultResponse extends JSONRPCResultResponse {
1398
- result: ListToolsResult;
1399
- }
1400
- /**
1401
- * The result returned by the server for a {@link CallToolRequest | tools/call} request.
1402
- *
1403
- * @example Result with unstructured text
1404
- * {@includeCode ./examples/CallToolResult/result-with-unstructured-text.json}
1405
- *
1406
- * @example Result with structured content
1407
- * {@includeCode ./examples/CallToolResult/result-with-structured-content.json}
1408
- *
1409
- * @example Invalid tool input error
1410
- * {@includeCode ./examples/CallToolResult/invalid-tool-input-error.json}
1411
- *
1412
- * @category `tools/call`
1413
- */
1414
- interface CallToolResult extends Result {
1415
- /**
1416
- * A list of content objects that represent the unstructured result of the tool call.
1417
- */
1418
- content: ContentBlock[];
1419
- /**
1420
- * An optional JSON object that represents the structured result of the tool call.
1421
- */
1422
- structuredContent?: {
1423
- [key: string]: unknown;
1424
- };
1425
- /**
1426
- * Whether the tool call ended in an error.
1427
- *
1428
- * If not set, this is assumed to be false (the call was successful).
1429
- *
1430
- * Any errors that originate from the tool SHOULD be reported inside the result
1431
- * object, with `isError` set to true, _not_ as an MCP protocol-level error
1432
- * response. Otherwise, the LLM would not be able to see that an error occurred
1433
- * and self-correct.
1434
- *
1435
- * However, any errors in _finding_ the tool, an error indicating that the
1436
- * server does not support tool calls, or any other exceptional conditions,
1437
- * should be reported as an MCP error response.
1438
- */
1439
- isError?: boolean;
1440
- }
1441
- /**
1442
- * A successful response from the server for a {@link CallToolRequest | tools/call} request.
1443
- *
1444
- * @example Call tool result response
1445
- * {@includeCode ./examples/CallToolResultResponse/call-tool-result-response.json}
1446
- *
1447
- * @category `tools/call`
1448
- */
1449
- interface CallToolResultResponse extends JSONRPCResultResponse {
1450
- result: CallToolResult;
1451
- }
1452
- /**
1453
- * Parameters for a `tools/call` request.
1454
- *
1455
- * @example `get_weather` tool call params
1456
- * {@includeCode ./examples/CallToolRequestParams/get-weather-tool-call-params.json}
1457
- *
1458
- * @example Tool call params with progress token
1459
- * {@includeCode ./examples/CallToolRequestParams/tool-call-params-with-progress-token.json}
1460
- *
1461
- * @category `tools/call`
1462
- */
1463
- interface CallToolRequestParams extends TaskAugmentedRequestParams {
1464
- /**
1465
- * The name of the tool.
1466
- */
1467
- name: string;
1468
- /**
1469
- * Arguments to use for the tool call.
1470
- */
1471
- arguments?: {
1472
- [key: string]: unknown;
1473
- };
1474
- }
1475
- /**
1476
- * Used by the client to invoke a tool provided by the server.
1477
- *
1478
- * @example Call tool request
1479
- * {@includeCode ./examples/CallToolRequest/call-tool-request.json}
1480
- *
1481
- * @category `tools/call`
1482
- */
1483
- interface CallToolRequest extends JSONRPCRequest {
1484
- method: "tools/call";
1485
- params: CallToolRequestParams;
1486
- }
1487
- /**
1488
- * 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.
1489
- *
1490
- * @example Tools list changed
1491
- * {@includeCode ./examples/ToolListChangedNotification/tools-list-changed.json}
1492
- *
1493
- * @category `notifications/tools/list_changed`
1494
- */
1495
- interface ToolListChangedNotification extends JSONRPCNotification {
1496
- method: "notifications/tools/list_changed";
1497
- params?: NotificationParams;
1498
- }
1499
- /**
1500
- * Additional properties describing a {@link Tool} to clients.
1501
- *
1502
- * NOTE: all properties in `ToolAnnotations` are **hints**.
1503
- * They are not guaranteed to provide a faithful description of
1504
- * tool behavior (including descriptive properties like `title`).
1505
- *
1506
- * Clients should never make tool use decisions based on `ToolAnnotations`
1507
- * received from untrusted servers.
1508
- *
1509
- * @category `tools/list`
1510
- */
1511
- interface ToolAnnotations {
1512
- /**
1513
- * A human-readable title for the tool.
1514
- */
1515
- title?: string;
1516
- /**
1517
- * If true, the tool does not modify its environment.
1518
- *
1519
- * Default: false
1520
- */
1521
- readOnlyHint?: boolean;
1522
- /**
1523
- * If true, the tool may perform destructive updates to its environment.
1524
- * If false, the tool performs only additive updates.
1525
- *
1526
- * (This property is meaningful only when `readOnlyHint == false`)
1527
- *
1528
- * Default: true
1529
- */
1530
- destructiveHint?: boolean;
1531
- /**
1532
- * If true, calling the tool repeatedly with the same arguments
1533
- * will have no additional effect on its environment.
1534
- *
1535
- * (This property is meaningful only when `readOnlyHint == false`)
1536
- *
1537
- * Default: false
1538
- */
1539
- idempotentHint?: boolean;
1540
- /**
1541
- * If true, this tool may interact with an "open world" of external
1542
- * entities. If false, the tool's domain of interaction is closed.
1543
- * For example, the world of a web search tool is open, whereas that
1544
- * of a memory tool is not.
1545
- *
1546
- * Default: true
1547
- */
1548
- openWorldHint?: boolean;
1549
- }
1550
- /**
1551
- * Execution-related properties for a tool.
1552
- *
1553
- * @category `tools/list`
1554
- */
1555
- interface ToolExecution {
1556
- /**
1557
- * Indicates whether this tool supports task-augmented execution.
1558
- * This allows clients to handle long-running operations through polling
1559
- * the task system.
1560
- *
1561
- * - `"forbidden"`: Tool does not support task-augmented execution (default when absent)
1562
- * - `"optional"`: Tool may support task-augmented execution
1563
- * - `"required"`: Tool requires task-augmented execution
1564
- *
1565
- * Default: `"forbidden"`
1566
- */
1567
- taskSupport?: "forbidden" | "optional" | "required";
1568
- }
1569
- /**
1570
- * Definition for a tool the client can call.
1571
- *
1572
- * @example With default 2020-12 input schema
1573
- * {@includeCode ./examples/Tool/with-default-2020-12-input-schema.json}
1574
- *
1575
- * @example With explicit draft-07 input schema
1576
- * {@includeCode ./examples/Tool/with-explicit-draft-07-input-schema.json}
1577
- *
1578
- * @example With no parameters
1579
- * {@includeCode ./examples/Tool/with-no-parameters.json}
1580
- *
1581
- * @example With output schema for structured content
1582
- * {@includeCode ./examples/Tool/with-output-schema-for-structured-content.json}
1583
- *
1584
- * @category `tools/list`
1585
- */
1586
- interface Tool extends BaseMetadata, Icons {
1587
- /**
1588
- * A human-readable description of the tool.
1589
- *
1590
- * 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.
1591
- */
1592
- description?: string;
1593
- /**
1594
- * A JSON Schema object defining the expected parameters for the tool.
1595
- */
1596
- inputSchema: {
1597
- $schema?: string;
1598
- type: "object";
1599
- properties?: {
1600
- [key: string]: object;
1601
- };
1602
- required?: string[];
1603
- };
1604
- /**
1605
- * Execution-related properties for this tool.
1606
- */
1607
- execution?: ToolExecution;
1608
- /**
1609
- * An optional JSON Schema object defining the structure of the tool's output returned in
1610
- * the structuredContent field of a {@link CallToolResult}.
1611
- *
1612
- * Defaults to JSON Schema 2020-12 when no explicit `$schema` is provided.
1613
- * Currently restricted to `type: "object"` at the root level.
1614
- */
1615
- outputSchema?: {
1616
- $schema?: string;
1617
- type: "object";
1618
- properties?: {
1619
- [key: string]: object;
1620
- };
1621
- required?: string[];
1622
- };
1623
- /**
1624
- * Optional additional tool information.
1625
- *
1626
- * Display name precedence order is: `title`, `annotations.title`, then `name`.
1627
- */
1628
- annotations?: ToolAnnotations;
1629
- _meta?: MetaObject;
1630
- }
1631
- /**
1632
- * The status of a task.
1633
- *
1634
- * @category `tasks`
1635
- */
1636
- type TaskStatus = "working" | "input_required" | "completed" | "failed" | "cancelled";
1637
- /**
1638
- * Metadata for augmenting a request with task execution.
1639
- * Include this in the `task` field of the request parameters.
1640
- *
1641
- * @category `tasks`
1642
- */
1643
- interface TaskMetadata {
1644
- /**
1645
- * Requested duration in milliseconds to retain task from creation.
1646
- */
1647
- ttl?: number;
1648
- }
1649
- /**
1650
- * Metadata for associating messages with a task.
1651
- * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`.
1652
- *
1653
- * @category `tasks`
1654
- */
1655
- interface RelatedTaskMetadata {
1656
- /**
1657
- * The task identifier this message is associated with.
1658
- */
1659
- taskId: string;
1660
- }
1661
- /**
1662
- * Data associated with a task.
1663
- *
1664
- * @category `tasks`
1665
- */
1666
- interface Task {
1667
- /**
1668
- * The task identifier.
1669
- */
1670
- taskId: string;
1671
- /**
1672
- * Current task state.
1673
- */
1674
- status: TaskStatus;
1675
- /**
1676
- * Optional human-readable message describing the current task state.
1677
- * This can provide context for any status, including:
1678
- * - Reasons for "cancelled" status
1679
- * - Summaries for "completed" status
1680
- * - Diagnostic information for "failed" status (e.g., error details, what went wrong)
1681
- */
1682
- statusMessage?: string;
1683
- /**
1684
- * ISO 8601 timestamp when the task was created.
1685
- */
1686
- createdAt: string;
1687
- /**
1688
- * ISO 8601 timestamp when the task was last updated.
1689
- */
1690
- lastUpdatedAt: string;
1691
- /**
1692
- * Actual retention duration from creation in milliseconds, null for unlimited.
1693
- */
1694
- ttl: number | null;
1695
- /**
1696
- * Suggested polling interval in milliseconds.
1697
- */
1698
- pollInterval?: number;
1699
- }
1700
- /**
1701
- * The result returned for a task-augmented request.
1702
- *
1703
- * @category `tasks`
1704
- */
1705
- interface CreateTaskResult extends Result {
1706
- task: Task;
1707
- }
1708
- /**
1709
- * A successful response for a task-augmented request.
1710
- *
1711
- * @category `tasks`
1712
- */
1713
- interface CreateTaskResultResponse extends JSONRPCResultResponse {
1714
- result: CreateTaskResult;
1715
- }
1716
- /**
1717
- * A request to retrieve the state of a task.
1718
- *
1719
- * @category `tasks/get`
1720
- */
1721
- interface GetTaskRequest extends JSONRPCRequest {
1722
- method: "tasks/get";
1723
- params: {
1724
- /**
1725
- * The task identifier to query.
1726
- */
1727
- taskId: string;
1728
- };
1729
- }
1730
- /**
1731
- * The result returned for a {@link GetTaskRequest | tasks/get} request.
1732
- *
1733
- * @category `tasks/get`
1734
- */
1735
- type GetTaskResult = Result & Task;
1736
- /**
1737
- * A successful response for a {@link GetTaskRequest | tasks/get} request.
1738
- *
1739
- * @category `tasks/get`
1740
- */
1741
- interface GetTaskResultResponse extends JSONRPCResultResponse {
1742
- result: GetTaskResult;
1743
- }
1744
- /**
1745
- * A request to retrieve the result of a completed task.
1746
- *
1747
- * @category `tasks/result`
1748
- */
1749
- interface GetTaskPayloadRequest extends JSONRPCRequest {
1750
- method: "tasks/result";
1751
- params: {
1752
- /**
1753
- * The task identifier to retrieve results for.
1754
- */
1755
- taskId: string;
1756
- };
1757
- }
1758
- /**
1759
- * The result returned for a {@link GetTaskPayloadRequest | tasks/result} request.
1760
- * The structure matches the result type of the original request.
1761
- * For example, a {@link CallToolRequest | tools/call} task would return the {@link CallToolResult} structure.
1762
- *
1763
- * @category `tasks/result`
1764
- */
1765
- interface GetTaskPayloadResult extends Result {
1766
- [key: string]: unknown;
1767
- }
1768
- /**
1769
- * A successful response for a {@link GetTaskPayloadRequest | tasks/result} request.
1770
- *
1771
- * @category `tasks/result`
1772
- */
1773
- interface GetTaskPayloadResultResponse extends JSONRPCResultResponse {
1774
- result: GetTaskPayloadResult;
1775
- }
1776
- /**
1777
- * A request to cancel a task.
1778
- *
1779
- * @category `tasks/cancel`
1780
- */
1781
- interface CancelTaskRequest extends JSONRPCRequest {
1782
- method: "tasks/cancel";
1783
- params: {
1784
- /**
1785
- * The task identifier to cancel.
1786
- */
1787
- taskId: string;
1788
- };
1789
- }
1790
- /**
1791
- * The result returned for a {@link CancelTaskRequest | tasks/cancel} request.
1792
- *
1793
- * @category `tasks/cancel`
1794
- */
1795
- type CancelTaskResult = Result & Task;
1796
- /**
1797
- * A successful response for a {@link CancelTaskRequest | tasks/cancel} request.
1798
- *
1799
- * @category `tasks/cancel`
1800
- */
1801
- interface CancelTaskResultResponse extends JSONRPCResultResponse {
1802
- result: CancelTaskResult;
1803
- }
1804
- /**
1805
- * A request to retrieve a list of tasks.
1806
- *
1807
- * @category `tasks/list`
1808
- */
1809
- interface ListTasksRequest extends PaginatedRequest {
1810
- method: "tasks/list";
1811
- }
1812
- /**
1813
- * The result returned for a {@link ListTasksRequest | tasks/list} request.
1814
- *
1815
- * @category `tasks/list`
1816
- */
1817
- interface ListTasksResult extends PaginatedResult {
1818
- tasks: Task[];
1819
- }
1820
- /**
1821
- * A successful response for a {@link ListTasksRequest | tasks/list} request.
1822
- *
1823
- * @category `tasks/list`
1824
- */
1825
- interface ListTasksResultResponse extends JSONRPCResultResponse {
1826
- result: ListTasksResult;
1827
- }
1828
- /**
1829
- * Parameters for a `notifications/tasks/status` notification.
1830
- *
1831
- * @category `notifications/tasks/status`
1832
- */
1833
- type TaskStatusNotificationParams = NotificationParams & Task;
1834
- /**
1835
- * An optional notification from the receiver to the requestor, informing them that a task's status has changed. Receivers are not required to send these notifications.
1836
- *
1837
- * @category `notifications/tasks/status`
1838
- */
1839
- interface TaskStatusNotification extends JSONRPCNotification {
1840
- method: "notifications/tasks/status";
1841
- params: TaskStatusNotificationParams;
1842
- }
1843
- /**
1844
- * Parameters for a `logging/setLevel` request.
1845
- *
1846
- * @example Set log level to "info"
1847
- * {@includeCode ./examples/SetLevelRequestParams/set-log-level-to-info.json}
1848
- *
1849
- * @category `logging/setLevel`
1850
- */
1851
- interface SetLevelRequestParams extends RequestParams {
1852
- /**
1853
- * 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 {@link LoggingMessageNotification | notifications/message}.
1854
- */
1855
- level: LoggingLevel;
1856
- }
1857
- /**
1858
- * A request from the client to the server, to enable or adjust logging.
1859
- *
1860
- * @example Set logging level request
1861
- * {@includeCode ./examples/SetLevelRequest/set-logging-level-request.json}
1862
- *
1863
- * @category `logging/setLevel`
1864
- */
1865
- interface SetLevelRequest extends JSONRPCRequest {
1866
- method: "logging/setLevel";
1867
- params: SetLevelRequestParams;
1868
- }
1869
- /**
1870
- * A successful response from the server for a {@link SetLevelRequest | logging/setLevel} request.
1871
- *
1872
- * @example Set logging level result response
1873
- * {@includeCode ./examples/SetLevelResultResponse/set-logging-level-result-response.json}
1874
- *
1875
- * @category `logging/setLevel`
1876
- */
1877
- interface SetLevelResultResponse extends JSONRPCResultResponse {
1878
- result: EmptyResult;
1879
- }
1880
- /**
1881
- * Parameters for a `notifications/message` notification.
1882
- *
1883
- * @example Log database connection failed
1884
- * {@includeCode ./examples/LoggingMessageNotificationParams/log-database-connection-failed.json}
1885
- *
1886
- * @category `notifications/message`
1887
- */
1888
- interface LoggingMessageNotificationParams extends NotificationParams {
1889
- /**
1890
- * The severity of this log message.
1891
- */
1892
- level: LoggingLevel;
1893
- /**
1894
- * An optional name of the logger issuing this message.
1895
- */
1896
- logger?: string;
1897
- /**
1898
- * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
1899
- */
1900
- data: unknown;
1901
- }
1902
- /**
1903
- * 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.
1904
- *
1905
- * @example Log database connection failed
1906
- * {@includeCode ./examples/LoggingMessageNotification/log-database-connection-failed.json}
1907
- *
1908
- * @category `notifications/message`
1909
- */
1910
- interface LoggingMessageNotification extends JSONRPCNotification {
1911
- method: "notifications/message";
1912
- params: LoggingMessageNotificationParams;
1913
- }
1914
- /**
1915
- * The severity of a log message.
1916
- *
1917
- * These map to syslog message severities, as specified in RFC-5424:
1918
- * https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
1919
- *
1920
- * @category Common Types
1921
- */
1922
- type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency";
1923
- /**
1924
- * Parameters for a `sampling/createMessage` request.
1925
- *
1926
- * @example Basic request
1927
- * {@includeCode ./examples/CreateMessageRequestParams/basic-request.json}
1928
- *
1929
- * @example Request with tools
1930
- * {@includeCode ./examples/CreateMessageRequestParams/request-with-tools.json}
1931
- *
1932
- * @example Follow-up request with tool results
1933
- * {@includeCode ./examples/CreateMessageRequestParams/follow-up-with-tool-results.json}
1934
- *
1935
- * @category `sampling/createMessage`
1936
- */
1937
- interface CreateMessageRequestParams extends TaskAugmentedRequestParams {
1938
- messages: SamplingMessage[];
1939
- /**
1940
- * The server's preferences for which model to select. The client MAY ignore these preferences.
1941
- */
1942
- modelPreferences?: ModelPreferences;
1943
- /**
1944
- * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
1945
- */
1946
- systemPrompt?: string;
1947
- /**
1948
- * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
1949
- * The client MAY ignore this request.
1950
- *
1951
- * Default is `"none"`. Values `"thisServer"` and `"allServers"` are soft-deprecated. Servers SHOULD only use these values if the client
1952
- * declares {@link ClientCapabilities.sampling.context}. These values may be removed in future spec releases.
1953
- */
1954
- includeContext?: "none" | "thisServer" | "allServers";
1955
- /**
1956
- * @TJS-type number
1957
- */
1958
- temperature?: number;
1959
- /**
1960
- * The requested maximum number of tokens to sample (to prevent runaway completions).
1961
- *
1962
- * The client MAY choose to sample fewer tokens than the requested maximum.
1963
- */
1964
- maxTokens: number;
1965
- stopSequences?: string[];
1966
- /**
1967
- * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
1968
- */
1969
- metadata?: object;
1970
- /**
1971
- * Tools that the model may use during generation.
1972
- * The client MUST return an error if this field is provided but {@link ClientCapabilities.sampling.tools} is not declared.
1973
- */
1974
- tools?: Tool[];
1975
- /**
1976
- * Controls how the model uses tools.
1977
- * The client MUST return an error if this field is provided but {@link ClientCapabilities.sampling.tools} is not declared.
1978
- * Default is `{ mode: "auto" }`.
1979
- */
1980
- toolChoice?: ToolChoice;
1981
- }
1982
- /**
1983
- * Controls tool selection behavior for sampling requests.
1984
- *
1985
- * @category `sampling/createMessage`
1986
- */
1987
- interface ToolChoice {
1988
- /**
1989
- * Controls the tool use ability of the model:
1990
- * - `"auto"`: Model decides whether to use tools (default)
1991
- * - `"required"`: Model MUST use at least one tool before completing
1992
- * - `"none"`: Model MUST NOT use any tools
1993
- */
1994
- mode?: "auto" | "required" | "none";
1995
- }
1996
- /**
1997
- * 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.
1998
- *
1999
- * @example Sampling request
2000
- * {@includeCode ./examples/CreateMessageRequest/sampling-request.json}
2001
- *
2002
- * @category `sampling/createMessage`
2003
- */
2004
- interface CreateMessageRequest extends JSONRPCRequest {
2005
- method: "sampling/createMessage";
2006
- params: CreateMessageRequestParams;
2007
- }
2008
- /**
2009
- * The result returned by the client for a {@link CreateMessageRequest | sampling/createMessage} request.
2010
- * The client should inform the user before returning the sampled message, to allow them
2011
- * to inspect the response (human in the loop) and decide whether to allow the server to see it.
2012
- *
2013
- * @example Text response
2014
- * {@includeCode ./examples/CreateMessageResult/text-response.json}
2015
- *
2016
- * @example Tool use response
2017
- * {@includeCode ./examples/CreateMessageResult/tool-use-response.json}
2018
- *
2019
- * @example Final response after tool use
2020
- * {@includeCode ./examples/CreateMessageResult/final-response.json}
2021
- *
2022
- * @category `sampling/createMessage`
2023
- */
2024
- interface CreateMessageResult extends Result, SamplingMessage {
2025
- /**
2026
- * The name of the model that generated the message.
2027
- */
2028
- model: string;
2029
- /**
2030
- * The reason why sampling stopped, if known.
2031
- *
2032
- * Standard values:
2033
- * - `"endTurn"`: Natural end of the assistant's turn
2034
- * - `"stopSequence"`: A stop sequence was encountered
2035
- * - `"maxTokens"`: Maximum token limit was reached
2036
- * - `"toolUse"`: The model wants to use one or more tools
2037
- *
2038
- * This field is an open string to allow for provider-specific stop reasons.
2039
- */
2040
- stopReason?: "endTurn" | "stopSequence" | "maxTokens" | "toolUse" | string;
2041
- }
2042
- /**
2043
- * A successful response from the client for a {@link CreateMessageRequest | sampling/createMessage} request.
2044
- *
2045
- * @example Sampling result response
2046
- * {@includeCode ./examples/CreateMessageResultResponse/sampling-result-response.json}
2047
- *
2048
- * @category `sampling/createMessage`
2049
- */
2050
- interface CreateMessageResultResponse extends JSONRPCResultResponse {
2051
- result: CreateMessageResult;
2052
- }
2053
- /**
2054
- * Describes a message issued to or received from an LLM API.
2055
- *
2056
- * @example Single content block
2057
- * {@includeCode ./examples/SamplingMessage/single-content-block.json}
2058
- *
2059
- * @example Multiple content blocks
2060
- * {@includeCode ./examples/SamplingMessage/multiple-content-blocks.json}
2061
- *
2062
- * @category `sampling/createMessage`
2063
- */
2064
- interface SamplingMessage {
2065
- role: Role;
2066
- content: SamplingMessageContentBlock | SamplingMessageContentBlock[];
2067
- _meta?: MetaObject;
2068
- }
2069
- /**
2070
- * @category `sampling/createMessage`
2071
- */
2072
- type SamplingMessageContentBlock = TextContent | ImageContent | AudioContent | ToolUseContent | ToolResultContent;
2073
- /**
2074
- * Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
2075
- *
2076
- * @category Common Types
2077
- */
2078
- interface Annotations {
2079
- /**
2080
- * Describes who the intended audience of this object or data is.
2081
- *
2082
- * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
2083
- */
2084
- audience?: Role[];
2085
- /**
2086
- * Describes how important this data is for operating the server.
2087
- *
2088
- * A value of 1 means "most important," and indicates that the data is
2089
- * effectively required, while 0 means "least important," and indicates that
2090
- * the data is entirely optional.
2091
- *
2092
- * @TJS-type number
2093
- * @minimum 0
2094
- * @maximum 1
2095
- */
2096
- priority?: number;
2097
- /**
2098
- * The moment the resource was last modified, as an ISO 8601 formatted string.
2099
- *
2100
- * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
2101
- *
2102
- * Examples: last activity timestamp in an open file, timestamp when the resource
2103
- * was attached, etc.
2104
- */
2105
- lastModified?: string;
2106
- }
2107
- /**
2108
- * @category Content
2109
- */
2110
- type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;
2111
- /**
2112
- * Text provided to or from an LLM.
2113
- *
2114
- * @example Text content
2115
- * {@includeCode ./examples/TextContent/text-content.json}
2116
- *
2117
- * @category Content
2118
- */
2119
- interface TextContent {
2120
- type: "text";
2121
- /**
2122
- * The text content of the message.
2123
- */
2124
- text: string;
2125
- /**
2126
- * Optional annotations for the client.
2127
- */
2128
- annotations?: Annotations;
2129
- _meta?: MetaObject;
2130
- }
2131
- /**
2132
- * An image provided to or from an LLM.
2133
- *
2134
- * @example `image/png` content with annotations
2135
- * {@includeCode ./examples/ImageContent/image-png-content-with-annotations.json}
2136
- *
2137
- * @category Content
2138
- */
2139
- interface ImageContent {
2140
- type: "image";
2141
- /**
2142
- * The base64-encoded image data.
2143
- *
2144
- * @format byte
2145
- */
2146
- data: string;
2147
- /**
2148
- * The MIME type of the image. Different providers may support different image types.
2149
- */
2150
- mimeType: string;
2151
- /**
2152
- * Optional annotations for the client.
2153
- */
2154
- annotations?: Annotations;
2155
- _meta?: MetaObject;
2156
- }
2157
- /**
2158
- * Audio provided to or from an LLM.
2159
- *
2160
- * @example `audio/wav` content
2161
- * {@includeCode ./examples/AudioContent/audio-wav-content.json}
2162
- *
2163
- * @category Content
2164
- */
2165
- interface AudioContent {
2166
- type: "audio";
2167
- /**
2168
- * The base64-encoded audio data.
2169
- *
2170
- * @format byte
2171
- */
2172
- data: string;
2173
- /**
2174
- * The MIME type of the audio. Different providers may support different audio types.
2175
- */
2176
- mimeType: string;
2177
- /**
2178
- * Optional annotations for the client.
2179
- */
2180
- annotations?: Annotations;
2181
- _meta?: MetaObject;
2182
- }
2183
- /**
2184
- * A request from the assistant to call a tool.
2185
- *
2186
- * @example `get_weather` tool use
2187
- * {@includeCode ./examples/ToolUseContent/get-weather-tool-use.json}
2188
- *
2189
- * @category `sampling/createMessage`
2190
- */
2191
- interface ToolUseContent {
2192
- type: "tool_use";
2193
- /**
2194
- * A unique identifier for this tool use.
2195
- *
2196
- * This ID is used to match tool results to their corresponding tool uses.
2197
- */
2198
- id: string;
2199
- /**
2200
- * The name of the tool to call.
2201
- */
2202
- name: string;
2203
- /**
2204
- * The arguments to pass to the tool, conforming to the tool's input schema.
2205
- */
2206
- input: {
2207
- [key: string]: unknown;
2208
- };
2209
- /**
2210
- * Optional metadata about the tool use. Clients SHOULD preserve this field when
2211
- * including tool uses in subsequent sampling requests to enable caching optimizations.
2212
- */
2213
- _meta?: MetaObject;
2214
- }
2215
- /**
2216
- * The result of a tool use, provided by the user back to the assistant.
2217
- *
2218
- * @example `get_weather` tool result
2219
- * {@includeCode ./examples/ToolResultContent/get-weather-tool-result.json}
2220
- *
2221
- * @category `sampling/createMessage`
2222
- */
2223
- interface ToolResultContent {
2224
- type: "tool_result";
2225
- /**
2226
- * The ID of the tool use this result corresponds to.
2227
- *
2228
- * This MUST match the ID from a previous {@link ToolUseContent}.
2229
- */
2230
- toolUseId: string;
2231
- /**
2232
- * The unstructured result content of the tool use.
2233
- *
2234
- * This has the same format as {@link CallToolResult.content} and can include text, images,
2235
- * audio, resource links, and embedded resources.
2236
- */
2237
- content: ContentBlock[];
2238
- /**
2239
- * An optional structured result object.
2240
- *
2241
- * If the tool defined an {@link Tool.outputSchema}, this SHOULD conform to that schema.
2242
- */
2243
- structuredContent?: {
2244
- [key: string]: unknown;
2245
- };
2246
- /**
2247
- * Whether the tool use resulted in an error.
2248
- *
2249
- * If true, the content typically describes the error that occurred.
2250
- * Default: false
2251
- */
2252
- isError?: boolean;
2253
- /**
2254
- * Optional metadata about the tool result. Clients SHOULD preserve this field when
2255
- * including tool results in subsequent sampling requests to enable caching optimizations.
2256
- */
2257
- _meta?: MetaObject;
2258
- }
2259
- /**
2260
- * The server's preferences for model selection, requested of the client during sampling.
2261
- *
2262
- * Because LLMs can vary along multiple dimensions, choosing the "best" model is
2263
- * rarely straightforward. Different models excel in different areas-some are
2264
- * faster but less capable, others are more capable but more expensive, and so
2265
- * on. This interface allows servers to express their priorities across multiple
2266
- * dimensions to help clients make an appropriate selection for their use case.
2267
- *
2268
- * These preferences are always advisory. The client MAY ignore them. It is also
2269
- * up to the client to decide how to interpret these preferences and how to
2270
- * balance them against other considerations.
2271
- *
2272
- * @example With hints and priorities
2273
- * {@includeCode ./examples/ModelPreferences/with-hints-and-priorities.json}
2274
- *
2275
- * @category `sampling/createMessage`
2276
- */
2277
- interface ModelPreferences {
2278
- /**
2279
- * Optional hints to use for model selection.
2280
- *
2281
- * If multiple hints are specified, the client MUST evaluate them in order
2282
- * (such that the first match is taken).
2283
- *
2284
- * The client SHOULD prioritize these hints over the numeric priorities, but
2285
- * MAY still use the priorities to select from ambiguous matches.
2286
- */
2287
- hints?: ModelHint[];
2288
- /**
2289
- * How much to prioritize cost when selecting a model. A value of 0 means cost
2290
- * is not important, while a value of 1 means cost is the most important
2291
- * factor.
2292
- *
2293
- * @TJS-type number
2294
- * @minimum 0
2295
- * @maximum 1
2296
- */
2297
- costPriority?: number;
2298
- /**
2299
- * How much to prioritize sampling speed (latency) when selecting a model. A
2300
- * value of 0 means speed is not important, while a value of 1 means speed is
2301
- * the most important factor.
2302
- *
2303
- * @TJS-type number
2304
- * @minimum 0
2305
- * @maximum 1
2306
- */
2307
- speedPriority?: number;
2308
- /**
2309
- * How much to prioritize intelligence and capabilities when selecting a
2310
- * model. A value of 0 means intelligence is not important, while a value of 1
2311
- * means intelligence is the most important factor.
2312
- *
2313
- * @TJS-type number
2314
- * @minimum 0
2315
- * @maximum 1
2316
- */
2317
- intelligencePriority?: number;
2318
- }
2319
- /**
2320
- * Hints to use for model selection.
2321
- *
2322
- * Keys not declared here are currently left unspecified by the spec and are up
2323
- * to the client to interpret.
2324
- *
2325
- * @category `sampling/createMessage`
2326
- */
2327
- interface ModelHint {
2328
- /**
2329
- * A hint for a model name.
2330
- *
2331
- * The client SHOULD treat this as a substring of a model name; for example:
2332
- * - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
2333
- * - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
2334
- * - `claude` should match any Claude model
2335
- *
2336
- * 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:
2337
- * - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
2338
- */
2339
- name?: string;
2340
- }
2341
- /**
2342
- * Parameters for a `completion/complete` request.
2343
- *
2344
- * @category `completion/complete`
2345
- *
2346
- * @example Prompt argument completion
2347
- * {@includeCode ./examples/CompleteRequestParams/prompt-argument-completion.json}
2348
- *
2349
- * @example Prompt argument completion with context
2350
- * {@includeCode ./examples/CompleteRequestParams/prompt-argument-completion-with-context.json}
2351
- */
2352
- interface CompleteRequestParams extends RequestParams {
2353
- ref: PromptReference | ResourceTemplateReference;
2354
- /**
2355
- * The argument's information
2356
- */
2357
- argument: {
2358
- /**
2359
- * The name of the argument
2360
- */
2361
- name: string;
2362
- /**
2363
- * The value of the argument to use for completion matching.
2364
- */
2365
- value: string;
2366
- };
2367
- /**
2368
- * Additional, optional context for completions
2369
- */
2370
- context?: {
2371
- /**
2372
- * Previously-resolved variables in a URI template or prompt.
2373
- */
2374
- arguments?: {
2375
- [key: string]: string;
2376
- };
2377
- };
2378
- }
2379
- /**
2380
- * A request from the client to the server, to ask for completion options.
2381
- *
2382
- * @example Completion request
2383
- * {@includeCode ./examples/CompleteRequest/completion-request.json}
2384
- *
2385
- * @category `completion/complete`
2386
- */
2387
- interface CompleteRequest extends JSONRPCRequest {
2388
- method: "completion/complete";
2389
- params: CompleteRequestParams;
2390
- }
2391
- /**
2392
- * The result returned by the server for a {@link CompleteRequest | completion/complete} request.
2393
- *
2394
- * @category `completion/complete`
2395
- *
2396
- * @example Single completion value
2397
- * {@includeCode ./examples/CompleteResult/single-completion-value.json}
2398
- *
2399
- * @example Multiple completion values with more available
2400
- * {@includeCode ./examples/CompleteResult/multiple-completion-values-with-more-available.json}
2401
- */
2402
- interface CompleteResult extends Result {
2403
- completion: {
2404
- /**
2405
- * An array of completion values. Must not exceed 100 items.
2406
- */
2407
- values: string[];
2408
- /**
2409
- * The total number of completion options available. This can exceed the number of values actually sent in the response.
2410
- */
2411
- total?: number;
2412
- /**
2413
- * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
2414
- */
2415
- hasMore?: boolean;
2416
- };
2417
- }
2418
- /**
2419
- * A successful response from the server for a {@link CompleteRequest | completion/complete} request.
2420
- *
2421
- * @example Completion result response
2422
- * {@includeCode ./examples/CompleteResultResponse/completion-result-response.json}
2423
- *
2424
- * @category `completion/complete`
2425
- */
2426
- interface CompleteResultResponse extends JSONRPCResultResponse {
2427
- result: CompleteResult;
2428
- }
2429
- /**
2430
- * A reference to a resource or resource template definition.
2431
- *
2432
- * @category `completion/complete`
2433
- */
2434
- interface ResourceTemplateReference {
2435
- type: "ref/resource";
2436
- /**
2437
- * The URI or URI template of the resource.
2438
- *
2439
- * @format uri-template
2440
- */
2441
- uri: string;
2442
- }
2443
- /**
2444
- * Identifies a prompt.
2445
- *
2446
- * @category `completion/complete`
2447
- */
2448
- interface PromptReference extends BaseMetadata {
2449
- type: "ref/prompt";
2450
- }
2451
- /**
2452
- * Sent from the server to request a list of root URIs from the client. Roots allow
2453
- * servers to ask for specific directories or files to operate on. A common example
2454
- * for roots is providing a set of repositories or directories a server should operate
2455
- * on.
2456
- *
2457
- * This request is typically used when the server needs to understand the file system
2458
- * structure or access specific locations that the client has permission to read from.
2459
- *
2460
- * @example List roots request
2461
- * {@includeCode ./examples/ListRootsRequest/list-roots-request.json}
2462
- *
2463
- * @category `roots/list`
2464
- */
2465
- interface ListRootsRequest extends JSONRPCRequest {
2466
- method: "roots/list";
2467
- params?: RequestParams;
2468
- }
2469
- /**
2470
- * The result returned by the client for a {@link ListRootsRequest | roots/list} request.
2471
- * This result contains an array of {@link Root} objects, each representing a root directory
2472
- * or file that the server can operate on.
2473
- *
2474
- * @example Single root directory
2475
- * {@includeCode ./examples/ListRootsResult/single-root-directory.json}
2476
- *
2477
- * @example Multiple root directories
2478
- * {@includeCode ./examples/ListRootsResult/multiple-root-directories.json}
2479
- *
2480
- * @category `roots/list`
2481
- */
2482
- interface ListRootsResult extends Result {
2483
- roots: Root[];
2484
- }
2485
- /**
2486
- * A successful response from the client for a {@link ListRootsRequest | roots/list} request.
2487
- *
2488
- * @example List roots result response
2489
- * {@includeCode ./examples/ListRootsResultResponse/list-roots-result-response.json}
2490
- *
2491
- * @category `roots/list`
2492
- */
2493
- interface ListRootsResultResponse extends JSONRPCResultResponse {
2494
- result: ListRootsResult;
2495
- }
2496
- /**
2497
- * Represents a root directory or file that the server can operate on.
2498
- *
2499
- * @example Project directory root
2500
- * {@includeCode ./examples/Root/project-directory.json}
2501
- *
2502
- * @category `roots/list`
2503
- */
2504
- interface Root {
2505
- /**
2506
- * The URI identifying the root. This *must* start with `file://` for now.
2507
- * This restriction may be relaxed in future versions of the protocol to allow
2508
- * other URI schemes.
2509
- *
2510
- * @format uri
2511
- */
2512
- uri: string;
2513
- /**
2514
- * An optional name for the root. This can be used to provide a human-readable
2515
- * identifier for the root, which may be useful for display purposes or for
2516
- * referencing the root in other parts of the application.
2517
- */
2518
- name?: string;
2519
- _meta?: MetaObject;
2520
- }
2521
- /**
2522
- * A notification from the client to the server, informing it that the list of roots has changed.
2523
- * This notification should be sent whenever the client adds, removes, or modifies any root.
2524
- * The server should then request an updated list of roots using the {@link ListRootsRequest}.
2525
- *
2526
- * @example Roots list changed
2527
- * {@includeCode ./examples/RootsListChangedNotification/roots-list-changed.json}
2528
- *
2529
- * @category `notifications/roots/list_changed`
2530
- */
2531
- interface RootsListChangedNotification extends JSONRPCNotification {
2532
- method: "notifications/roots/list_changed";
2533
- params?: NotificationParams;
2534
- }
2535
- /**
2536
- * The parameters for a request to elicit non-sensitive information from the user via a form in the client.
2537
- *
2538
- * @example Elicit single field
2539
- * {@includeCode ./examples/ElicitRequestFormParams/elicit-single-field.json}
2540
- *
2541
- * @example Elicit multiple fields
2542
- * {@includeCode ./examples/ElicitRequestFormParams/elicit-multiple-fields.json}
2543
- *
2544
- * @category `elicitation/create`
2545
- */
2546
- interface ElicitRequestFormParams extends TaskAugmentedRequestParams {
2547
- /**
2548
- * The elicitation mode.
2549
- */
2550
- mode?: "form";
2551
- /**
2552
- * The message to present to the user describing what information is being requested.
2553
- */
2554
- message: string;
2555
- /**
2556
- * A restricted subset of JSON Schema.
2557
- * Only top-level properties are allowed, without nesting.
2558
- */
2559
- requestedSchema: {
2560
- $schema?: string;
2561
- type: "object";
2562
- properties: {
2563
- [key: string]: PrimitiveSchemaDefinition;
2564
- };
2565
- required?: string[];
2566
- };
2567
- }
2568
- /**
2569
- * The parameters for a request to elicit information from the user via a URL in the client.
2570
- *
2571
- * @example Elicit sensitive data
2572
- * {@includeCode ./examples/ElicitRequestURLParams/elicit-sensitive-data.json}
2573
- *
2574
- * @category `elicitation/create`
2575
- */
2576
- interface ElicitRequestURLParams extends TaskAugmentedRequestParams {
2577
- /**
2578
- * The elicitation mode.
2579
- */
2580
- mode: "url";
2581
- /**
2582
- * The message to present to the user explaining why the interaction is needed.
2583
- */
2584
- message: string;
2585
- /**
2586
- * The ID of the elicitation, which must be unique within the context of the server.
2587
- * The client MUST treat this ID as an opaque value.
2588
- */
2589
- elicitationId: string;
2590
- /**
2591
- * The URL that the user should navigate to.
2592
- *
2593
- * @format uri
2594
- */
2595
- url: string;
2596
- }
2597
- /**
2598
- * The parameters for a request to elicit additional information from the user via the client.
2599
- *
2600
- * @category `elicitation/create`
2601
- */
2602
- type ElicitRequestParams = ElicitRequestFormParams | ElicitRequestURLParams;
2603
- /**
2604
- * A request from the server to elicit additional information from the user via the client.
2605
- *
2606
- * @example Elicitation request
2607
- * {@includeCode ./examples/ElicitRequest/elicitation-request.json}
2608
- *
2609
- * @category `elicitation/create`
2610
- */
2611
- interface ElicitRequest extends JSONRPCRequest {
2612
- method: "elicitation/create";
2613
- params: ElicitRequestParams;
2614
- }
2615
- /**
2616
- * Restricted schema definitions that only allow primitive types
2617
- * without nested objects or arrays.
2618
- *
2619
- * @category `elicitation/create`
2620
- */
2621
- type PrimitiveSchemaDefinition = StringSchema | NumberSchema | BooleanSchema | EnumSchema;
2622
- /**
2623
- * @example Email input schema
2624
- * {@includeCode ./examples/StringSchema/email-input-schema.json}
2625
- *
2626
- * @category `elicitation/create`
2627
- */
2628
- interface StringSchema {
2629
- type: "string";
2630
- title?: string;
2631
- description?: string;
2632
- minLength?: number;
2633
- maxLength?: number;
2634
- format?: "email" | "uri" | "date" | "date-time";
2635
- default?: string;
2636
- }
2637
- /**
2638
- * @example Number input schema
2639
- * {@includeCode ./examples/NumberSchema/number-input-schema.json}
2640
- *
2641
- * @category `elicitation/create`
2642
- */
2643
- interface NumberSchema {
2644
- type: "number" | "integer";
2645
- title?: string;
2646
- description?: string;
2647
- minimum?: number;
2648
- maximum?: number;
2649
- default?: number;
2650
- }
2651
- /**
2652
- * @example Boolean input schema
2653
- * {@includeCode ./examples/BooleanSchema/boolean-input-schema.json}
2654
- *
2655
- * @category `elicitation/create`
2656
- */
2657
- interface BooleanSchema {
2658
- type: "boolean";
2659
- title?: string;
2660
- description?: string;
2661
- default?: boolean;
2662
- }
2663
- /**
2664
- * Schema for single-selection enumeration without display titles for options.
2665
- *
2666
- * @example Color select schema
2667
- * {@includeCode ./examples/UntitledSingleSelectEnumSchema/color-select-schema.json}
2668
- *
2669
- * @category `elicitation/create`
2670
- */
2671
- interface UntitledSingleSelectEnumSchema {
2672
- type: "string";
2673
- /**
2674
- * Optional title for the enum field.
2675
- */
2676
- title?: string;
2677
- /**
2678
- * Optional description for the enum field.
2679
- */
2680
- description?: string;
2681
- /**
2682
- * Array of enum values to choose from.
2683
- */
2684
- enum: string[];
2685
- /**
2686
- * Optional default value.
2687
- */
2688
- default?: string;
2689
- }
2690
- /**
2691
- * Schema for single-selection enumeration with display titles for each option.
2692
- *
2693
- * @example Titled color select schema
2694
- * {@includeCode ./examples/TitledSingleSelectEnumSchema/titled-color-select-schema.json}
2695
- *
2696
- * @category `elicitation/create`
2697
- */
2698
- interface TitledSingleSelectEnumSchema {
2699
- type: "string";
2700
- /**
2701
- * Optional title for the enum field.
2702
- */
2703
- title?: string;
2704
- /**
2705
- * Optional description for the enum field.
2706
- */
2707
- description?: string;
2708
- /**
2709
- * Array of enum options with values and display labels.
2710
- */
2711
- oneOf: Array<{
2712
- /**
2713
- * The enum value.
2714
- */
2715
- const: string;
2716
- /**
2717
- * Display label for this option.
2718
- */
2719
- title: string;
2720
- }>;
2721
- /**
2722
- * Optional default value.
2723
- */
2724
- default?: string;
2725
- }
2726
- /**
2727
- * @category `elicitation/create`
2728
- */
2729
- type SingleSelectEnumSchema = UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema;
2730
- /**
2731
- * Schema for multiple-selection enumeration without display titles for options.
2732
- *
2733
- * @example Color multi-select schema
2734
- * {@includeCode ./examples/UntitledMultiSelectEnumSchema/color-multi-select-schema.json}
2735
- *
2736
- * @category `elicitation/create`
2737
- */
2738
- interface UntitledMultiSelectEnumSchema {
2739
- type: "array";
2740
- /**
2741
- * Optional title for the enum field.
2742
- */
2743
- title?: string;
2744
- /**
2745
- * Optional description for the enum field.
2746
- */
2747
- description?: string;
2748
- /**
2749
- * Minimum number of items to select.
2750
- */
2751
- minItems?: number;
2752
- /**
2753
- * Maximum number of items to select.
2754
- */
2755
- maxItems?: number;
2756
- /**
2757
- * Schema for the array items.
2758
- */
2759
- items: {
2760
- type: "string";
2761
- /**
2762
- * Array of enum values to choose from.
2763
- */
2764
- enum: string[];
2765
- };
2766
- /**
2767
- * Optional default value.
2768
- */
2769
- default?: string[];
2770
- }
2771
- /**
2772
- * Schema for multiple-selection enumeration with display titles for each option.
2773
- *
2774
- * @example Titled color multi-select schema
2775
- * {@includeCode ./examples/TitledMultiSelectEnumSchema/titled-color-multi-select-schema.json}
2776
- *
2777
- * @category `elicitation/create`
2778
- */
2779
- interface TitledMultiSelectEnumSchema {
2780
- type: "array";
2781
- /**
2782
- * Optional title for the enum field.
2783
- */
2784
- title?: string;
2785
- /**
2786
- * Optional description for the enum field.
2787
- */
2788
- description?: string;
2789
- /**
2790
- * Minimum number of items to select.
2791
- */
2792
- minItems?: number;
2793
- /**
2794
- * Maximum number of items to select.
2795
- */
2796
- maxItems?: number;
2797
- /**
2798
- * Schema for array items with enum options and display labels.
2799
- */
2800
- items: {
2801
- /**
2802
- * Array of enum options with values and display labels.
2803
- */
2804
- anyOf: Array<{
2805
- /**
2806
- * The constant enum value.
2807
- */
2808
- const: string;
2809
- /**
2810
- * Display title for this option.
2811
- */
2812
- title: string;
2813
- }>;
2814
- };
2815
- /**
2816
- * Optional default value.
2817
- */
2818
- default?: string[];
2819
- }
2820
- /**
2821
- * @category `elicitation/create`
2822
- */
2823
- type MultiSelectEnumSchema = UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema;
2824
- /**
2825
- * Use {@link TitledSingleSelectEnumSchema} instead.
2826
- * This interface will be removed in a future version.
2827
- *
2828
- * @category `elicitation/create`
2829
- */
2830
- interface LegacyTitledEnumSchema {
2831
- type: "string";
2832
- title?: string;
2833
- description?: string;
2834
- enum: string[];
2835
- /**
2836
- * (Legacy) Display names for enum values.
2837
- * Non-standard according to JSON schema 2020-12.
2838
- */
2839
- enumNames?: string[];
2840
- default?: string;
2841
- }
2842
- /**
2843
- * @category `elicitation/create`
2844
- */
2845
- type EnumSchema = SingleSelectEnumSchema | MultiSelectEnumSchema | LegacyTitledEnumSchema;
2846
- /**
2847
- * The result returned by the client for an {@link ElicitRequest | elicitation/create} request.
2848
- *
2849
- * @example Input single field
2850
- * {@includeCode ./examples/ElicitResult/input-single-field.json}
2851
- *
2852
- * @example Input multiple fields
2853
- * {@includeCode ./examples/ElicitResult/input-multiple-fields.json}
2854
- *
2855
- * @example Accept URL mode (no content)
2856
- * {@includeCode ./examples/ElicitResult/accept-url-mode-no-content.json}
2857
- *
2858
- * @category `elicitation/create`
2859
- */
2860
- interface ElicitResult extends Result {
2861
- /**
2862
- * The user action in response to the elicitation.
2863
- * - `"accept"`: User submitted the form/confirmed the action
2864
- * - `"decline"`: User explicitly declined the action
2865
- * - `"cancel"`: User dismissed without making an explicit choice
2866
- */
2867
- action: "accept" | "decline" | "cancel";
2868
- /**
2869
- * The submitted form data, only present when action is `"accept"` and mode was `"form"`.
2870
- * Contains values matching the requested schema.
2871
- * Omitted for out-of-band mode responses.
2872
- */
2873
- content?: {
2874
- [key: string]: string | number | boolean | string[];
2875
- };
2876
- }
2877
- /**
2878
- * A successful response from the client for a {@link ElicitRequest | elicitation/create} request.
2879
- *
2880
- * @example Elicitation result response
2881
- * {@includeCode ./examples/ElicitResultResponse/elicitation-result-response.json}
2882
- *
2883
- * @category `elicitation/create`
2884
- */
2885
- interface ElicitResultResponse extends JSONRPCResultResponse {
2886
- result: ElicitResult;
2887
- }
2888
- /**
2889
- * An optional notification from the server to the client, informing it of a completion of a out-of-band elicitation request.
2890
- *
2891
- * @example Elicitation complete
2892
- * {@includeCode ./examples/ElicitationCompleteNotification/elicitation-complete.json}
2893
- *
2894
- * @category `notifications/elicitation/complete`
2895
- */
2896
- interface ElicitationCompleteNotification extends JSONRPCNotification {
2897
- method: "notifications/elicitation/complete";
2898
- params: {
2899
- /**
2900
- * The ID of the elicitation that completed.
2901
- */
2902
- elicitationId: string;
2903
- };
2904
- }
2905
- /** @internal */
2906
- type ClientRequest = PingRequest | InitializeRequest | CompleteRequest | SetLevelRequest | GetPromptRequest | ListPromptsRequest | ListResourcesRequest | ListResourceTemplatesRequest | ReadResourceRequest | SubscribeRequest | UnsubscribeRequest | CallToolRequest | ListToolsRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest;
2907
- /** @internal */
2908
- type ClientNotification = CancelledNotification | ProgressNotification | InitializedNotification | RootsListChangedNotification | TaskStatusNotification;
2909
- /** @internal */
2910
- type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult | ElicitResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult;
2911
- /** @internal */
2912
- type ServerRequest = PingRequest | CreateMessageRequest | ListRootsRequest | ElicitRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest;
2913
- /** @internal */
2914
- type ServerNotification = CancelledNotification | ProgressNotification | LoggingMessageNotification | ResourceUpdatedNotification | ResourceListChangedNotification | ToolListChangedNotification | PromptListChangedNotification | ElicitationCompleteNotification | TaskStatusNotification;
2915
- /** @internal */
2916
- type ServerResult = EmptyResult | InitializeResult | CompleteResult | GetPromptResult | ListPromptsResult | ListResourceTemplatesResult | ListResourcesResult | ReadResourceResult | CallToolResult | CreateTaskResult | ListToolsResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult;
2917
- }
1
+ export { MCP } from "../../../../platform/mcp/common/modelContextProtocol.js";