Skip to content

[mcp] integrate dynamic port assignment to embedded MCP server #1620

Closed

Description

@martinlippert

At the moment, the port for the embedded MCP server is assigned statically to a fixed value in the application.properties file. This causes trouble when there are multiple instances of the language server running on the same machine, since they all try to use the same port, which causes every language server to fail starting up when that server is not the first one on that machine.

Instead, the language server should be configured with a 0 as the port, which assigns a random free port to the embedded MCP servers http server.

The exact port can then be identified from inside of the language server easily, so that the client integration can then use this dynamic port to auto-configure the MCP server.

Activity

  1. added this to the 5.0.0.RELEASE milestone on Aug 19, 2025
  2. added
    for: eclipse
    for: vscode
    on Aug 19, 2025
  3. added a commit that references this issue on Aug 29, 2025
  4. added a commit that references this issue on Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: ai supported codingtype: enhancementtype: install-issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions