MAPSHROOM / MODEL CONTEXT PROTOCOL

La tua AI.
I tuoi shader.

Descrivi un effetto. Guardalo prendere forma. Portalo nel tuo mapping. Collega il tuo assistente a Mapshroom con un indirizzo pubblico.

01 / LA TUA IDEA

«Crea onde di luce lente, con colori che posso regolare.»

02 / MAPSHROOM MCPmapshroom.dev/api/mcpHTTPS · Streamable HTTP
03 / IL TUO WORKSPACE

Anteprima → Open on Mapshroom

Shader, controlli e link pronto da aprire.
01CollegaAggiungi l’URL nella tua app AI.
02CreaChiedi un effetto, poi regola i controlli.
03ApriPorta lo shader nel workspace.
01

UN INDIRIZZO PUBBLICO

Collega la tua app.

MCP è il protocollo con cui un assistente usa gli strumenti di Mapshroom. Il server remoto è online: funziona anche quando il computer su cui hai installato il server locale è spento. Aggiungilo una volta nelle impostazioni MCP dell’app che vuoi usare.

URL del server remoto
https://mapshroom.dev/api/mcp

Trasporto: Streamable HTTP. Autenticazione: nessuna. Non servono Node.js o un file da scaricare per la connessione remota. L’accesso e le funzionalità dell’app AI dipendono dal suo piano e dalle impostazioni del workspace.

Cursor

Unisci questa voce a ~/.cursor/mcp.json per tutte le tue cartelle, oppure a .cursor/mcp.json nel progetto. Conserva le altre voci e riavvia la connessione MCP. Per Cursor sul web, aggiungi lo stesso URL nelle impostazioni delle integrazioni remote.

mcp.json
{
  "mcpServers": {
    "mapshroom": {
      "url": "https://mapshroom.dev/api/mcp"
    }
  }
}
Documentazione Cursor ↗
Codex

Aggiungi un server HTTP nelle impostazioni MCP, oppure esegui questo comando. Se esiste già un server locale chiamato mapshroom, usa un nome diverso per mantenerli entrambi.

CLI
codex mcp add mapshroom-remote --url https://mapshroom.dev/api/mcp
Documentazione Codex ↗
Claude Code
CLI
claude mcp add --transport http mapshroom https://mapshroom.dev/api/mcp
Documentazione Claude Code ↗
VS Code

Usa MCP: Add Server e scegli HTTP, oppure unisci questa configurazione a .vscode/mcp.json.

.vscode/mcp.json
{
  "servers": {
    "mapshroom": {
      "type": "http",
      "url": "https://mapshroom.dev/api/mcp"
    }
  }
}
Documentazione VS Code ↗
ChatGPT, Claude & altre app

Se l’app consente un connettore MCP personalizzato, inserisci l’URL remoto e scegli nessuna autenticazione. Abilita il connettore nella conversazione. La presenza dell’app su un telefono non garantisce il supporto ai connettori personalizzati: controlla le funzioni del client e del tuo account. Se mancano, usa un client compatibile e apri sul telefono il link allo shader.

ChatGPT ↗ · Claude ↗

02

UN MESSAGGIO DA COPIARE

Fallo configurare al tuo agente.

Invia questo messaggio al tuo agente. Può leggere le istruzioni pubbliche senza eseguire JavaScript. Se non ha accesso alle impostazioni, ti guiderà nella configurazione.

Messaggio per il tuo agente
Leggi https://mapshroom.dev/mcp/agents.md e configura Mapshroom MCP in questa app usando https://mapshroom.dev/api/mcp (Streamable HTTP, nessuna autenticazione). Conserva gli altri server configurati. Verifica initialize, tools/list, get_mapshroom_context e get_shader_spec. Poi crea uno shader con anteprima e un link per aprirlo in Mapshroom.

Se Mapshroom MCP non è disponibile o non puoi installarlo, continua con una Canvas interattiva che riproduca lo stesso flusso: shader, controlli e pulsante Open on Mapshroom. Crea l’effetto che ti ho chiesto. Non fermarti al codice GLSL o ai comandi di installazione. Spiega brevemente che è una preview autonoma, senza dichiarare un MCP installato.

