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",
                "$HOME/.dvt/bin/dvt_env exec dvt_mcp.sh connect"
            ]
        }
    }
}
{
    "mcpServers": {
        "dvt": {
            "type": "stdio",
            "command": "cmd",
            "args": [
                "/c",
                "%UserProfile%/.dvt/bin/dvt_env.exe exec dvt_mcp.bat connect"
            ]
        }
    }
}

Alternatively, you can configure the MCP Server using Claude Code CLI:

claude mcp add --transport stdio dvt -- /bin/bash -c '$HOME/.dvt/bin/dvt_env exec dvt_mcp.sh connect'
claude mcp add --transport stdio dvt -- cmd /c '%UserProfile%/.dvt/bin/dvt_env.exe exec dvt_mcp.bat 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:

  1. Open the Claude Code chat and start a new session.

  2. Use the /mcp (MCP Servers) command.

  3. The DVT MCP Server should be marked Connected with a green indicator