Skip to content

Commit c212186

Browse files
committed
refactor(mcp): move MCP schema files to mcp package #371
Relocate MCP schema related files from custom.schema to mcp.schema package to better organize code structure and align with MCP naming convention.
1 parent 0540962 commit c212186

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

core/src/main/kotlin/cc/unitmesh/devti/custom/schema/AutoDevJsonSchemaProviderFactory.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package cc.unitmesh.devti.custom.schema
22

3+
import cc.unitmesh.devti.mcp.schema.CustomMCPServersSchemaFileProvider
34
import com.intellij.openapi.project.Project
45
import com.jetbrains.jsonSchema.extension.JsonSchemaFileProvider
56
import com.jetbrains.jsonSchema.extension.JsonSchemaProviderFactory

core/src/main/kotlin/cc/unitmesh/devti/custom/schema/CustomMCPServersSchemaFileProvider.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/mcp/schema/CustomMCPServersSchemaFileProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.custom.schema
1+
package cc.unitmesh.devti.mcp.schema
22

33
import com.intellij.openapi.application.runReadAction
44
import com.intellij.openapi.project.Project

core/src/main/kotlin/cc/unitmesh/devti/mcp/ui/McpToolListPanel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ class McpToolListPanel(private val project: Project) : JPanel() {
9090
background = UIUtil.getPanelBackground()
9191
border = BorderFactory.createCompoundBorder(
9292
BorderFactory.createMatteBorder(0, 0, 1, 0, borderColor),
93-
JBUI.Borders.empty(4, 0)
93+
JBUI.Borders.empty()
9494
)
9595
}
9696

9797
val headerPanel = JPanel(BorderLayout()).apply {
9898
background = headerColor
99-
border = JBUI.Borders.empty(4, 8)
99+
border = JBUI.Borders.empty(4)
100100
}
101101

102102
val serverLabel = JBLabel(serverName).apply {

core/src/main/kotlin/cc/unitmesh/devti/settings/customize/CustomizeConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cc.unitmesh.devti.settings.customize
33
import cc.unitmesh.devti.AutoDevBundle
44
import cc.unitmesh.devti.custom.schema.CUSTOM_AGENT_FILE_NAME
55
import cc.unitmesh.devti.custom.schema.CUSTOM_PROMPTS_FILE_NAME
6-
import cc.unitmesh.devti.custom.schema.MCP_SERVERS_FILE_NAME
6+
import cc.unitmesh.devti.mcp.schema.MCP_SERVERS_FILE_NAME
77
import cc.unitmesh.devti.fullHeight
88
import cc.unitmesh.devti.fullWidthCell
99
import cc.unitmesh.devti.mcp.client.McpServicesTestDialog

0 commit comments

Comments
 (0)