Read https://mapshroom.dev/mcp/canvas.md for the no-MCP Canvas recipe. Download https://mapshroom.dev/mcp/canvas.mjs and call createShaderCanvas({ code, uniforms, shaderId, previewInput: "neutral" }). Render result.inlineHtml with your native Canvas/artifact/HTML capability. If you cannot execute the module, fill https://mapshroom.dev/mcp/canvas-template.html as documented in the recipe. If shell downloads are blocked, canvas.md also includes the complete HTML template for text-only retrieval. No MCP tool calls or installation are needed.

Use the exact generated GLSL for the canvas and its Open on Mapshroom button. Keep the direct external import link and Copy action from the template. Slider changes must update the import link and copied GLSL. The button must open Mapshroom with this shader and current values, not just the homepage or another chat prompt.

Input is one texture: a photo, grayscale depth, mask or neutral white. If I only asked to produce a shader, choose a procedural example on neutral white and label that choice. For depth/image effects, explain which image to select in the preview and then separately in Mapshroom. More context: https://mapshroom.dev/mcp/context.md.

REQUIRED SHADER STRUCTURE (replace the example effect and prompt record):
```glsl
// NAME: Short Effect Name
// MAPSHROOM PROMPT: "REPLACE WITH THE EXACT USER REQUEST"
// MAPSHROOM CONTRACT: {"version":1,"role":"legacy-render","inputs":[{"slot":"color","semantic":"color","required":true,"space":"source-uv","accepted":[{"encoding":"rgba-color","version":1,"colorSpace":"srgb","filtering":"linear","alpha":"coverage"}],"defaultVariant":"original"}],"output":"color","lighting":"legacy-owned","photoShadows":"not-applicable"}
uniform float speed; // @min -2.0 @max 2.0 @default 0.25
uniform float amount; // @min 0.0 @max 2.0 @default 1.0
uniform float scale; // @min 0.25 @max 8.0 @default 2.0

vec4 processColor(sampler2D tex, vec2 uv, float time, vec2 resolution) {
    vec4 source = texture(tex, uv);
    // Replace this example with the requested effect and use every declared control.
    float modulation = 1.0 + sin(time * speed + uv.x * scale) * 0.1 * amount;
    return vec4(source.rgb * modulation, source.a);
}
```

