# Continue without MCP

Use this fallback when Mapshroom is missing from the client's tools/catalog, installation or authentication settings are unavailable, a browser verification blocks setup, or an MCP call fails. For a requested shader, reproduce the MCP experience: **render the requested shader in a native Canvas with controls and an Open on Mapshroom button carrying that same shader**. Use the public renderer without installing MCP. Do not stop at a code block or installation advice when the host can render HTML/WebGL. Explain briefly that this is a standalone preview; do not claim an MCP connection was installed.

## Read the public instructions

These documents require neither an installed connector nor a Mapshroom account:

- Product, inputs and photo → depth → shader workflow: https://mapshroom.dev/mcp/context.md
- Exact GLSL contract and a complete working example: https://mapshroom.dev/mcp/shader-spec.md
- **Canvas recipe, shader structure and prompt**: https://mapshroom.dev/mcp/canvas.md
- Standalone canvas generator (download and run without MCP): https://mapshroom.dev/mcp/canvas.mjs
- Self-contained HTML template for native Canvas/artifact hosts: https://mapshroom.dev/mcp/canvas-template.html
- Client setup: https://mapshroom.dev/mcp/agents.md
- This fallback: https://mapshroom.dev/mcp/fallback.md

Briefly explain the observed limitation. If setup was requested, give instructions appropriate to the user's actual client and link the setup guide. A Codex CLI command does not configure ChatGPT on iOS. Do not assert that Mapshroom is unavailable online merely because it is absent from a catalog. If the user only asked for setup, explain the fallback; do not invent an unrelated shader request.

## Deliver the requested effect

1. Read the public context and shader specification when MCP tools are unavailable. Establish whether the input is a photo, grayscale depth, mask or a procedural canvas. If essential input information is missing, ask one focused question or clearly label a demonstration assumption. Never describe photo brightness as estimated depth.
2. Generate complete GLSL including NAME and MAPSHROOM PROMPT comments, 3–6 annotated controls and `processColor`. Follow the structure in the Canvas guide. The specification's “only GLSL” instruction applies to this shader body, not to the full response or Canvas. For a generic “produce a shader” request, create a labeled procedural example on neutral white; do not block on choosing an image.
3. **Create and render a Canvas.** Follow https://mapshroom.dev/mcp/canvas.md. Download `canvas.mjs` and call `createShaderCanvas` with the actual generated shader, or fill the self-contained `canvas-template.html`. Render the resulting HTML using the host's native Canvas/artifact/HTML capability. It uses the same WebGL renderer, controls and import encoder as the real MCP. Keep **Open on Mapshroom** (a direct external import link) and **Copy** (GLSL with current control values). Preserve one shader source and the current uniforms for preview and import. Do not replace the button with another chat prompt or the bare homepage.
4. If the host cannot render HTML/WebGL, provide the generator's actual `fallbackPreviewUrl` and `importUrl` as clickable links for this shader. Only if generating a Canvas and payload-bearing links is also blocked, provide the complete shader in one copyable `glsl` block, **Open Mapshroom: https://mapshroom.dev/** and the manual steps below. Explain the actual limitation. Never fabricate encoded URLs or present `/ai/` without a shader, a stock demo, a screenshot or a file attachment as an interactive preview of newly generated code.
5. Explain the expected input, useful controls and any unverified behavior briefly. Check the rendered canvas for compile errors when the host allows inspection. Neither code generation nor structural validation proves GPU rendering, connector installation or import success. A depth map or local image used in the preview must be loaded separately in Mapshroom. Do not repeatedly attempt blocked installation or lead a mobile shader response with desktop CLI commands.

## Paste and preview in Mapshroom

1. Open https://mapshroom.dev/. Create a new shader step to keep the current effect, or select the step the user intends to replace.
2. Copy the complete GLSL. In the shader chat panel choose **Load from clipboard (+) → Paste shader**. This applies and compiles the code. If clipboard access is blocked, open **Code**, select all the editor text, paste the GLSL, then use **Recompile current code** (the reload icon).
3. Select the matching input. For a depth-dependent effect, choose the shader step's **Load Asset (This Shader Only) → Import image → Use selection** and keep **Use step asset as shader input** enabled. Use a grayscale depth map, not a colored visualization. A neutral white input cannot show depth contours. The sample https://mapshroom.dev/mcp/demo-depth.png is synthetic: white near, black far. Images must be loaded separately; copying GLSL or opening a shader link does not transfer them.
4. Inspect the render, adjust the controls and save the project. If compilation fails, copy the displayed error back to the assistant for a corrected complete shader. Do not claim GPU validation or successful import before it has happened.

If the public documents also cannot be read, state that limitation. Provide code only to the extent supported by the specification already available in the conversation, mark it unverified, and still give the Mapshroom and guide links. Do not invent tools or undocumented shader features.
