Skip to content
VS Code

mcp mat for VS Code

io.github.codelipenghui/mcp-mat

Headless Eclipse MAT MCP server for Java heap dump analysis

client:VS Code transport:stdio runtime:npm

Install mcp mat in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mat-home",
      "description": "MAT_HOME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "java-path",
      "description": "JAVA_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mat-xmx-mb",
      "description": "MAT_XMX_MB",
      "password": true
    }
  ],
  "servers": {
    "mcp-mat": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-mat"
      ],
      "env": {
        "MAT_HOME": "${input:mat-home}",
        "JAVA_PATH": "${input:java-path}",
        "MAT_XMX_MB": "${input:mat-xmx-mb}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp mat in other clients