SHADER BODY CONTRACT (the GLSL-only rule below applies inside the shader, not to your full response):
Return one complete replacement fragment shader.
The first non-empty line must be: // NAME: <Short Name>
The second non-empty line must be: // MAPSHROOM PROMPT: "<the exact user request as a JSON string>"
All visual logic must live inside: vec4 processColor(sampler2D tex, vec2 uv, float time, vec2 resolution)
Expose 3 to 6 meaningful effect controls as custom uniforms so Mapshroom automatically creates controls. Convert adjustable concepts in the request into uniforms instead of hardcoded constants: numbers become float/int sliders, colors become vec3 color controls, and switches become bool controls
If the user does not name adjustable parameters, infer the 3 to 6 most useful creative controls for the requested effect
Use only supported custom uniform types: float, int, vec3, bool
Put every uniform on its own line and keep its UI metadata on that same line after //
Every float or int must include: @min <number> @max <number> @default <number>
Every vec3 must include: @default <r>,<g>,<b>; every bool must include: @default true|false
The shader is invalid if it has fewer than 3 correctly annotated custom uniforms. Before returning, count the declarations and verify their metadata
Preserve useful uniforms from the current shader unless the user explicitly asks to remove them
Use GLSL ES 3.00 syntax for WebGL 2 and sample textures with texture()
Do not include #version 300 es because Mapshroom injects the version and program wrapper
Do not declare void main()
Do not write to gl_FragColor in the generated body
Do not include explanations outside the GLSL response
Semantic input ABI v1:
After NAME and MAPSHROOM PROMPT, include // MAPSHROOM CONTRACT: <single-line JSON>.
Preserve the current contract and named slots when editing unless the request changes the actual input requirements. Declare every input the code really reads. Metadata never starts generation. No inference or normal fitting inside GLSL.
The first input is the processColor tex argument. Additional slots use uniform sampler2D u_input_<slot>, declared in GLSL. All source inputs share UV and crop.
Canonical codec formats (copy exactly, including profiles and normal conventions): {"color":{"encoding":"rgba-color","version":1,"colorSpace":"srgb","filtering":"linear","alpha":"coverage"},"regionPieces":{"encoding":"mapshroom.regions.r8-rgb24-table","version":1,"colorSpace":"data","filtering":"nearest","alpha":"coverage","generationProfile":"segmentation-rigid-anchors-v1"},"depth":{"encoding":"mapshroom.depth.gray-rgb-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage"},"normal":{"encoding":"mapshroom.normal.xyz-rgb-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","normalConvention":"mapshroom-normal-xyz-v1","generationProfile":"depth-smoothed-central-difference-v1"},"combinedDepth":{"encoding":"mapshroom.surface.oct-rg-depth-b-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","normalConvention":"mapshroom-tiles-v1","generationProfile":"tiles-plane-fit-v1"},"normalAtlas":{"encoding":"mapshroom.surface.depth-normal-atlas-2x2","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","normalConvention":"mapshroom-normal-xyz-v1","generationProfile":"depth-smoothed-central-difference-v1"},"sourceEdges":{"encoding":"mapshroom.edges.gray-rgb-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","generationProfile":"source-luminance-nms-v1"}}
Packed surface RG encodes upper-hemisphere oct normal, B depth, A coverage. Decode f=rg*2-1, n=normalize(vec3(f,1-abs(f.x)-abs(f.y))), then flip normal Y for geometry. XYZ normal and 2x2 atlas are different codecs. Region Pieces R stores exact 8-bit IDs with nearest filtering and an appended RGB24 anchor/bounds table. Never interpret colored segmentation palettes as IDs.
Use surface-render for a complete 3D effect. Shared material/geometry modules are unsupported in V1. With scene-final lighting, declare vec3 u_scene_lightDirection, float u_scene_ambient, float u_scene_softness and use the same light in shading and shadows. No local moving light. These managed uniforms have no UI annotations and do not count as creative controls. X right, Y up in geometry, Z toward viewer. Preserve photographic shadows without inverse compensation.
Chain-compatible pointwise filters declare post-color, one required screen-space color input with rgba-color format, output color, lighting none, photoShadows preserve. Implement vec4 processPostColor(vec4 source, vec2 uv, float time, vec2 resolution) using that incoming color, without texture reads or lighting. Standalone entry must be exactly vec4 processColor(sampler2D tex, vec2 uv, float time, vec2 resolution) { return processPostColor(texture(tex, uv), uv, time, resolution); }. Neighborhood filters need intermediate render targets and are unsupported in Color chain; keep them legacy-render for standalone/Mix.
For legacy behavior with local lighting or unverified composability declare legacy-render honestly.
Default single-photo contract: {"version":1,"role":"legacy-render","inputs":[{"slot":"color","semantic":"color","required":true,"space":"source-uv","accepted":[{"encoding":"rgba-color","version":1,"colorSpace":"srgb","filtering":"linear","alpha":"coverage"}],"defaultVariant":"original"}],"output":"color","lighting":"legacy-owned","photoShadows":"not-applicable"}

DELIVERABLE: render the Canvas with the same shader, adjustable controls and Open on Mapshroom button. A printed HTML block, saved file or screenshot is not a rendered Canvas. Inspect compilation errors when the host allows it. If this host cannot render HTML/WebGL, provide the actual generated result.fallbackPreviewUrl and result.importUrl as clickable links. Only if generating the canvas and links is also blocked, give complete copyable GLSL, https://mapshroom.dev/ and the paste steps from https://mapshroom.dev/mcp/fallback.md. Explain the actual block without claiming installation, rendering or import succeeded.

Leggere una pagina o scrivere “usa Mapshroom” non installa automaticamente un MCP. Gli strumenti devono essere aggiunti e abilitati nel client.

03

DALL’IDEA ALLO SHADER

Crea, guarda, apri.

Prova questo prompt
Usa Mapshroom MCP. Leggi get_mapshroom_context e get_shader_spec, poi crea uno shader con onde luminose lente e controlli per velocità e intensità. Mostrami un’anteprima, poi dammi il link per aprirlo in Mapshroom.
  1. L’assistente legge il formato GLSL di Mapshroom e scrive lo shader.
  2. Se l’app supporta MCP Apps o HTML/WebGL, visualizza l’anteprima interattiva. Altrimenti restituisce un link all’anteprima nel browser.
  3. Regola i controlli e premi Open on Mapshroom. Il link contiene lo shader e i valori correnti; il rendering avviene sul dispositivo.
  4. Lo shader viene aggiunto al workspace nello stesso browser e profilo. Su un altro dispositivo si apre il suo workspace locale: i progetti non si sincronizzano tramite MCP.

SE IL COLLEGAMENTO NON RIESCE

