mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[mcpServer] Update consent dialog to make it look like a warning and make text more clear
GitOrigin-RevId: ebc5a71a7d109a3d89da7f565e08461376ef7f1d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
00b475a403
commit
7d58438d8c
@@ -51,7 +51,7 @@ open.settings.json=Open Client Settings File
|
||||
autoconfigure.progress.title=Configuring MCP Client\u2026
|
||||
|
||||
dialog.title.mcp.server.consent=Enable MCP Server?
|
||||
dialog.message.mcp.server.consent=By enabling, you allow third-party applications to interact with the IDE:\n \u2022 Read file structure and contents \n \u2022 Trigger IDE actions \n \u2022 Run terminal commands and more\n\nFor a full list, see: <a href="https://youtrack.jetbrains.com/articles/SUPPORT-A-2156/MCP-Available-Tools">MCP Tools</a>.
|
||||
dialog.message.mcp.server.consent=By enabling, you allow third-party applications to interact with the all opened in IDE projects:\n \u2022 Read file structure and contents \n \u2022 Trigger IDE actions \n \u2022 Run terminal commands and more\n\nFor a full list, see: <a href="https://youtrack.jetbrains.com/articles/SUPPORT-A-2156/MCP-Available-Tools">MCP Tools</a>.
|
||||
settings.comment.manual.config=Add the config to the client, depending on the connection type.
|
||||
settings.client.group=Clients Auto-Configuration
|
||||
mcp.settings.description=Allow external clients to read files and trigger IDE actions. <a href="https://youtrack.jetbrains.com/articles/SUPPORT-A-2156/MCP-Available-Tools">All MCP Tools</a>
|
||||
|
||||
+2
-1
@@ -15,6 +15,7 @@ import com.intellij.openapi.ide.CopyPasteManager
|
||||
import com.intellij.openapi.options.SearchableConfigurable
|
||||
import com.intellij.openapi.ui.DialogPanel
|
||||
import com.intellij.openapi.ui.MessageDialogBuilder
|
||||
import com.intellij.openapi.ui.Messages
|
||||
import com.intellij.openapi.ui.popup.JBPopupFactory
|
||||
import com.intellij.openapi.vfs.LocalFileSystem
|
||||
import com.intellij.ui.JBColor
|
||||
@@ -248,7 +249,7 @@ private class CheckboxWithValidation(@Nls checkboxText: String, var validator: C
|
||||
|
||||
private object ConsentValidator : CheckboxValidator {
|
||||
override fun isValidNewValue(isSelected: Boolean): Boolean = if (isSelected) {
|
||||
MessageDialogBuilder.yesNo(McpServerBundle.message("dialog.title.mcp.server.consent"), McpServerBundle.message("dialog.message.mcp.server.consent")).ask(getLastFocusedOrOpenedProject())
|
||||
MessageDialogBuilder.yesNo(McpServerBundle.message("dialog.title.mcp.server.consent"), McpServerBundle.message("dialog.message.mcp.server.consent"), Messages.getWarningIcon()).ask(getLastFocusedOrOpenedProject())
|
||||
}
|
||||
else true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user