MCP Installation in VSCode

Please see Xygeni CLI Prerequisites before installing.

  1. Install and configure Xygeni VSCode Plugin

  2. Login in Copilot using Github

  3. Change Copilot mode to Agent

  4. Create mcp.json file

Create the following file on this path:

home/{USER}/.config/Code/User

Change {USER} and {TOKEN} with your username and a Xygeni token

{
  "servers": {
    "xygeni-mcp-server": {
      "timeout": 60,
      "type": "stdio",
      "command": "java",
      "args": [
        "-jar",
        "/home/{USER}/.vscode/extensions/xygeni-security.xygeni-scanner-vscode-1.2.6/.xygeni-mcp/xygeni-mcp-server.jar",
        "--scannerPath=/home/{USER}/.vscode/extensions/xygeni-security.xygeni-scanner-vscode-1.2.6/.xygeni"
      ],
      "env": {
        "JAVA_HOME": "/home/{USER}/.sdkman/candidates/java/current",
        "XYGENI_URL": "https://api.xygeni.io",
        "XYGENI_TOKEN": "{TOKEN}"
      }
    }
  }
}
  1. Restart VSCode

  2. MCP is installed, but it is usually disabled by default. For enable it, go to configure tools:

  1. Open xygeni-mcp-server and select all tools

  1. Now, if you ask copilot to analyze or scan your code for vulnerabilities, he will ask for permission to launch xygeni app.

Last updated