Skip to content

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

@martinlippert

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 client (the IDE extension that runs starts the language server) should identify a port dynamically and assign that port via a startup command line system preference (-Dserver.port=<port number>) to the language server. This also allows the client integration to use this port for automatically configuring the AI assistant of the surrounding IDE to use the embedded MCP server.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions