Cline
=====

To configure the MCP Server in `Cline's VS Code Extension <https://cline.bot/>`_, go to :menuselection:`Cline Activity --> MCP Servers --> Configure MCP Servers`, and add the following configuration.

.. code-block:: json
    :caption: When using DVT IDE VS Code extension from marketplace:
    
    {
        "mcpServers": {
            "dvt": {
                "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"
                }
            }
        }
    }


.. code-block:: json
    :caption: When using DVT IDE VSCodium from a kit distribution:
    
    {
        "mcpServers": {
            "dvt": {
                "command": "/bin/bash",
                "args": [
                    "-c",
                    "$DVT_HOME/bin/dvt_mcp.sh connect"
                ],
                "env": {
                    "DVT_HOME": "path/to/dvt_home"
                }
            }
        }
    }


.. 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.

