IJ-CR-170140 [mcpServer] Disable promotion notification to enable MCP server + don't suggest to autoconfigure new found clients

GitOrigin-RevId: ef34527c8929378f26e732d373477f48d5c7cf8a
This commit is contained in:
Maxim.Kolmakov
2025-07-23 18:16:34 +02:00
committed by intellij-monorepo-bot
parent ed720e56fd
commit ca0a1fbac4
2 changed files with 4 additions and 3 deletions

View File

@@ -43,7 +43,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"/>

View File

@@ -29,13 +29,14 @@ internal class McpClientDetectionSettings : SimplePersistentStateComponent<McpCl
internal class McpClientDetectionActivity : ProjectActivity {
override suspend fun execute(project: Project) {
val detectedClients = McpClientDetector.detectMcpClients(project)
suggestToChangePortIfNeeded(detectedClients, project)
if (Registry.`is`("mcp.server.detect.mcp.clients")) {
val mcpClientDetectionSettings = application.service<McpClientDetectionSettings>()
val detectedClients = McpClientDetector.detectMcpClients(project)
if (McpServerSettings.getInstance().state.enableMcpServer) {
showUnconfiguredNotificationIfNeeded(detectedClients, project)
suggestToChangePortIfNeeded(detectedClients, project)
return
}