Continua anche senza MCP.

Se il collegamento non riesce, chiedi una Canvas con lo shader, i controlli e il pulsante Open on Mapshroom. Il messaggio qui sotto include la struttura GLSL e le istruzioni per usare la stessa anteprima anche senza installare MCP.

  1. Descrivi l’effetto e indica l’input: foto, depth map, maschera o tela neutra. L’agente crea lo shader e lo mostra in una Canvas interattiva, quando la chat supporta HTML/WebGL.
  2. Regola i controlli e premi Open on Mapshroom. Il pulsante porta nel workspace lo stesso shader con i valori scelti. Copy copia il GLSL con quei valori.
  3. Se la chat non può mostrare una Canvas, apri il link generato per l’anteprima nel browser. Se anche i link non sono disponibili, copia il GLSL in Mapshroom con Load from clipboard (+) → Paste shader, oppure incollalo in Code e premi Recompile current code.
  4. Seleziona l’immagine o la depth map richiesta, controlla il risultato e regola i controlli. Se compare un errore di compilazione, copialo all’agente per correggere lo shader.
Messaggio per continuare senza MCP
Se Mapshroom MCP non è disponibile o non puoi installarlo, continua con una Canvas interattiva che riproduca lo stesso flusso: shader, controlli e pulsante Open on Mapshroom. Crea l’effetto che ti ho chiesto. Non fermarti al codice GLSL o ai comandi di installazione. Spiega brevemente che è una preview autonoma, senza dichiarare un MCP installato.

Read https://mapshroom.dev/mcp/canvas.md for the no-MCP Canvas recipe. Download https://mapshroom.dev/mcp/canvas.mjs and call createShaderCanvas({ code, uniforms, shaderId, previewInput: "neutral" }). Render result.inlineHtml with your native Canvas/artifact/HTML capability. If you cannot execute the module, fill https://mapshroom.dev/mcp/canvas-template.html as documented in the recipe. If shell downloads are blocked, canvas.md also includes the complete HTML template for text-only retrieval. No MCP tool calls or installation are needed.

Use the exact generated GLSL for the canvas and its Open on Mapshroom button. Keep the direct external import link and Copy action from the template. Slider changes must update the import link and copied GLSL. The button must open Mapshroom with this shader and current values, not just the homepage or another chat prompt.

Input is one texture: a photo, grayscale depth, mask or neutral white. If I only asked to produce a shader, choose a procedural example on neutral white and label that choice. For depth/image effects, explain which image to select in the preview and then separately in Mapshroom. More context: https://mapshroom.dev/mcp/context.md.

REQUIRED SHADER STRUCTURE (replace the example effect and prompt record):
```glsl
// NAME: Short Effect Name
// MAPSHROOM PROMPT: "REPLACE WITH THE EXACT USER REQUEST"
// MAPSHROOM CONTRACT: {"version":1,"role":"legacy-render","inputs":[{"slot":"color","semantic":"color","required":true,"space":"source-uv","accepted":[{"encoding":"rgba-color","version":1,"colorSpace":"srgb","filtering":"linear","alpha":"coverage"}],"defaultVariant":"original"}],"output":"color","lighting":"legacy-owned","photoShadows":"not-applicable"}
uniform float speed; // @min -2.0 @max 2.0 @default 0.25
uniform float amount; // @min 0.0 @max 2.0 @default 1.0
uniform float scale; // @min 0.25 @max 8.0 @default 2.0

vec4 processColor(sampler2D tex, vec2 uv, float time, vec2 resolution) {
    vec4 source = texture(tex, uv);
    // Replace this example with the requested effect and use every declared control.
    float modulation = 1.0 + sin(time * speed + uv.x * scale) * 0.1 * amount;
    return vec4(source.rgb * modulation, source.a);
}
```

