dvt_mcp.sh

This script can be used to start either an MCP Connector or a DVT MCP CLI Endpoint.

Syntax

Usage: dvt_mcp.sh connect | start | stop | list | version | help ...

  Connect an IDE AI Agent (UI) to an MCP IDE endpoint:
    connect [-heap_size <size>] [-stack_size <size>] [-vmargs <args>]
            [-trace]

      Optional arguments:
        -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

  Connect a CLI AI Agent to an MCP CLI endpoint:
    connect [-project <project_path> | -id <id>]
            [-heap_size <size>] [-stack_size <size>] [-vmargs <args>]
            [-trace]

      Optional arguments:
        -project      <project_path>    Connect only to the endpoints started for <project_path>.
        -id           <id>              Connect only to the endpoint with the specified <id>.
        -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.

  Start an MCP CLI endpoint:
    start | createProject <project path> -lang <lang>
                          [-build <name>] [-f|-F <file>] [-<name>.build <....>]
                          [-heap_size <size>] [-stack_size <size>] [-vmargs <args>]
                          [-noexit]

      Mandatory arguments:
        <project path>        Path to project (must exist).
        -lang   <lang>        Project language (vlog, vhdl, e).

      Optional arguments:
        -build        <name>            Name of active build configuration.
        -f|-F         <file>            Specify a command file for the project. -f and -F are mutually exclusive.
        -<name>.build <....>            Create the build configuration file <project>/.dvt/<name>.build with <....> as content.
                                        All flags up to the end of the command line, or up to the next -<name>.build flag are considered build.
                                        configuration directives. This flag cannot be used in conjunction with -f, or -F.
        -heap_size    <size>            Set the Java heap size (syntax is <N>[g|G|m|M|k|K]). Default is 3072m.
        -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.
        -noexit                         Script will not terminate after the endpoint is started, terminating the script will also terminate the endpoint.

  Stop an MCP CLI endpoint
    stop <id>

  List all MCP CLI endpoints:
    list

  Show MCP version:
    version

Examples

Start an MCP Connector that connects to a DVT MCP CLI Endpoint

# Start a DVT MCP CLI Endpoint for your project
$DVT_HOME/bin/dvt_mcp.sh start /path/to/dvt/project -lang vlog -lang vhdl -build default

# Start the MCP Connector
$DVT_HOME/bin/dvt_mcp.sh connect

List all DVT MCP CLI Endpoints

$DVT_HOME/bin/dvt_mcp.sh list

Stop a DVT MCP CLI Endpoint

$DVT_HOME/bin/dvt_mcp.sh stop <id>