mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
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:
committed by
intellij-monorepo-bot
parent
ed720e56fd
commit
ca0a1fbac4
@@ -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"/>
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user