MCP ExplorerExplorer

Mcpextensionplugin

@MaXalon a month ago
1 MIT
FreeCommunity
AI Systems
This plugin demonstrates how to provide an extension for the JetBrains MCP Server plugin

Overview

What is Mcpextensionplugin

mcpExtensionPlugin is a demo plugin that extends the JetBrains MCP Server Plugin by providing custom commands with arguments, serving as a starting point for developers to create their own tools.

Use cases

Use cases for mcpExtensionPlugin include creating custom development tools, automating tasks within the MCP Server, and extending the server’s capabilities to better fit specific project needs.

How to use

To use mcpExtensionPlugin, include the necessary dependencies in your build.gradle.kts file, such as kotlinx.serialization and the main MCP Server plugin. Configure the plugin.xml to declare dependencies and define custom tools.

Key features

Key features of mcpExtensionPlugin include the ability to add custom commands, integration with the JetBrains MCP Server Plugin, and the use of kotlinx.serialization for data handling.

Where to use

mcpExtensionPlugin can be used in software development environments where JetBrains tools are utilized, particularly for enhancing the functionality of the MCP Server.

Content

Demo plugin

This demo plugins extends JetBrains MCP Server Plugin with custom command with arguments.

You can use it as a starting point to provide your own tools.

Important parts:

In build.gradle.kts:

  • Add correct dependency on kotlinx.serialization
    kotlin("jvm") version "1.9.24"
    kotlin("plugin.serialization") version "1.9.24"

This is needed to use the same version of serialization as in the main plugin.

  • Add dependency on the main plugin
dependencies {
  intellijPlatform {
    plugin("com.intellij.mcpServer", "1.0.30")
  }
}
  • Make kotlinx.serialization compileOnly dependendency to avoid runtime errors due to different class loaders of the library
dependencies {
    compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
}

In plugin.xml:

  • Add the following lines to depend on the plugin and to provide a custom tool
<depends>com.intellij.mcpServer</depends>

<extensions defaultExtensionNs="com.intellij.mcpServer">
    <mcpTool implementation="org.jetbrains.mcpextensiondemo.MyCustomTool"/>
</extensions>

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers