@codingame/monaco-vscode-api 21.5.1 → 22.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.
- package/README.md +0 -5
- package/missing-services.js +68 -78
- package/package.json +8 -8
- package/services.d.ts +4 -4
- package/services.js +5 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +6 -3
- package/vscode/src/vs/base/browser/domSanitize.d.ts +8 -0
- package/vscode/src/vs/base/browser/domSanitize.js +49 -27
- package/vscode/src/vs/base/browser/domStylesheets.js +5 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +7 -5
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +1 -1
- package/vscode/src/vs/base/common/async.js +6 -0
- package/vscode/src/vs/base/common/cancellation.d.ts +21 -0
- package/vscode/src/vs/base/common/cancellation.js +42 -1
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/decorators/cancelPreviousCalls.d.ts +84 -0
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/htmlContent.d.ts +2 -0
- package/vscode/src/vs/base/common/htmlContent.js +9 -6
- package/vscode/src/vs/base/common/lifecycle.js +21 -7
- package/vscode/src/vs/base/common/numbers.d.ts +0 -45
- package/vscode/src/vs/base/common/oauth.d.ts +33 -0
- package/vscode/src/vs/base/common/oauth.js +79 -3
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/index.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +98 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
- package/vscode/src/vs/base/common/product.d.ts +7 -1
- package/vscode/src/vs/base/common/strings.d.ts +0 -1
- package/vscode/src/vs/base/common/strings.js +9 -4
- package/vscode/src/vs/base/common/uriIpc.js +24 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +26 -16
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +3 -3
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +26 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +93 -85
- package/vscode/src/vs/editor/common/config/editorOptions.js +386 -351
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/ranges/lineRange.d.ts +3 -3
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages.js +56 -56
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +86 -85
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +86 -85
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +9 -7
- package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js +8 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +44 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +81 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -0
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +20 -11
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +2 -7
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +18 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +14 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +154 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +18 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.js +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +16 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +5 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +24 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +13 -4
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +36 -35
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +11 -11
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +3 -3
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +13 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +12 -19
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +10 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -26
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +0 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +9 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +13 -14
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -5
- package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -0
- package/vscode/src/vs/platform/actions/common/actions.js +2 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +6 -1
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +2 -0
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +32 -3
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +0 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +10 -11
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.d.ts +32 -0
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.js +86 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.d.ts +1 -3
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +2 -1
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +4 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +4 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +10 -2
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +10 -2
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +3 -3
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +23 -15
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +47 -13
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -61
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +6 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +10 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +10 -5
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +4 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +10 -1
- package/vscode/src/vs/platform/request/common/request.js +34 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -3
- package/vscode/src/vs/platform/terminal/common/terminal.js +6 -7
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +11 -10
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +10 -18
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +5 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +16 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +1 -3
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +9 -5
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +0 -3
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +9 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +97 -9
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +66 -62
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +0 -3
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +8 -8
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +53 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +6 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +60 -9
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +18 -14
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +7 -7
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +262 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +5 -7
- package/vscode/src/vs/workbench/browser/contextkeys.js +15 -43
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +167 -167
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +175 -158
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -66
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +24 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +28 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +35 -6
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -8
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +50 -42
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +23 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -3
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +7 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +16 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +217 -60
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +7 -7
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +18 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +42 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +12 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +6 -6
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +286 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +861 -0
- package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.d.ts +8 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
- package/vscode/src/vs/workbench/services/language/common/languageService.js +30 -30
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +4 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode-dts/vscode.d.ts +92 -47
- package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +7 -80
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +14 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +12 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +19 -0
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +19 -11
- package/vscode-dts/vscode.proposed.d.ts +1 -1
- package/vscode-dts/{vscode.proposed.secretStorageKeys.d.ts → vscode.proposed.devDeviceId.d.ts} +3 -4
- package/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts +5 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +70 -16
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +0 -55
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +0 -91
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -125
- /package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.js +0 -0
|
@@ -15,9 +15,13 @@ export declare namespace MCP {
|
|
|
15
15
|
export declare namespace MCP {
|
|
16
16
|
/**
|
|
17
17
|
* Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
18
20
|
*/
|
|
19
21
|
type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResponse | JSONRPCError;
|
|
22
|
+
/** @internal */
|
|
20
23
|
const LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
24
|
+
/** @internal */
|
|
21
25
|
const JSONRPC_VERSION = "2.0";
|
|
22
26
|
/**
|
|
23
27
|
* A progress token, used to associate progress notifications with the original request.
|
|
@@ -27,11 +31,12 @@ export declare namespace MCP {
|
|
|
27
31
|
* An opaque token used to represent a cursor for pagination.
|
|
28
32
|
*/
|
|
29
33
|
type Cursor = string;
|
|
34
|
+
/** @internal */
|
|
30
35
|
interface Request {
|
|
31
36
|
method: string;
|
|
32
37
|
params?: {
|
|
33
38
|
/**
|
|
34
|
-
* See [specification/
|
|
39
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
35
40
|
*/
|
|
36
41
|
_meta?: {
|
|
37
42
|
/**
|
|
@@ -43,11 +48,12 @@ export declare namespace MCP {
|
|
|
43
48
|
[key: string]: unknown;
|
|
44
49
|
};
|
|
45
50
|
}
|
|
51
|
+
/** @internal */
|
|
46
52
|
interface Notification {
|
|
47
53
|
method: string;
|
|
48
54
|
params?: {
|
|
49
55
|
/**
|
|
50
|
-
* See [specification/
|
|
56
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
51
57
|
*/
|
|
52
58
|
_meta?: {
|
|
53
59
|
[key: string]: unknown;
|
|
@@ -57,13 +63,27 @@ export declare namespace MCP {
|
|
|
57
63
|
}
|
|
58
64
|
interface Result {
|
|
59
65
|
/**
|
|
60
|
-
* See [specification/
|
|
66
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
61
67
|
*/
|
|
62
68
|
_meta?: {
|
|
63
69
|
[key: string]: unknown;
|
|
64
70
|
};
|
|
65
71
|
[key: string]: unknown;
|
|
66
72
|
}
|
|
73
|
+
interface Error {
|
|
74
|
+
/**
|
|
75
|
+
* The error type that occurred.
|
|
76
|
+
*/
|
|
77
|
+
code: number;
|
|
78
|
+
/**
|
|
79
|
+
* A short description of the error. The message SHOULD be limited to a concise single sentence.
|
|
80
|
+
*/
|
|
81
|
+
message: string;
|
|
82
|
+
/**
|
|
83
|
+
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
84
|
+
*/
|
|
85
|
+
data?: unknown;
|
|
86
|
+
}
|
|
67
87
|
/**
|
|
68
88
|
* A uniquely identifying ID for a request in JSON-RPC.
|
|
69
89
|
*/
|
|
@@ -89,10 +109,15 @@ export declare namespace MCP {
|
|
|
89
109
|
id: RequestId;
|
|
90
110
|
result: Result;
|
|
91
111
|
}
|
|
112
|
+
/** @internal */
|
|
92
113
|
const PARSE_ERROR = -32700;
|
|
114
|
+
/** @internal */
|
|
93
115
|
const INVALID_REQUEST = -32600;
|
|
116
|
+
/** @internal */
|
|
94
117
|
const METHOD_NOT_FOUND = -32601;
|
|
118
|
+
/** @internal */
|
|
95
119
|
const INVALID_PARAMS = -32602;
|
|
120
|
+
/** @internal */
|
|
96
121
|
const INTERNAL_ERROR = -32603;
|
|
97
122
|
/**
|
|
98
123
|
* A response to a request that indicates an error occurred.
|
|
@@ -100,20 +125,7 @@ export declare namespace MCP {
|
|
|
100
125
|
interface JSONRPCError {
|
|
101
126
|
jsonrpc: typeof JSONRPC_VERSION;
|
|
102
127
|
id: RequestId;
|
|
103
|
-
error:
|
|
104
|
-
/**
|
|
105
|
-
* The error type that occurred.
|
|
106
|
-
*/
|
|
107
|
-
code: number;
|
|
108
|
-
/**
|
|
109
|
-
* A short description of the error. The message SHOULD be limited to a concise single sentence.
|
|
110
|
-
*/
|
|
111
|
-
message: string;
|
|
112
|
-
/**
|
|
113
|
-
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
114
|
-
*/
|
|
115
|
-
data?: unknown;
|
|
116
|
-
};
|
|
128
|
+
error: Error;
|
|
117
129
|
}
|
|
118
130
|
/**
|
|
119
131
|
* A response that indicates success but carries no data.
|
|
@@ -127,8 +139,10 @@ export declare namespace MCP {
|
|
|
127
139
|
* This notification indicates that the result will be unused, so any associated processing SHOULD cease.
|
|
128
140
|
*
|
|
129
141
|
* A client MUST NOT attempt to cancel its `initialize` request.
|
|
142
|
+
*
|
|
143
|
+
* @category notifications/cancelled
|
|
130
144
|
*/
|
|
131
|
-
interface CancelledNotification extends
|
|
145
|
+
interface CancelledNotification extends JSONRPCNotification {
|
|
132
146
|
method: "notifications/cancelled";
|
|
133
147
|
params: {
|
|
134
148
|
/**
|
|
@@ -145,8 +159,10 @@ export declare namespace MCP {
|
|
|
145
159
|
}
|
|
146
160
|
/**
|
|
147
161
|
* This request is sent from the client to the server when it first connects, asking it to begin initialization.
|
|
162
|
+
*
|
|
163
|
+
* @category initialize
|
|
148
164
|
*/
|
|
149
|
-
interface InitializeRequest extends
|
|
165
|
+
interface InitializeRequest extends JSONRPCRequest {
|
|
150
166
|
method: "initialize";
|
|
151
167
|
params: {
|
|
152
168
|
/**
|
|
@@ -159,6 +175,8 @@ export declare namespace MCP {
|
|
|
159
175
|
}
|
|
160
176
|
/**
|
|
161
177
|
* After receiving an initialize request from the client, the server sends this response.
|
|
178
|
+
*
|
|
179
|
+
* @category initialize
|
|
162
180
|
*/
|
|
163
181
|
interface InitializeResult extends Result {
|
|
164
182
|
/**
|
|
@@ -176,8 +194,10 @@ export declare namespace MCP {
|
|
|
176
194
|
}
|
|
177
195
|
/**
|
|
178
196
|
* This notification is sent from the client to the server after initialization has finished.
|
|
197
|
+
*
|
|
198
|
+
* @category notifications/initialized
|
|
179
199
|
*/
|
|
180
|
-
interface InitializedNotification extends
|
|
200
|
+
interface InitializedNotification extends JSONRPCNotification {
|
|
181
201
|
method: "notifications/initialized";
|
|
182
202
|
}
|
|
183
203
|
/**
|
|
@@ -258,8 +278,59 @@ export declare namespace MCP {
|
|
|
258
278
|
listChanged?: boolean;
|
|
259
279
|
};
|
|
260
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* An optionally-sized icon that can be displayed in a user interface.
|
|
283
|
+
*/
|
|
284
|
+
interface Icon {
|
|
285
|
+
/**
|
|
286
|
+
* A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
|
|
287
|
+
* `data:` URI with Base64-encoded image data.
|
|
288
|
+
*
|
|
289
|
+
* Consumers SHOULD takes steps to ensure URLs serving icons are from the
|
|
290
|
+
* same domain as the client/server or a trusted domain.
|
|
291
|
+
*
|
|
292
|
+
* Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
|
|
293
|
+
* executable JavaScript.
|
|
294
|
+
*
|
|
295
|
+
* @format uri
|
|
296
|
+
*/
|
|
297
|
+
src: string;
|
|
298
|
+
/**
|
|
299
|
+
* Optional MIME type override if the source MIME type is missing or generic.
|
|
300
|
+
* For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`.
|
|
301
|
+
*/
|
|
302
|
+
mimeType?: string;
|
|
303
|
+
/**
|
|
304
|
+
* Optional string that specifies one or more sizes at which the icon can be used.
|
|
305
|
+
* For example: `"48x48"`, `"48x48 96x96"`, or `"any"` for scalable formats like SVG.
|
|
306
|
+
*
|
|
307
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
308
|
+
*/
|
|
309
|
+
sizes?: string;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Base interface to add `icons` property.
|
|
313
|
+
*
|
|
314
|
+
* @internal
|
|
315
|
+
*/
|
|
316
|
+
interface Icons {
|
|
317
|
+
/**
|
|
318
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
319
|
+
*
|
|
320
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
321
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
322
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
323
|
+
*
|
|
324
|
+
* Clients that support rendering icons SHOULD also support:
|
|
325
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
326
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
327
|
+
*/
|
|
328
|
+
icons?: Icon[];
|
|
329
|
+
}
|
|
261
330
|
/**
|
|
262
331
|
* Base interface for metadata with name (identifier) and title (display name) properties.
|
|
332
|
+
*
|
|
333
|
+
* @internal
|
|
263
334
|
*/
|
|
264
335
|
interface BaseMetadata {
|
|
265
336
|
/**
|
|
@@ -277,21 +348,31 @@ export declare namespace MCP {
|
|
|
277
348
|
title?: string;
|
|
278
349
|
}
|
|
279
350
|
/**
|
|
280
|
-
* Describes the
|
|
351
|
+
* Describes the MCP implementation
|
|
281
352
|
*/
|
|
282
|
-
interface Implementation extends BaseMetadata {
|
|
353
|
+
interface Implementation extends BaseMetadata, Icons {
|
|
283
354
|
version: string;
|
|
355
|
+
/**
|
|
356
|
+
* An optional URL of the website for this implementation.
|
|
357
|
+
*
|
|
358
|
+
* @format uri
|
|
359
|
+
*/
|
|
360
|
+
websiteUrl?: string;
|
|
284
361
|
}
|
|
285
362
|
/**
|
|
286
363
|
* 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.
|
|
364
|
+
*
|
|
365
|
+
* @category ping
|
|
287
366
|
*/
|
|
288
|
-
interface PingRequest extends
|
|
367
|
+
interface PingRequest extends JSONRPCRequest {
|
|
289
368
|
method: "ping";
|
|
290
369
|
}
|
|
291
370
|
/**
|
|
292
371
|
* An out-of-band notification used to inform the receiver of a progress update for a long-running request.
|
|
372
|
+
*
|
|
373
|
+
* @category notifications/progress
|
|
293
374
|
*/
|
|
294
|
-
interface ProgressNotification extends
|
|
375
|
+
interface ProgressNotification extends JSONRPCNotification {
|
|
295
376
|
method: "notifications/progress";
|
|
296
377
|
params: {
|
|
297
378
|
/**
|
|
@@ -316,7 +397,8 @@ export declare namespace MCP {
|
|
|
316
397
|
message?: string;
|
|
317
398
|
};
|
|
318
399
|
}
|
|
319
|
-
|
|
400
|
+
/** @internal */
|
|
401
|
+
interface PaginatedRequest extends JSONRPCRequest {
|
|
320
402
|
params?: {
|
|
321
403
|
/**
|
|
322
404
|
* An opaque token representing the current pagination position.
|
|
@@ -325,6 +407,7 @@ export declare namespace MCP {
|
|
|
325
407
|
cursor?: Cursor;
|
|
326
408
|
};
|
|
327
409
|
}
|
|
410
|
+
/** @internal */
|
|
328
411
|
interface PaginatedResult extends Result {
|
|
329
412
|
/**
|
|
330
413
|
* An opaque token representing the pagination position after the last returned result.
|
|
@@ -334,32 +417,42 @@ export declare namespace MCP {
|
|
|
334
417
|
}
|
|
335
418
|
/**
|
|
336
419
|
* Sent from the client to request a list of resources the server has.
|
|
420
|
+
*
|
|
421
|
+
* @category resources/list
|
|
337
422
|
*/
|
|
338
423
|
interface ListResourcesRequest extends PaginatedRequest {
|
|
339
424
|
method: "resources/list";
|
|
340
425
|
}
|
|
341
426
|
/**
|
|
342
427
|
* The server's response to a resources/list request from the client.
|
|
428
|
+
*
|
|
429
|
+
* @category resources/list
|
|
343
430
|
*/
|
|
344
431
|
interface ListResourcesResult extends PaginatedResult {
|
|
345
432
|
resources: Resource[];
|
|
346
433
|
}
|
|
347
434
|
/**
|
|
348
435
|
* Sent from the client to request a list of resource templates the server has.
|
|
436
|
+
*
|
|
437
|
+
* @category resources/templates/list
|
|
349
438
|
*/
|
|
350
439
|
interface ListResourceTemplatesRequest extends PaginatedRequest {
|
|
351
440
|
method: "resources/templates/list";
|
|
352
441
|
}
|
|
353
442
|
/**
|
|
354
443
|
* The server's response to a resources/templates/list request from the client.
|
|
444
|
+
*
|
|
445
|
+
* @category resources/templates/list
|
|
355
446
|
*/
|
|
356
447
|
interface ListResourceTemplatesResult extends PaginatedResult {
|
|
357
448
|
resourceTemplates: ResourceTemplate[];
|
|
358
449
|
}
|
|
359
450
|
/**
|
|
360
451
|
* Sent from the client to the server, to read a specific resource URI.
|
|
452
|
+
*
|
|
453
|
+
* @category resources/read
|
|
361
454
|
*/
|
|
362
|
-
interface ReadResourceRequest extends
|
|
455
|
+
interface ReadResourceRequest extends JSONRPCRequest {
|
|
363
456
|
method: "resources/read";
|
|
364
457
|
params: {
|
|
365
458
|
/**
|
|
@@ -372,20 +465,26 @@ export declare namespace MCP {
|
|
|
372
465
|
}
|
|
373
466
|
/**
|
|
374
467
|
* The server's response to a resources/read request from the client.
|
|
468
|
+
*
|
|
469
|
+
* @category resources/read
|
|
375
470
|
*/
|
|
376
471
|
interface ReadResourceResult extends Result {
|
|
377
472
|
contents: (TextResourceContents | BlobResourceContents)[];
|
|
378
473
|
}
|
|
379
474
|
/**
|
|
380
475
|
* 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.
|
|
476
|
+
*
|
|
477
|
+
* @category notifications/resources/list_changed
|
|
381
478
|
*/
|
|
382
|
-
interface ResourceListChangedNotification extends
|
|
479
|
+
interface ResourceListChangedNotification extends JSONRPCNotification {
|
|
383
480
|
method: "notifications/resources/list_changed";
|
|
384
481
|
}
|
|
385
482
|
/**
|
|
386
483
|
* Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
|
|
484
|
+
*
|
|
485
|
+
* @category resources/subscribe
|
|
387
486
|
*/
|
|
388
|
-
interface SubscribeRequest extends
|
|
487
|
+
interface SubscribeRequest extends JSONRPCRequest {
|
|
389
488
|
method: "resources/subscribe";
|
|
390
489
|
params: {
|
|
391
490
|
/**
|
|
@@ -398,8 +497,10 @@ export declare namespace MCP {
|
|
|
398
497
|
}
|
|
399
498
|
/**
|
|
400
499
|
* Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
|
|
500
|
+
*
|
|
501
|
+
* @category resources/unsubscribe
|
|
401
502
|
*/
|
|
402
|
-
interface UnsubscribeRequest extends
|
|
503
|
+
interface UnsubscribeRequest extends JSONRPCRequest {
|
|
403
504
|
method: "resources/unsubscribe";
|
|
404
505
|
params: {
|
|
405
506
|
/**
|
|
@@ -412,8 +513,10 @@ export declare namespace MCP {
|
|
|
412
513
|
}
|
|
413
514
|
/**
|
|
414
515
|
* A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.
|
|
516
|
+
*
|
|
517
|
+
* @category notifications/resources/updated
|
|
415
518
|
*/
|
|
416
|
-
interface ResourceUpdatedNotification extends
|
|
519
|
+
interface ResourceUpdatedNotification extends JSONRPCNotification {
|
|
417
520
|
method: "notifications/resources/updated";
|
|
418
521
|
params: {
|
|
419
522
|
/**
|
|
@@ -427,7 +530,7 @@ export declare namespace MCP {
|
|
|
427
530
|
/**
|
|
428
531
|
* A known resource that the server is capable of reading.
|
|
429
532
|
*/
|
|
430
|
-
interface Resource extends BaseMetadata {
|
|
533
|
+
interface Resource extends BaseMetadata, Icons {
|
|
431
534
|
/**
|
|
432
535
|
* The URI of this resource.
|
|
433
536
|
*
|
|
@@ -455,7 +558,7 @@ export declare namespace MCP {
|
|
|
455
558
|
*/
|
|
456
559
|
size?: number;
|
|
457
560
|
/**
|
|
458
|
-
* See [specification/
|
|
561
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
459
562
|
*/
|
|
460
563
|
_meta?: {
|
|
461
564
|
[key: string]: unknown;
|
|
@@ -464,7 +567,7 @@ export declare namespace MCP {
|
|
|
464
567
|
/**
|
|
465
568
|
* A template description for resources available on the server.
|
|
466
569
|
*/
|
|
467
|
-
interface ResourceTemplate extends BaseMetadata {
|
|
570
|
+
interface ResourceTemplate extends BaseMetadata, Icons {
|
|
468
571
|
/**
|
|
469
572
|
* A URI template (according to RFC 6570) that can be used to construct resource URIs.
|
|
470
573
|
*
|
|
@@ -486,7 +589,7 @@ export declare namespace MCP {
|
|
|
486
589
|
*/
|
|
487
590
|
annotations?: Annotations;
|
|
488
591
|
/**
|
|
489
|
-
* See [specification/
|
|
592
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
490
593
|
*/
|
|
491
594
|
_meta?: {
|
|
492
595
|
[key: string]: unknown;
|
|
@@ -507,7 +610,7 @@ export declare namespace MCP {
|
|
|
507
610
|
*/
|
|
508
611
|
mimeType?: string;
|
|
509
612
|
/**
|
|
510
|
-
* See [specification/
|
|
613
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
511
614
|
*/
|
|
512
615
|
_meta?: {
|
|
513
616
|
[key: string]: unknown;
|
|
@@ -529,20 +632,26 @@ export declare namespace MCP {
|
|
|
529
632
|
}
|
|
530
633
|
/**
|
|
531
634
|
* Sent from the client to request a list of prompts and prompt templates the server has.
|
|
635
|
+
*
|
|
636
|
+
* @category prompts/list
|
|
532
637
|
*/
|
|
533
638
|
interface ListPromptsRequest extends PaginatedRequest {
|
|
534
639
|
method: "prompts/list";
|
|
535
640
|
}
|
|
536
641
|
/**
|
|
537
642
|
* The server's response to a prompts/list request from the client.
|
|
643
|
+
*
|
|
644
|
+
* @category prompts/list
|
|
538
645
|
*/
|
|
539
646
|
interface ListPromptsResult extends PaginatedResult {
|
|
540
647
|
prompts: Prompt[];
|
|
541
648
|
}
|
|
542
649
|
/**
|
|
543
650
|
* Used by the client to get a prompt provided by the server.
|
|
651
|
+
*
|
|
652
|
+
* @category prompts/get
|
|
544
653
|
*/
|
|
545
|
-
interface GetPromptRequest extends
|
|
654
|
+
interface GetPromptRequest extends JSONRPCRequest {
|
|
546
655
|
method: "prompts/get";
|
|
547
656
|
params: {
|
|
548
657
|
/**
|
|
@@ -559,6 +668,8 @@ export declare namespace MCP {
|
|
|
559
668
|
}
|
|
560
669
|
/**
|
|
561
670
|
* The server's response to a prompts/get request from the client.
|
|
671
|
+
*
|
|
672
|
+
* @category prompts/get
|
|
562
673
|
*/
|
|
563
674
|
interface GetPromptResult extends Result {
|
|
564
675
|
/**
|
|
@@ -570,7 +681,7 @@ export declare namespace MCP {
|
|
|
570
681
|
/**
|
|
571
682
|
* A prompt or prompt template that the server offers.
|
|
572
683
|
*/
|
|
573
|
-
interface Prompt extends BaseMetadata {
|
|
684
|
+
interface Prompt extends BaseMetadata, Icons {
|
|
574
685
|
/**
|
|
575
686
|
* An optional description of what this prompt provides
|
|
576
687
|
*/
|
|
@@ -580,7 +691,7 @@ export declare namespace MCP {
|
|
|
580
691
|
*/
|
|
581
692
|
arguments?: PromptArgument[];
|
|
582
693
|
/**
|
|
583
|
-
* See [specification/
|
|
694
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
584
695
|
*/
|
|
585
696
|
_meta?: {
|
|
586
697
|
[key: string]: unknown;
|
|
@@ -606,7 +717,9 @@ export declare namespace MCP {
|
|
|
606
717
|
/**
|
|
607
718
|
* Describes a message returned as part of a prompt.
|
|
608
719
|
*
|
|
609
|
-
* This is similar to `
|
|
720
|
+
* This is similar to `SamplingMessage`, but also supports the embedding of
|
|
721
|
+
* resources from the MCP server.
|
|
722
|
+
*/
|
|
610
723
|
interface PromptMessage {
|
|
611
724
|
role: Role;
|
|
612
725
|
content: ContentBlock;
|
|
@@ -633,7 +746,7 @@ export declare namespace MCP {
|
|
|
633
746
|
*/
|
|
634
747
|
annotations?: Annotations;
|
|
635
748
|
/**
|
|
636
|
-
* See [specification/
|
|
749
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
637
750
|
*/
|
|
638
751
|
_meta?: {
|
|
639
752
|
[key: string]: unknown;
|
|
@@ -641,24 +754,32 @@ export declare namespace MCP {
|
|
|
641
754
|
}
|
|
642
755
|
/**
|
|
643
756
|
* 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.
|
|
757
|
+
*
|
|
758
|
+
* @category notifications/prompts/list_changed
|
|
644
759
|
*/
|
|
645
|
-
interface PromptListChangedNotification extends
|
|
760
|
+
interface PromptListChangedNotification extends JSONRPCNotification {
|
|
646
761
|
method: "notifications/prompts/list_changed";
|
|
647
762
|
}
|
|
648
763
|
/**
|
|
649
764
|
* Sent from the client to request a list of tools the server has.
|
|
765
|
+
*
|
|
766
|
+
* @category tools/list
|
|
650
767
|
*/
|
|
651
768
|
interface ListToolsRequest extends PaginatedRequest {
|
|
652
769
|
method: "tools/list";
|
|
653
770
|
}
|
|
654
771
|
/**
|
|
655
772
|
* The server's response to a tools/list request from the client.
|
|
773
|
+
*
|
|
774
|
+
* @category tools/list
|
|
656
775
|
*/
|
|
657
776
|
interface ListToolsResult extends PaginatedResult {
|
|
658
777
|
tools: Tool[];
|
|
659
778
|
}
|
|
660
779
|
/**
|
|
661
780
|
* The server's response to a tool call.
|
|
781
|
+
*
|
|
782
|
+
* @category tools/call
|
|
662
783
|
*/
|
|
663
784
|
interface CallToolResult extends Result {
|
|
664
785
|
/**
|
|
@@ -689,8 +810,10 @@ export declare namespace MCP {
|
|
|
689
810
|
}
|
|
690
811
|
/**
|
|
691
812
|
* Used by the client to invoke a tool provided by the server.
|
|
813
|
+
*
|
|
814
|
+
* @category tools/call
|
|
692
815
|
*/
|
|
693
|
-
interface CallToolRequest extends
|
|
816
|
+
interface CallToolRequest extends JSONRPCRequest {
|
|
694
817
|
method: "tools/call";
|
|
695
818
|
params: {
|
|
696
819
|
name: string;
|
|
@@ -701,8 +824,10 @@ export declare namespace MCP {
|
|
|
701
824
|
}
|
|
702
825
|
/**
|
|
703
826
|
* 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.
|
|
827
|
+
*
|
|
828
|
+
* @category notifications/tools/list_changed
|
|
704
829
|
*/
|
|
705
|
-
interface ToolListChangedNotification extends
|
|
830
|
+
interface ToolListChangedNotification extends JSONRPCNotification {
|
|
706
831
|
method: "notifications/tools/list_changed";
|
|
707
832
|
}
|
|
708
833
|
/**
|
|
@@ -757,7 +882,7 @@ export declare namespace MCP {
|
|
|
757
882
|
/**
|
|
758
883
|
* Definition for a tool the client can call.
|
|
759
884
|
*/
|
|
760
|
-
interface Tool extends BaseMetadata {
|
|
885
|
+
interface Tool extends BaseMetadata, Icons {
|
|
761
886
|
/**
|
|
762
887
|
* A human-readable description of the tool.
|
|
763
888
|
*
|
|
@@ -792,7 +917,7 @@ export declare namespace MCP {
|
|
|
792
917
|
*/
|
|
793
918
|
annotations?: ToolAnnotations;
|
|
794
919
|
/**
|
|
795
|
-
* See [specification/
|
|
920
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
796
921
|
*/
|
|
797
922
|
_meta?: {
|
|
798
923
|
[key: string]: unknown;
|
|
@@ -800,8 +925,10 @@ export declare namespace MCP {
|
|
|
800
925
|
}
|
|
801
926
|
/**
|
|
802
927
|
* A request from the client to the server, to enable or adjust logging.
|
|
928
|
+
*
|
|
929
|
+
* @category logging/setLevel
|
|
803
930
|
*/
|
|
804
|
-
interface SetLevelRequest extends
|
|
931
|
+
interface SetLevelRequest extends JSONRPCRequest {
|
|
805
932
|
method: "logging/setLevel";
|
|
806
933
|
params: {
|
|
807
934
|
/**
|
|
@@ -811,9 +938,11 @@ export declare namespace MCP {
|
|
|
811
938
|
};
|
|
812
939
|
}
|
|
813
940
|
/**
|
|
814
|
-
*
|
|
941
|
+
* 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.
|
|
942
|
+
*
|
|
943
|
+
* @category notifications/message
|
|
815
944
|
*/
|
|
816
|
-
interface LoggingMessageNotification extends
|
|
945
|
+
interface LoggingMessageNotification extends JSONRPCNotification {
|
|
817
946
|
method: "notifications/message";
|
|
818
947
|
params: {
|
|
819
948
|
/**
|
|
@@ -839,8 +968,10 @@ export declare namespace MCP {
|
|
|
839
968
|
type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency";
|
|
840
969
|
/**
|
|
841
970
|
* 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.
|
|
971
|
+
*
|
|
972
|
+
* @category sampling/createMessage
|
|
842
973
|
*/
|
|
843
|
-
interface CreateMessageRequest extends
|
|
974
|
+
interface CreateMessageRequest extends JSONRPCRequest {
|
|
844
975
|
method: "sampling/createMessage";
|
|
845
976
|
params: {
|
|
846
977
|
messages: SamplingMessage[];
|
|
@@ -861,7 +992,9 @@ export declare namespace MCP {
|
|
|
861
992
|
*/
|
|
862
993
|
temperature?: number;
|
|
863
994
|
/**
|
|
864
|
-
* The maximum number of tokens to sample
|
|
995
|
+
* The requested maximum number of tokens to sample (to prevent runaway completions).
|
|
996
|
+
*
|
|
997
|
+
* The client MAY choose to sample fewer tokens than the requested maximum.
|
|
865
998
|
*/
|
|
866
999
|
maxTokens: number;
|
|
867
1000
|
stopSequences?: string[];
|
|
@@ -873,6 +1006,8 @@ export declare namespace MCP {
|
|
|
873
1006
|
}
|
|
874
1007
|
/**
|
|
875
1008
|
* The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
|
|
1009
|
+
*
|
|
1010
|
+
* @category sampling/createMessage
|
|
876
1011
|
*/
|
|
877
1012
|
interface CreateMessageResult extends Result, SamplingMessage {
|
|
878
1013
|
/**
|
|
@@ -923,7 +1058,6 @@ export declare namespace MCP {
|
|
|
923
1058
|
*/
|
|
924
1059
|
lastModified?: string;
|
|
925
1060
|
}
|
|
926
|
-
/** */
|
|
927
1061
|
type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;
|
|
928
1062
|
/**
|
|
929
1063
|
* Text provided to or from an LLM.
|
|
@@ -939,7 +1073,7 @@ export declare namespace MCP {
|
|
|
939
1073
|
*/
|
|
940
1074
|
annotations?: Annotations;
|
|
941
1075
|
/**
|
|
942
|
-
* See [specification/
|
|
1076
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
943
1077
|
*/
|
|
944
1078
|
_meta?: {
|
|
945
1079
|
[key: string]: unknown;
|
|
@@ -965,7 +1099,7 @@ export declare namespace MCP {
|
|
|
965
1099
|
*/
|
|
966
1100
|
annotations?: Annotations;
|
|
967
1101
|
/**
|
|
968
|
-
* See [specification/
|
|
1102
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
969
1103
|
*/
|
|
970
1104
|
_meta?: {
|
|
971
1105
|
[key: string]: unknown;
|
|
@@ -991,7 +1125,7 @@ export declare namespace MCP {
|
|
|
991
1125
|
*/
|
|
992
1126
|
annotations?: Annotations;
|
|
993
1127
|
/**
|
|
994
|
-
* See [specification/
|
|
1128
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
995
1129
|
*/
|
|
996
1130
|
_meta?: {
|
|
997
1131
|
[key: string]: unknown;
|
|
@@ -1074,8 +1208,10 @@ export declare namespace MCP {
|
|
|
1074
1208
|
}
|
|
1075
1209
|
/**
|
|
1076
1210
|
* A request from the client to the server, to ask for completion options.
|
|
1211
|
+
*
|
|
1212
|
+
* @category completion/complete
|
|
1077
1213
|
*/
|
|
1078
|
-
interface CompleteRequest extends
|
|
1214
|
+
interface CompleteRequest extends JSONRPCRequest {
|
|
1079
1215
|
method: "completion/complete";
|
|
1080
1216
|
params: {
|
|
1081
1217
|
ref: PromptReference | ResourceTemplateReference;
|
|
@@ -1107,6 +1243,8 @@ export declare namespace MCP {
|
|
|
1107
1243
|
}
|
|
1108
1244
|
/**
|
|
1109
1245
|
* The server's response to a completion/complete request
|
|
1246
|
+
*
|
|
1247
|
+
* @category completion/complete
|
|
1110
1248
|
*/
|
|
1111
1249
|
interface CompleteResult extends Result {
|
|
1112
1250
|
completion: {
|
|
@@ -1150,14 +1288,18 @@ export declare namespace MCP {
|
|
|
1150
1288
|
*
|
|
1151
1289
|
* This request is typically used when the server needs to understand the file system
|
|
1152
1290
|
* structure or access specific locations that the client has permission to read from.
|
|
1291
|
+
*
|
|
1292
|
+
* @category roots/list
|
|
1153
1293
|
*/
|
|
1154
|
-
interface ListRootsRequest extends
|
|
1294
|
+
interface ListRootsRequest extends JSONRPCRequest {
|
|
1155
1295
|
method: "roots/list";
|
|
1156
1296
|
}
|
|
1157
1297
|
/**
|
|
1158
1298
|
* The client's response to a roots/list request from the server.
|
|
1159
1299
|
* This result contains an array of Root objects, each representing a root directory
|
|
1160
1300
|
* or file that the server can operate on.
|
|
1301
|
+
*
|
|
1302
|
+
* @category roots/list
|
|
1161
1303
|
*/
|
|
1162
1304
|
interface ListRootsResult extends Result {
|
|
1163
1305
|
roots: Root[];
|
|
@@ -1181,7 +1323,7 @@ export declare namespace MCP {
|
|
|
1181
1323
|
*/
|
|
1182
1324
|
name?: string;
|
|
1183
1325
|
/**
|
|
1184
|
-
* See [specification/
|
|
1326
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
1185
1327
|
*/
|
|
1186
1328
|
_meta?: {
|
|
1187
1329
|
[key: string]: unknown;
|
|
@@ -1191,14 +1333,18 @@ export declare namespace MCP {
|
|
|
1191
1333
|
* A notification from the client to the server, informing it that the list of roots has changed.
|
|
1192
1334
|
* This notification should be sent whenever the client adds, removes, or modifies any root.
|
|
1193
1335
|
* The server should then request an updated list of roots using the ListRootsRequest.
|
|
1336
|
+
*
|
|
1337
|
+
* @category notifications/roots/list_changed
|
|
1194
1338
|
*/
|
|
1195
|
-
interface RootsListChangedNotification extends
|
|
1339
|
+
interface RootsListChangedNotification extends JSONRPCNotification {
|
|
1196
1340
|
method: "notifications/roots/list_changed";
|
|
1197
1341
|
}
|
|
1198
1342
|
/**
|
|
1199
1343
|
* A request from the server to elicit additional information from the user via the client.
|
|
1344
|
+
*
|
|
1345
|
+
* @category elicitation/create
|
|
1200
1346
|
*/
|
|
1201
|
-
interface ElicitRequest extends
|
|
1347
|
+
interface ElicitRequest extends JSONRPCRequest {
|
|
1202
1348
|
method: "elicitation/create";
|
|
1203
1349
|
params: {
|
|
1204
1350
|
/**
|
|
@@ -1230,6 +1376,7 @@ export declare namespace MCP {
|
|
|
1230
1376
|
minLength?: number;
|
|
1231
1377
|
maxLength?: number;
|
|
1232
1378
|
format?: "email" | "uri" | "date" | "date-time";
|
|
1379
|
+
default?: string;
|
|
1233
1380
|
}
|
|
1234
1381
|
interface NumberSchema {
|
|
1235
1382
|
type: "number" | "integer";
|
|
@@ -1237,6 +1384,7 @@ export declare namespace MCP {
|
|
|
1237
1384
|
description?: string;
|
|
1238
1385
|
minimum?: number;
|
|
1239
1386
|
maximum?: number;
|
|
1387
|
+
default?: number;
|
|
1240
1388
|
}
|
|
1241
1389
|
interface BooleanSchema {
|
|
1242
1390
|
type: "boolean";
|
|
@@ -1250,15 +1398,18 @@ export declare namespace MCP {
|
|
|
1250
1398
|
description?: string;
|
|
1251
1399
|
enum: string[];
|
|
1252
1400
|
enumNames?: string[];
|
|
1401
|
+
default?: string;
|
|
1253
1402
|
}
|
|
1254
1403
|
/**
|
|
1255
1404
|
* The client's response to an elicitation request.
|
|
1405
|
+
*
|
|
1406
|
+
* @category elicitation/create
|
|
1256
1407
|
*/
|
|
1257
1408
|
interface ElicitResult extends Result {
|
|
1258
1409
|
/**
|
|
1259
1410
|
* The user action in response to the elicitation.
|
|
1260
1411
|
* - "accept": User submitted the form/confirmed the action
|
|
1261
|
-
* - "decline": User explicitly
|
|
1412
|
+
* - "decline": User explicitly decline the action
|
|
1262
1413
|
* - "cancel": User dismissed without making an explicit choice
|
|
1263
1414
|
*/
|
|
1264
1415
|
action: "accept" | "decline" | "cancel";
|
|
@@ -1270,10 +1421,16 @@ export declare namespace MCP {
|
|
|
1270
1421
|
[key: string]: string | number | boolean;
|
|
1271
1422
|
};
|
|
1272
1423
|
}
|
|
1424
|
+
/** @internal */
|
|
1273
1425
|
type ClientRequest = PingRequest | InitializeRequest | CompleteRequest | SetLevelRequest | GetPromptRequest | ListPromptsRequest | ListResourcesRequest | ListResourceTemplatesRequest | ReadResourceRequest | SubscribeRequest | UnsubscribeRequest | CallToolRequest | ListToolsRequest;
|
|
1426
|
+
/** @internal */
|
|
1274
1427
|
type ClientNotification = CancelledNotification | ProgressNotification | InitializedNotification | RootsListChangedNotification;
|
|
1428
|
+
/** @internal */
|
|
1275
1429
|
type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult | ElicitResult;
|
|
1430
|
+
/** @internal */
|
|
1276
1431
|
type ServerRequest = PingRequest | CreateMessageRequest | ListRootsRequest | ElicitRequest;
|
|
1432
|
+
/** @internal */
|
|
1277
1433
|
type ServerNotification = CancelledNotification | ProgressNotification | LoggingMessageNotification | ResourceUpdatedNotification | ResourceListChangedNotification | ToolListChangedNotification | PromptListChangedNotification;
|
|
1434
|
+
/** @internal */
|
|
1278
1435
|
type ServerResult = EmptyResult | InitializeResult | CompleteResult | GetPromptResult | ListPromptsResult | ListResourceTemplatesResult | ListResourcesResult | ReadResourceResult | CallToolResult | ListToolsResult;
|
|
1279
1436
|
}
|