SHADER BODY CONTRACT (the GLSL-only rule below applies inside the shader, not to your full response):
Return one complete replacement fragment shader.
The first non-empty line must be: // NAME: <Short Name>
The second non-empty line must be: // MAPSHROOM PROMPT: "<the exact user request as a JSON string>"
All visual logic must live inside: vec4 processColor(sampler2D tex, vec2 uv, float time, vec2 resolution)
Expose 3 to 6 meaningful effect controls as custom uniforms so Mapshroom automatically creates controls. Convert adjustable concepts in the request into uniforms instead of hardcoded constants: numbers become float/int sliders, colors become vec3 color controls, and switches become bool controls
If the user does not name adjustable parameters, infer the 3 to 6 most useful creative controls for the requested effect
Use only supported custom uniform types: float, int, vec3, bool
Put every uniform on its own line and keep its UI metadata on that same line after //
Every float or int must include: @min <number> @max <number> @default <number>
Every vec3 must include: @default <r>,<g>,<b>; every bool must include: @default true|false
The shader is invalid if it has fewer than 3 correctly annotated custom uniforms. Before returning, count the declarations and verify their metadata
Preserve useful uniforms from the current shader unless the user explicitly asks to remove them
Use GLSL ES 3.00 syntax for WebGL 2 and sample textures with texture()
Do not include #version 300 es because Mapshroom injects the version and program wrapper
Do not declare void main()
Do not write to gl_FragColor in the generated body
Do not include explanations outside the GLSL response
Semantic input ABI v1:
After NAME and MAPSHROOM PROMPT, include // MAPSHROOM CONTRACT: <single-line JSON>.
Preserve the current contract and named slots when editing unless the request changes the actual input requirements. Declare every input the code really reads. Metadata never starts generation. No inference or normal fitting inside GLSL.
The first input is the processColor tex argument. Additional slots use uniform sampler2D u_input_<slot>, declared in GLSL. All source inputs share UV and crop.
Canonical codec formats (copy exactly, including profiles and normal conventions): {"color":{"encoding":"rgba-color","version":1,"colorSpace":"srgb","filtering":"linear","alpha":"coverage"},"regionPieces":{"encoding":"mapshroom.regions.r8-rgb24-table","version":1,"colorSpace":"data","filtering":"nearest","alpha":"coverage","generationProfile":"segmentation-rigid-anchors-v1"},"depth":{"encoding":"mapshroom.depth.gray-rgb-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage"},"normal":{"encoding":"mapshroom.normal.xyz-rgb-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","normalConvention":"mapshroom-normal-xyz-v1","generationProfile":"depth-smoothed-central-difference-v1"},"combinedDepth":{"encoding":"mapshroom.surface.oct-rg-depth-b-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","normalConvention":"mapshroom-tiles-v1","generationProfile":"tiles-plane-fit-v1"},"normalAtlas":{"encoding":"mapshroom.surface.depth-normal-atlas-2x2","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","normalConvention":"mapshroom-normal-xyz-v1","generationProfile":"depth-smoothed-central-difference-v1"},"sourceEdges":{"encoding":"mapshroom.edges.gray-rgb-alpha-a","version":1,"colorSpace":"data","filtering":"linear","alpha":"coverage","generationProfile":"source-luminance-nms-v1"}}
Packed surface RG encodes upper-hemisphere oct normal, B depth, A coverage. Decode f=rg*2-1, n=normalize(vec3(f,1-abs(f.x)-abs(f.y))), then flip normal Y for geometry. XYZ normal and 2x2 atlas are different codecs. Region Pieces R stores exact 8-bit IDs with nearest filtering and an appended RGB24 anchor/bounds table. Never interpret colored segmentation palettes as IDs.
Use surface-render for a complete 3D effect. Shared material/geometry modules are unsupported in V1. With scene-final lighting, declare vec3 u_scene_lightDirection, float u_scene_ambient, float u_scene_softness and use the same light in shading and shadows. No local moving light. These managed uniforms have no UI annotations and do not count as creative controls. X right, Y up in geometry, Z toward viewer. Preserve photographic shadows without inverse compensation.
Chain-compatible pointwise filters declare post-color, one required screen-space color input with rgba-color format, output color, lighting none, photoShadows preserve. Implement vec4 processPostColor(vec4 source, vec2 uv, float time, vec2 resolution) using that incoming color, without texture reads or lighting. Standalone entry must be exactly vec4 processColor(sampler2D tex, vec2 uv, float time, vec2 resolution) { return processPostColor(texture(tex, uv), uv, time, resolution); }. Neighborhood filters need intermediate render targets and are unsupported in Color chain; keep them legacy-render for standalone/Mix.
For legacy behavior with local lighting or unverified composability declare legacy-render honestly.
Default single-photo contract: {"version":1,"role":"legacy-render","inputs":[{"slot":"color","semantic":"color","required":true,"space":"source-uv","accepted":[{"encoding":"rgba-color","version":1,"colorSpace":"srgb","filtering":"linear","alpha":"coverage"}],"defaultVariant":"original"}],"output":"color","lighting":"legacy-owned","photoShadows":"not-applicable"}

