Skip to main content
Glama
lpenguin
by lpenguin

WebGPU Inspector MCP

OpenCode / Model Context Protocol (MCP) 서버로, WebGPU Inspector를 위한 것입니다.

AI 어시스턴트가 Chrome/Chromium을 구동하여 실시간 WebGPU 프레임을 캡처하고, 프레임 성능을 프로파일링하며, WGSL 셰이더, 버퍼, 텍스처를 검사하고, WebGPU 렌더링 문제를 진단할 수 있게 해줍니다.

기능

  • 자동 브라우저 계측: CDP를 통해 Chromium/Chrome/Edge를 실행하고 페이지 스크립트가 실행되기 전에 모든 페이지에 WebGPU Inspector를 주입합니다.

  • 21개의 MCP 도구: 브라우저 제어, 프레임 캡처, GPU 타임스탬프 프로파일링, 실시간 버퍼/텍스처 읽기, 드로우 상태 비교, 셰이더 검사 도구를 제공합니다.

  • 캡처 파일 분석: 브라우저를 실행하지 않고 .wgpuc 바이너리 파일 또는 .json 녹화 파일을 로드하고 검사할 수 있습니다.

Related MCP server: Chrome DevTools MCP

설치

git clone git@github.com:lpenguin/webgpu_inspector_mcp.git
cd webgpu_inspector_mcp
npm install

MCP 구성

서버를 opencode.json(또는 Claude 데스크톱 구성)에 추가하세요:

{
  "mcp": {
    "webgpu-inspector": {
      "type": "local",
      "command": ["node", "/path/to/webgpu_inspector_mcp/index.js"],
      "enabled": true,
      "environment": {
        "WEBGPU_BRIDGE_PORT": "9690",
        "WEBGPU_BRIDGE_CAPTURES_DIR": "/path/to/webgpu_inspector_mcp/captures"
      }
    }
  }
}

환경 변수

모든 환경 변수는 선택 사항입니다:

변수

기본값

설명

WEBGPU_BRIDGE_CAPTURES_DIR

<cwd>/captures

업로드된 .wgpuc 프레임 캡처가 저장되는 디렉터리입니다. 설정하지 않으면 현재 작업 디렉터리에 captures/ 폴더를 생성하는 것이 기본값입니다. 명시적인 절대 경로를 설정하면 모든 캡처를 한 곳에 보관할 수 있습니다.

WEBGPU_BRIDGE_PORT

9690

계측된 페이지가 연결하는 로컬 HTTP + WebSocket 브리지의 포트입니다. 기본 포트가 다른 세션에서 이미 사용 중이면 브리지는 OS가 할당한 사용 가능한 포트로 자동 대체됩니다.

WEBGPU_BRIDGE_HOST

127.0.0.1

로컬 브리지 서버의 바인드 주소입니다.

WEBGPU_BRIDGE_CHROME

(자동 감지)

Google Chrome, Chromium 또는 Microsoft Edge의 사용자 지정 바이너리 경로입니다. 생략하면 표준 시스템 경로를 자동 감지합니다.

WEBGPU_BRIDGE_TOKEN

(없음)

계측된 페이지가 브리지에 연결하는 데 필요한 선택적 인증 토큰입니다.

WEBGPU_INSPECTOR_SCRIPT

(번들됨)

사용자 지정 webgpu_inspector.js 주입 스크립트의 경로 또는 URL입니다. 기본값은 번들된 파일입니다.

F
license - not found
A
quality
B
maintenance

Maintenance

0Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI coding assistants to control and inspect a live Chrome browser for automation, debugging, performance analysis, network monitoring, and DOM interaction through Chrome DevTools Protocol.
    3,288,165
    Apache 2.0
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI coding assistants to control and inspect a live Chrome browser for automated debugging, performance analysis, and web interaction. It leverages Puppeteer and Chrome DevTools to provide capabilities like network monitoring, console logging, and automated browser actions.

View all related MCP servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lpenguin/webgpu_inspector_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server