dvt_mcp.sh
This script is used to start a DVT MCP Server.
Syntax
Usage: dvt_mcp.sh connect | list | version | help ...
Connect to a DVT endpoint:
connect [-project <project_path>] [-id <id>]
[-heap_size <size>] [-stack_size <size>] [-vmargs <args>]
[-trace]
Optional arguments:
-project <project_path> Set the absolute path of the project.
-id <id> Set a specific endpoint to be used.
-heap_size <size> Set the Java heap size (syntax is <N>[g|G|m|M|k|K]). Default is 256m.
-stack_size <size> Set the Java thread stack size (syntax is <N>[g|G|m|M|k|K]). Default is 4m.
-vmargs <args> Additional Java arguments.
-trace Enable MCP messages tracing.
List DVT endpoints:
list
Show MCP version:
version
Note
A DVT endpoint is represented by an active DVT Eclipse IDE or an active DVT Language Server used by VS Code.
connect
Starts an MCP server that can connect to one or more DVT endpoints.
Note
Specifying -project <project_path> results in connecting to a DVT project with the project root specified by the <project_path> argument.
If there are multiple DVT endpoints for a given project_path (e.g. 2 Language Servers building the same project), the id argument can be used to choose the preferred DVT endpoint.
list
Lists all the available DVT endpoints.
Examples
Start an MCP server that connects to one or more DVT endpoints
# Start DVT IDE for one or more projects beforehand
dvt_mcp.sh connect