1. Conduid
  2. Developer Tools
  3. Spector.js
MCP server · Developer Tools

Spector.js

Explore and Troubleshoot your WebGL scenes with ease.

79Good

Scored 21 hours ago · breakdown

About Spector.js

Spector.js is an MCP server published by BabylonJS in the Developer Tools category: explore and Troubleshoot your WebGL scenes with ease. Conduid read 13 tools from its source: capture_frame, get_command_details, get_console_logs, get_context_info, get_draw_calls, get_shaders and 7 more. No package is published for it, so it installs from a source checkout.

The repository has 1.6K stars and 193 forks, is licensed MIT, and its last commit was on 13 Nov 2026. The latest release is v0.9.33 (14 Sep 2026): Improve shader debugging with source links, compiler diagnostics, and parser-backed formatting Add texture inspection and capture comparison tools Add source map support… It follows v0.9.27 (26 Sep 2021), and the 5 most recent releases go back to v0.9.22 (11 Feb 2021). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include 3d, debug, debugger, inspector, webgl and webgl2.

Install

From source
git clone https://github.com/BabylonJS/Spector.js

Tools (13)

capture_frameCapture a single WebGL frame using Spector.js. Returns a summary including command count, draw calls, programs, and errors. Works on any WebGL website.
ParameterTypeDescription
quickCapturebooleanIf true, skips thumbnail generation for faster capture
get_command_detailsGet full WebGL state and details for a specific command by its ID (from get_draw_calls). Includes GL state, bound textures, blend/depth settings, etc.
ParameterTypeDescription
commandId *numberThe command ID from the capture (see get_draw_calls)
get_console_logsGet browser console messages (errors, warnings, logs) from the loaded page. Useful for detecting JavaScript errors or WebGL warnings.
ParameterTypeDescription
clearbooleanClear the log buffer after reading
levelstringFilter by log level
get_context_infoGet WebGL context information including version, extensions, capabilities, and renderer details.
get_draw_callsList all draw calls and clear commands from the last captured frame. Each entry includes the command ID, name, arguments, and status.
get_shadersGet shader program source code (vertex + fragment) from the last capture. Optionally filter by program index.
ParameterTypeDescription
programIndexnumberSpecific program index to retrieve. Omit to get all programs.
get_texturesList textures uploaded during the captured frame, including dimensions, format, and type.
get_webgl_stateCompare initial and final WebGL state for the captured frame. Shows properties that changed during the frame.
list_canvasesList all canvas elements on the page with their WebGL context info. Use this when a page has multiple canvases to find the right one to debug.
load_playgroundLoad a Babylon.js Playground scene by snippet ID. Returns the playground source code and a screenshot. Convenience shortcut — you can also use load_url with the full playground URL.
ParameterTypeDescription
snippetId *stringPlayground snippet ID, e.g. 'ABC123' or 'ABC123#5' for a specific revision
load_urlNavigate to any URL and prepare for WebGL debugging. Injects Spector.js for frame capture. Works with any WebGL site (Three.js, Babylon.js, PlayCanvas, raw WebGL, etc.).
ParameterTypeDescription
url *stringThe URL to navigate to (e.g. 'https://threejs.org/examples/#webgl_animation_keyframes')
select_canvasSelect which canvas to target for capture and inspection. Defaults to canvas #0. Use list_canvases to see available canvases.
ParameterTypeDescription
index *numberCanvas index (from list_canvases)
take_screenshotTake a screenshot of the current WebGL canvas.

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json and mcp/package-lock.json.
  • !No dynamic code executionScanned 235 source files and found 3 calls to eval or shell execution, in sample/assets/js/babylon.max.js:344, sample/assets/js/babylon.objFileLoader.js:115 and sample/assets/js/sylvester.js:1. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdiomcp/src/index.ts:9
Starts other programs
No calls that start other programs
Outbound network calls
1 callmcp/src/browser-manager.ts:216
Writes or deletes files
4 callstools/bundle-dts.js:107, tools/bundle-dts.js:108, tools/copy.js:13
Lockfile
package-lock.json and mcp/package-lock.json

Pattern matches on the source text of 235 files: places to read, not proof of what the code does at run time.

Releases

v0.9.33Spector.js v0.9.33 · 14 Sep 2026Highlights Improve shader debugging with source links, compiler diagnostics, and parser-backed formatting Add texture inspection and capture comparison tools Add source map support in stack traces and GL function parameter names Add…
v0.9.27v0.9.27 · 26 Sep 2021Fix Compressed textures gathered sizes
v0.9.26v0.9.26 · 2 Jul 2021Add support for SRGB textures capture.
v0.9.25v0.9.25 · 8 Jun 2021Fix Drag and Drop captures in the main extension popup
v0.9.22v0.9.22 · 11 Feb 2021Display elementArrayBuffer in capture state

README

The repository's README runs to about 1.6K words, fetched 5 days ago. The original in the repository is authoritative.

Read full README
Questions

About Spector.js

How do I install Spector.js?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Spector.js safe to use with an AI agent?

Its trust score is 79 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 235 source files found that it serves MCP over stdio, makes outbound network calls (1 call) and writes or deletes files (4 calls). Its dependencies are pinned by package-lock.json and mcp/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Spector.js still maintained?

Yes — the latest release is v0.9.33 (14 Sep 2026), and the last commit was 19 days ago. The repository has 1.6K stars and 7 open issues.

What tools does Spector.js provide?

Conduid read 13 tools from the source: capture_frame, get_command_details, get_console_logs, get_context_info, get_draw_calls, get_shaders, get_textures, get_webgl_state and 5 more. 7 of them publish their parameters, listed under Tools above.

What license is Spector.js released under?

The repository declares the MIT license. That applies to the latest release, v0.9.33, as well.