Просмотр исходного кода

Merge pull request #5301 from Kilo-Org/pr/single-commit-a95ff49

Remove mcpButtonClicked from JetBrains plugin
Joshua Lambert 4 недель назад
Родитель
Сommit
cde70184c7

+ 0 - 19
jetbrains/plugin/src/main/kotlin/ai/kilocode/jetbrains/actions/VSCodeCommandActions.kt

@@ -61,25 +61,6 @@ class PromptsButtonClickAction : AnAction() {
     }
     }
 }
 }
 
 
-/**
- * Action that handles clicks on the MCP button in the UI.
- * Executes the corresponding VSCode command when triggered.
- */
-class MCPButtonClickAction : AnAction() {
-    private val logger: Logger = Logger.getInstance(MCPButtonClickAction::class.java)
-    private val commandId: String = "kilo-code.mcpButtonClicked"
-
-    /**
-     * Performs the action when the MCP button is clicked.
-     *
-     * @param e The action event containing context information
-     */
-    override fun actionPerformed(e: AnActionEvent) {
-        logger.info("MCP button clicked")
-        executeCommand(commandId, e.project)
-    }
-}
-
 /**
 /**
  * Action that handles clicks on the History button in the UI.
  * Action that handles clicks on the History button in the UI.
  * Executes the corresponding VSCode command when triggered.
  * Executes the corresponding VSCode command when triggered.

+ 0 - 9
jetbrains/plugin/src/main/resources/META-INF/plugin.xml.template

@@ -72,14 +72,6 @@ SPDX-License-Identifier: Apache-2.0
             <override-text place="GoToAction" text="New Task" />
             <override-text place="GoToAction" text="New Task" />
         </action>
         </action>
 
 
-        <action id="kilocode.mcpButtonClicked"
-                icon="AllIcons.Webreferences.Server"
-                class="ai.kilocode.jetbrains.actions.MCPButtonClickAction"
-                text="MCP Server"
-                description="MCP server">
-            <override-text place="GoToAction" text="MCP Server" />
-        </action>
-
         <action id="kilocode.historyButtonClicked"
         <action id="kilocode.historyButtonClicked"
                 icon="AllIcons.Vcs.History"
                 icon="AllIcons.Vcs.History"
                 class="ai.kilocode.jetbrains.actions.HistoryButtonClickAction"
                 class="ai.kilocode.jetbrains.actions.HistoryButtonClickAction"
@@ -114,7 +106,6 @@ SPDX-License-Identifier: Apache-2.0
 
 
         <group id="WecoderToolbarGroup">
         <group id="WecoderToolbarGroup">
             <reference ref="kilocode.plusButtonClicked" />
             <reference ref="kilocode.plusButtonClicked" />
-            <reference ref="kilocode.mcpButtonClicked" />
             <reference ref="kilocode.historyButtonClicked" />
             <reference ref="kilocode.historyButtonClicked" />
             <reference ref="kilocode.profileButtonClicked" />
             <reference ref="kilocode.profileButtonClicked" />
             <reference ref="kilocode.settingsButtonClicked" />
             <reference ref="kilocode.settingsButtonClicked" />