shade-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SHADE_BACKEND | No | Default rendering backend (webgl2 or webgpu). | webgl2 |
| OPENAI_API_KEY | No | Fallback AI provider. | |
| SHADE_AI_MODEL | No | Model used by the AI-powered tools; defaults to the provider default. | |
| SHADE_HEADLESS | No | Set to 0 to watch the browser window. | 1 |
| SHADE_TIMEOUT_MS | No | Ceiling for every browser and page operation. | 120000 |
| ANTHROPIC_API_KEY | No | Required for AI-powered tools (vision, analysis). | |
| SHADE_EFFECTS_DIR | No | Path to the effects library. | <project root>/effects |
| SHADE_VIEWER_PATH | No | Path within the viewer to open. | / |
| SHADE_VIEWER_PORT | No | Port for the local viewer server; 0 means OS-assigned. | 0 |
| SHADE_VIEWER_ROOT | No | Directory served as the viewer. | <project root>/viewer |
| SHADE_MAX_BROWSERS | No | Concurrent browser sessions. | 1 |
| SHADE_PROJECT_ROOT | No | Project root, used for relative paths and AI key lookup. | cwd |
| SHADE_AI_TIMEOUT_MS | No | Ceiling for a single AI provider request. | 120000 |
| SHADE_GLOBALS_PREFIX | No | Prefix of the viewer's window globals. | __shade |
| SHADE_DSL_ASSETS_BASE | No | Root-relative or HTTPS Noisemaker asset base for runDslProgram. | /shaders |
| SHADE_DSL_USE_BUNDLES | No | Set true when DSL effects load from bundled assets (Portable's CDN). | false |
| SHADE_DSL_RENDERER_MODULE | No | Root-relative or HTTPS Noisemaker module exporting CanvasRenderer and compile for runDslProgram. | /shaders/src/index.js |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| compileEffectC | Compile a shader effect. Return diagnostics for each pass. Use comma-separated effect IDs for a batch. |
| renderEffectFrameB | Render one frame. Compute mean RGB, variance, and monochrome/blank detection. Optionally capture a PNG. |
| describeEffectFrameC | Render a frame. Analyze the image with AI vision, using the prompt that the user supplies. |
| benchmarkEffectFPSC | Measure achieved FPS, jitter, and frame timing statistics against a target frame rate. |
| testUniformResponsivenessB | For each uniform control the tool finds two values that differ from the value the loaded program set: a range control's farther 25%/75% point and its 38.2% point, a dropdown's other choices, a boolean's opposite, or a vector moved a quarter of its range. It first opens the control's ui.enabledBy gate by setting the gate params (enabled_with). It captures the output twice (the second against the first measures how much the output changes between renders on its own), then sets each value and compares at paused t=0 and t=0.37. A control responds when the luma, a per-channel mean or the per-pixel mean (64x64 grid) changes by more than 0.002, or more than 0.05% of all pixels change by more than 16/255 (strong_fraction); when the output changes on its own, only well beyond that change. A control that does not respond is retried with one other control moved (context). Results per uniform: pass, fail, error, gated (a compile-time define or a gate that cannot be opened), unstable (no verdict: the output changes between renders by more than the thresholds), or untested (no other value can be set at run time). Status is ok when at least one control was measured and every measured control responded; error when one could not be measured or got no verdict (unstable); otherwise fail when one did not respond; skipped when no control could be set at run time (every control gated or untested). Async overlays are awaited, up to the session timeout (settle_timed_out). |
| testNoPassthroughA | Check that a filter effect modifies the input it consumes. Compares the rendered output with the bound input texture (skipping a feedback read of the effect's own output) at paused t=0 and t=0.37: similarity (mean RGB difference on a 64x64 grid), changed_fraction (grid pixels changed by more than 2/255) and strong_fraction (all pixels changed by more than 16/255). Output is unchanged when similarity and changed_fraction are at most 0.01 and strong_fraction at most 0.0005 at both times. A filter unchanged at its defaults is measured again with its ungated controls moved (identity_at_defaults, varied); only a filter unchanged both ways is a passthrough. |
| testPixelParityA | Render with both WebGL2 and WebGPU. Compare the output pixel by pixel within the epsilon tolerance. |
| runDslProgramB | Compile Noisemaker DSL with optional authored Portable packages in a fresh renderer and return a multi-frame, per-surface PNG grid with metrics. |
| getProgramSeedA | Read a Noisemaker DSL program's seed: the value of its seed directive, or null when it has none (it then draws from 0). It reads the directive without compiling or checking the program. Needs a Noisemaker 2 renderer. |
| setProgramSeedA | Set a Noisemaker DSL program's seed and return the seed and the program with its seed directive written or replaced. The whole program comes back as the engine's unparser writes it: comments before the search directive are dropped, and literal values are written as compiled, while random calls stay as written. Built-in effects only. Needs a Noisemaker 2 renderer. |
| reseedProgramB | Give a Noisemaker DSL program a fresh random seed and return it as setProgramSeed does. Built-in effects only. Needs a Noisemaker 2 renderer. |
| checkEffectStructureC | Detect these effect issues:
|
| checkAlgEquivB | Compare the semantics of GLSL/WGSL pairs with AI. Flag divergent algorithms. Ignore syntax differences. |
| compareShadersC | Compare shader structure: function names, uniform declarations, and line counts. This tool does not require AI. |
| analyzeBranchingB | Analyze unnecessary shader branching with AI. Return optimization suggestions. |
| searchEffectsA | Search the effect library by concept, tag, algorithm, or visual style. The tool expands the query with synonyms. |
| analyzeEffectA | Return the full definition, shader source, uniforms, and passes for an effect. |
| searchShaderSourceA | Search GLSL source code across all effects with a regular expression. Return matching snippets with context. |
| searchShaderKnowledgeB | Search curated shader documentation by meaning: DSL grammar, GLSL techniques, effect patterns, common errors, and the shader-craft references (workflow, subject routing, SDF modeling, noise, terrain, water, rendering pipeline, library functions, recreating a reference video). |
| searchShaderLibraryB | Search the local shader-craft library for GLSL or WGSL building blocks, signatures and summaries. |
| checkShaderA | Advisory GLSL/WGSL source findings for Noisemaker effects. Findings never block compilation or change a file. |
| bundleShaderA | Inline only the shader library symbols used by a program and their dependencies, with upstream and technique credits. Return source; write back only with explicit write: true. |
| listEffectsB | List all effects, optionally filtered by namespace. Pass |
| generateManifestB | Scan the effects directory to rebuild the effect manifest. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 24 tools
The set has clear clusters (search, check/analyze, seed, compile/render, test), but within clusters there is real overlap: searchShaderSource vs searchShaderLibrary vs searchEffects vs searchShaderKnowledge are four similarly named searches, and checkShader vs checkEffectStructure vs checkAlgEquiv vs compareShaders vs analyzeBranching/analyzeEffect are easy to confuse. The detailed descriptions mitigate this, but an agent could still misselect between searchShaderLibrary and searchEffects or between checkShader and checkEffectStructure.
All tools are camelCase and overwhelmingly verb-leading (search*, check*, get/set*, compile*, run*, analyze*, test*, render*, describe*, bundle*, list*, generate*). A few names are verb-only or noun-heavy (reseedProgram, compareShaders), and the verb choice varies across similar actions (check/compare/analyze), but the pattern is predictable overall.
24 tools is on the heavy side for a shader-authoring server and sits in the '16-25 feels heavy' band. Most tools do map to distinct operations (search, seed, compile, run, render, test, manifest, bundle), so it is defensible, but the surface is broad enough to be borderline.
Coverage is strong: search/read, seed manipulation, compile, run, render, analysis, regression testing, manifest rebuild, and bundling are all present. The main gap is authoring: there is no explicit create/edit/delete effect or write-shader-source tool (bundleShader and setProgramSeed only write as side effects), which leaves a workflow dead end for creating new effects.