DELIVERABLE: render the Canvas with the same shader, adjustable controls and Open on Mapshroom button. A printed HTML block, saved file or screenshot is not a rendered Canvas. Inspect compilation errors when the host allows it. If this host cannot render HTML/WebGL, provide the actual generated result.fallbackPreviewUrl and result.importUrl as clickable links. Only if generating the canvas and links is also blocked, give complete copyable GLSL, https://mapshroom.dev/ and the paste steps from https://mapshroom.dev/mcp/fallback.md. Explain the actual block without claiming installation, rendering or import succeeded.

La Canvas è una preview autonoma: non installa un connettore. Il supporto a HTML/WebGL dipende dalla chat. Immagini e depth map vanno selezionate anche in Mapshroom per riprodurre l’effetto.

FOTO → PROFONDITÀ → LUCE

Lo shader deve conoscere il suo input.

Il nuovo strumento get_mapshroom_context spiega all’agente cos’è Mapshroom, come preparare foto, depth map e maschere, e cosa legge realmente lo shader. Il calcolo della profondità avviene nell’app sul tuo dispositivo; il server MCP fornisce istruzioni, controlli e link.

Prova le curve luminose su una depth map sintetica: bianco vicino, nero lontano. Regola bande, velocità e colore. Per riprodurre il risultato nel workspace, scarica la mappa; nello shader scegli Load Asset → Import image → Use selection. Il link porta soltanto lo shader e i controlli.

Prova il workflow depth
Usa Mapshroom MCP. Leggi get_mapshroom_context e get_shader_spec. Mostrami l’esempio depth-contours con previewInput demo-depth, poi dammi il link per aprirlo in Mapshroom e la depth map da selezionare nel workspace.
04

OPZIONALE / SUL TUO COMPUTER

Invia a una scheda già aperta.

Per far aggiungere uno shader direttamente dall’assistente senza aprire un link, usa il server locale sullo stesso computer del browser. Questa modalità usa un codice temporaneo; il server remoto non genera codici di connessione.

Installa il server locale
  1. Installa Node.js 22 o superiore e scarica il file qui sotto.
  2. Aggiungi la configurazione STDIO alla tua app. Sostituisci il percorso con quello completo del file scaricato.
  3. Riavvia la connessione MCP e chiedi get_workspace_connection. Nel workspace, premi MCP accanto a History e incolla il codice. Consenti l’accesso alla rete locale se richiesto.
Scarica mapshroom-mcp.mjs
STDIO / Node.js
{
  "mcpServers": {
    "mapshroom-local": {
      "command": "node",
      "args": [
        "/absolute/path/mapshroom-mcp.mjs"
      ]
    }
  }
}

Su Windows usa barre / nel percorso JSON. Un riavvio del server cambia il codice: collega nuovamente la scheda. Per VS Code usa servers al posto di mcpServers e type: stdio.

SE QUALCOSA NON TORNA

Trova il punto da sistemare.

L’agente non riconosce Mapshroom

Aggiungi l’URL MCP nelle impostazioni dell’app, abilita gli strumenti e riavvia la connessione. Un’installazione locale in Codex non configura automaticamente Cursor o il telefono. Verifica tools/list: il remoto espone cinque strumenti, il locale otto.

Vedo una pagina HTML o un errore 404

Usa esattamente https://mapshroom.dev/api/mcp nel client. /mcp/ è la guida; /ai/ è l’anteprima; il file .mjs è per la modalità locale. Un GET al server mostra informazioni, mentre il protocollo MCP usa POST JSON-RPC.

Sul telefono o in chat non vedo l’anteprima

Verifica che il client supporti connettori MCP personalizzati. Per l’anteprima interattiva serve anche MCP Apps o HTML/WebGL. Chiedi il link all’anteprima o il codice GLSL se il client non li supporta.

Errore 429 o servizio temporaneamente non disponibile

Attendi un minuto prima di riprovare. Il server applica limiti alle richieste e ai payload; la disponibilità dipende anche dalle quote di hosting. Puoi usare il server locale come alternativa.

La compatibilità di protocollo è verificata con il client SDK MCP. Le funzioni specifiche di ogni app e account possono variare. La pagina e le istruzioni testuali sono pubbliche e indicizzabili; i motori di ricerca decidono quando indicizzarle.