GitHub Copilot
==============

To configure the MCP Server in Eclipse GitHub Copilot, go to :menuselection:`Window --> Preferences`, select the :menuselection:`GitHub Copilot --> Model Context Protocol (MCP)` preference page, and add the following configuration.

.. code-block:: json
    
    {
        "servers": {
            "dvt": {
                "type": "stdio",
                "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.
