With OpenCode
To configure the DVT MCP Server in the OpenCode agent, follow these steps:
Start a DVT MCP CLI Endpoint for your project
$DVT_HOME/bin/dvt_mcp.sh start /path/to/dvt/project -lang vlog -lang vhdl -default.build <compilation_args>
Configure the command that starts the MCP Connector
Add the command to start the MCP Connector in the OpenCode configuration and make sure DVT_HOME is set before starting OpenCode.
> opencode mcp add
┌ Add MCP server
│
◇ Enter MCP server name
│ dvt_mcp
│
◇ Select MCP server type
│ Local
│
◇ Enter command to run
│ {env:DVT_HOME}/bin/dvt_mcp.sh connect
│
◆ MCP server "dvt_mcp" added to /home/user/.config/opencode/opencode.json
│
└ MCP server added successfully
> opencode mcp add
┌ Add MCP server
│
◇ Enter MCP server name
│ dvt_mcp
│
◇ Select MCP server type
│ Local
│
◇ Enter command to run
│ {env:DVT_HOME}/bin/dvt_mcp.bat connect
│
◆ MCP server "dvt_mcp" added to /home/user/.config/opencode/opencode.json
│
└ MCP server added successfully
For more information, please refer to the official OpenCode documentation