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 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions