Use MCP Server in GitHub Copilot

GitHub Copilot is an AI-powered coding assistant available for both VS Code and Eclipse. It supports connections to MCP servers as a way to extend its capabilities with custom tools and data sources.

Use MCP Server in VS Code GitHub Copilot

The tools provided by the DVT MCP Server are automatically registered within the GitHub Copilot chat, eliminating the need for any manual configuration. You can immediately start using the tools from DVT within the GitHub Copilot chat.

For more information, please refer to the VS Code GitHub Copilot official documentation.

Use MCP Server in Eclipse GitHub Copilot

To configure the DVT MCP Server in Eclipse GitHub Copilot, go to Window ‣ Preferences, select the GitHub Copilot ‣ Model Context Protocol (MCP) preference page, and add the following MCP Server configuration.

{
    "servers": {
        "dvt": {
            "type": "stdio",
            "command": "/bin/bash",
            "args" : [
                "-c",
                "$DVT_HOME/bin/dvt_mcp.sh connect"
            ],
            "env": {
                "DVT_HOME": "/path/to/DVT_HOME"
            }
        }
    }
}

Note

For security reasons, some MCP hosts do not propagate the full environment to spawned MCP servers. Ensure that DVT_HOME and other necessary environment variables are properly set in the configuration above.