Metal GPU Trace

v0.33.0
io.github.partprogramming09/metal-gpu-trace Checked 3 days ago Published 8 days ago

Measure Wine and macOS GPU use on Apple silicon (Metal System Trace) and Windows (PresentMon)

Values you need

VariableWhat it is
METAL_TRACE_OUToptional Absolute path of the directory where recordings go
METAL_TRACE_WINEoptional Wine directory holding bin/wine, used when a recording names none

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add metal-gpu-trace -- uvx metal-gpu-trace==0.33.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "metal-gpu-trace": {
      "args": [
        "metal-gpu-trace==0.33.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "metal-gpu-trace": {
      "args": [
        "metal-gpu-trace==0.33.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "metal-gpu-trace": {
      "args": [
        "metal-gpu-trace==0.33.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.metal-gpu-trace]
command = "uvx"
args = ["metal-gpu-trace==0.33.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: perf_record, perf_baseline_record, perf_sweep, perf_ab, perf_cold_warm, perf_attach, project_info, perf_runs, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json