Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Support register MCP tools from other Eclipse plug-in #16

Closed

Description

@jdneo
No description provided.

Activity

  1. jdneo commented on Aug 5, 2025

    @jdneo
    MemberAuthor

    Hi Alex Boyko (@BoykoAlex),

    I have questions about this request:

    1. Are those MCP tools provided by Spring? Or they are tools registered from Spring users in the Spring config files?
  2. iloveeclipse commented on Aug 5, 2025

    @iloveeclipse

    We are also looking into this - starting local MCP server from Eclipse & auto-configure Copilot to use this MCP.
    Ideally there would be extension point to do that. Especially the MCP url should be taken from extension point because if we start local MCP server it will have some unique port calculated dynamically at startup.

  3. BoykoAlex commented on Aug 6, 2025

    @BoykoAlex

    Hi @BoykoAlex,

    I have questions about this request:

    1. Are those MCP tools provided by Spring? Or they are tools registered from Spring users in the Spring config files?

    MCPs from Spring Tools (provided by Spring)

  4. jdneo commented on Aug 6, 2025

    @jdneo
    MemberAuthor

    Alex Boyko (@BoykoAlex) May I ask how to setup the MCPs from Spring Tools?

    We would like to first evaluate our current MCP support can meet your requirement.

  5. BoykoAlex commented on Aug 6, 2025

    @BoykoAlex

    Our current MCP is just a small POC for now providing bean information to the LLM: https://github.com/spring-projects/spring-tools/tree/main/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/mcp

    However, there are more MCPs coming which Martin Lippert (@martinlippert) probably have shared to some extent via our gchat channel

  6. jdneo commented on Aug 8, 2025

    @jdneo
    MemberAuthor

    Especially the MCP url should be taken from extension point because if we start local MCP server it will have some unique port calculated dynamically at startup.

    I would like to discuss more about this:

    Since the port is dynamically generated, so it cannot be an extension point that staticly declare the mcp servers, instead, should be a provider-like stuff, right? Which means, plugins register a mcp server provider, and copilot plugin pull the configurations from the providers.

  7. iloveeclipse commented on Aug 8, 2025

    @iloveeclipse

    Correct, the extension point would involve some kind of callback API which the contribution has to implement.

  8. bros-swissas commented on Aug 22, 2025

    @bros-swissas

    Interesting idea but from a security point of view I do not want my IDE to spawn 10 local unprotected webservers from various plugins on dynamic ports to expose IDE features as MCP tools. Maybe they should do this more in the STDIO way by exposing input / output streams to do MCP or at least have authentication turned on which also needs to be passed from the plugin to the Copilot MCP configuration.

  9. martinlippert commented on Aug 22, 2025

    @martinlippert

    BROS (@bros-swissas) I am not sure I fully understand the suggestion about using STDIO for this yet. Can you elaborate on this a bit more? From my current understanding, STDIO is used for MCP servers when the MCP client (the Copilot plugin running inside of Eclipse in this case) starts up the MCP server as a separate process and then connects to it using STDIO.

    Since the MCP server that I am thinking about should provide functions/tools that get information and execute actions inside of the IDE, this separate MCP server would then have to communicate with the IDE to do those things. That is why connecting the MCP client via SSE/Streamable HTTP to the MCP server piece looks like a nice option to me.

    I would configure the HTTP server for this to only accept connections from localhost to address the security conversation (authentication is an additional option of course).

    In the end, the Copilot plugin for Eclipse allows users to configure MCP servers manually and I don't think the Copilot plugin for Eclipse should restrict this. The only thing that we are looking for is configuring those MCP servers programmatically (instead of manually), which would enable other developers to build nice user experiences for this. The discussion about which communication channel MCP servers should use or not use is - in my opinion - an important, but different topic... :-)

  10. bros-swissas commented on Aug 22, 2025

    @bros-swissas

    Ok I miss understood that part. I thought your eclipse plugins would launch a internal webserver to offer MCP with a dynamic port and then modify the Copilot configuration to register it.
    But it seems you only want to modify the configuration and the MCP server independent of how the server is launched.

  11. jdneo commented on Jan 12, 2026

    @jdneo
    MemberAuthor

    Below is how to register your own MCP server to copilot

    1. Add your MCP server to Copilot plugin's extension point in your plugin.xml
    <extension
    	point="com.microsoft.copilot.eclipse.ui.mcpRegistration">
    	<provider
    		class="your.plugin.ExampleMcpRegistrationProvider">
    	</provider>
    	<provider
    		class="your.plugin.ExampleMcpRegistrationProvider2">
    	</provider>
    </extension>
    1. Add the update site of GHCP to the target platform. Or your can directly use running platform if you've already installed copilot plugin.
    2. Add com.microsoft.copilot.eclipse.ui;resolution:=optional under Require-Bundle section to your plugin's MANIFEST.MF
    3. Implement the Provider class
    package your.plugin;
    
    import java.util.concurrent.CompletableFuture;
    import com.microsoft.copilot.eclipse.ui.extensions.IMcpRegistrationProvider;
    
    public class ExampleMcpRegistrationProvider implements IMcpRegistrationProvider {
    
      @Override
      public CompletableFuture<String> getMcpServerConfigurations() {
        return CompletableFuture.completedFuture("""
            {
              "servers": {
                "weather": {
                  "command": "uv",
                  "args": [
                    "--directory",
                    "D:/weather",
                    "run",
                    "weather.py"
                  ]
                }
              }
            }
            """);
      }
    }
  12. martinlippert commented on Jan 15, 2026

    @martinlippert

    Thanks Sheng Chen (@jdneo) for the update here. What is the expected content of the String that the getMcpServerConfigured returns?
    And when is this method being called? And is it okay if the future takes a few seconds to complete?

  13. jdneo commented on Jan 16, 2026

    @jdneo
    MemberAuthor

    What is the expected content of the String that the getMcpServerConfigured returns?

    Sorry I did not explain it clearly. It's the string of the json configuration for the MCP servers. Example:

    @Override
    public CompletableFuture<String> getMcpServerConfigurations() {
      return CompletableFuture.completedFuture("""
          {
            "servers": {
              "weather": {
                "command": "uv",
                "args": [
                  "--directory",
                  "D:/weather",
                  "run",
                  "weather.py"
                ]
              }
            }
          }
          """);
    }

    when is this method being called? And is it okay if the future takes a few seconds to complete?

    It is being called once the copilot plugin is activated. The extension point resolving happens in a background thread so it's ok that the future takes a few seconds to complete

  14. fedejeanne commented on Jan 21, 2026

    @fedejeanne

    So this would replace/extend the current static mechanism (Text field) that you use to attach MCP-Servers?

    Image

    Pardon my ignorance but is the format in which you accept the server(s) some standardized format or is it specific to Copilot? I noticed it looks similar to what Claude Desktop uses. If it were to be standardized, it would be a win.

    Also, shouldn't the answer exclude the "servers": part and return a Collection<String> with several servers instead? I mean you probably want to gather all servers by calling all extensions in the Workbench and then add 1 array of servers ?

  15. jdneo commented on Jan 22, 2026

    @jdneo
    MemberAuthor

    So this would replace/extend the current static mechanism (Text field) that you use to attach MCP-Servers?

    No, they will not be merged into the user configured text-based preference. They are stored separately.

    Also, shouldn't the answer exclude the "servers": part and return a Collection with several servers instead? I mean you probably want to gather all servers by calling all extensions in the Workbench and then add 1 array of servers?

    The plugin will parse the json string and do the merge, don't worry.

  16. fedejeanne commented on Jan 22, 2026

    @fedejeanne

    So this would replace/extend the current static mechanism (Text field) that you use to attach MCP-Servers?

    No, they will not be merged into the user configured text-based preference. They are stored separately.

    But I guess in the end the user will have some way of knowing which MCP servers does Copilot know, right? Like adding more entries into the tree below (the one that shows the Built-in Tools in my screenshot above)?

    Also, shouldn't the answer exclude the "servers": part and return a Collection with several servers instead? I mean you probably want to gather all servers by calling all extensions in the Workbench and then add 1 array of servers?

    The plugin will parse the json string and do the merge, don't worry.

    As long as several plugins can provide several MCP servers and they all make it to the final list of available MCP servers, is all good 👍

  17. jdneo commented on Jan 22, 2026

    @jdneo
    MemberAuthor

    But I guess in the end the user will have some way of knowing which MCP servers does Copilot know, right? Like adding more entries into the tree below (the one that shows the Built-in Tools in my screenshot above)?

    Yes, all enabled the MCP servers will listed in the bottom box

  18. martinlippert commented on Jan 22, 2026

    @martinlippert

    Hey Sheng Chen (@jdneo), I tried this, but I am not yet able to get the extension point to work. I have com.microsoft.copilot.eclipse.ui in version 0.14.0.202512112209 installed, but looking at the timestamp makes me wonder if I need a more up-to-date snapshot build here. Do you have any advice for me?

  19. martinlippert commented on Jan 22, 2026

    @martinlippert

    Hey @jdneo, I tried this, but I am not yet able to get the extension point to work. I have com.microsoft.copilot.eclipse.ui in version 0.14.0.202512112209 installed, but looking at the timestamp makes me wonder if I need a more up-to-date snapshot build here. Do you have any advice for me?

    Please ignore the previous comment, I found the nightly update site, installed the latest snapshot builds, and it works quite nicely. Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions