mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[mcpServer] Disable promotion notification to enable MCP server + don't suggest to autoconfigure new found clients
(cherry picked from commit 4c9b1e306dda86c972ac81bef3f3997b410a2dfa) IJ-CR-170140 GitOrigin-RevId: 3336eae0852c8bb374b4a8205eff37c4d366d536
This commit is contained in:
committed by
intellij-monorepo-bot
parent
404b29c11e
commit
a1d8a53639
@@ -44,7 +44,7 @@
|
||||
<mcpServer.mcpToolset implementation="com.intellij.mcpserver.toolsets.general.CodeInsightToolset" />
|
||||
<mcpServer.mcpToolset implementation="com.intellij.mcpserver.toolsets.general.RefactoringToolset" />
|
||||
|
||||
<registryKey defaultValue="true"
|
||||
<registryKey defaultValue="false"
|
||||
description="Detect MCP clients to suggest enable MCP server on project startup"
|
||||
key="mcp.server.detect.mcp.clients"/>
|
||||
|
||||
|
||||
@@ -38,11 +38,12 @@ internal class McpClientDetectionActivity : ProjectActivity {
|
||||
override suspend fun execute(project: Project) {
|
||||
if (ConfigImportHelper.isNewUser()) return // not just yet, next time
|
||||
|
||||
val detectedClients = McpClientDetector.detectMcpClients(project)
|
||||
suggestToChangePortIfNeeded(detectedClients, project)
|
||||
|
||||
if (Registry.`is`("mcp.server.detect.mcp.clients")) {
|
||||
val detectedClients = McpClientDetector.detectMcpClients(project)
|
||||
if (McpServerSettings.getInstance().state.enableMcpServer) {
|
||||
showUnconfiguredNotificationIfNeeded(detectedClients, project)
|
||||
suggestToChangePortIfNeeded(detectedClients, project)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user