Claude Code
To configure the MCP Server in Claude Code’s VS Code Extension, create a file named .mcp.json in the root directory of your project, with the following content:
{
"mcpServers": {
"dvt": {
"type": "stdio",
"command": "/bin/bash",
"args": [
"-c",
"$DVT_HOME/platform/<os>-<arch>/bin/dvt_mcp.sh connect"
],
"env": {
"DVT_HOME": "<extensions_dir>/amiq.dvt-<version>-<os>-<arch>/dvt_home"
}
}
}
}
{
"mcpServers": {
"dvt": {
"type": "stdio",
"command": "/bin/bash",
"args": [
"-c",
"$DVT_HOME/bin/dvt_mcp.sh connect"
],
"env": {
"DVT_HOME": "path/to/dvt_home"
}
}
}
}
Alternatively, you can configure the MCP Server using Claude Code CLI:
claude mcp add --env DVT_HOME='<extensions_dir>/amiq.dvt-<version>-<os>-<arch>/dvt_home' --transport stdio dvt -- /bin/bash -c '$DVT_HOME/platform/<os>-<arch>/bin/dvt_mcp.sh connect'
claude mcp add --env DVT_HOME='path/to/dvt_home' --transport stdio dvt -- /bin/bash -c '$DVT_HOME/bin/dvt_mcp.sh connect'
Note
The methods above will enable access to the MCP Server only for the current DVT project. If you want to enable the MCP Server for all projects, either add the above server configuration in the ~/.claude.json file or use the claude mcp add --scope user <other_args> command.
After creating the JSON file (or using the claude mcp add command), follow these steps:
Open the Claude Code chat and use the /Manage MCP Server command.
Select Continue in Terminal.
When prompted, enable the MCP Server.
Select Refresh and continue in the Claude Code chat.
Reload the VSCode window to apply changes.
Note
Mainstream MCP hosts limit the environment of the MCP Server subprocess. Ensure that DVT_HOME and other necessary environment variables are properly set in the configuration.