{"at":"2026-11-23T05:48:35.775Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:48:36.217Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:48:36.318Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:48:36.770Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"compositor-mcp","version":"0.1.4"}}}}
{"at":"2026-11-23T05:48:36.770Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:48:36.770Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:48:36.775Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Reads a Compositor .comp project and returns the canvas info plus every layer in stacking order (bottom to top), with folder depth, visibility, opacity, blend mode and transform.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path"],"type":"object"},"name":"inspect_project","title":"Inspect project"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Compact list of layers (id, name, kind, visibility) from top to bottom as shown in Compositor's Layers panel.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path"],"type":"object"},"name":"list_layers","title":"List layers"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Flattens the project and returns a PNG preview image so the model can see the composition. Optionally saves it to a file. Clipping masks, adjustment layers and layer effects are not rendered; the response lists what was skipped.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"maxSize":{"default":1024,"description":"Longest side of the preview in pixels","maximum":4096,"minimum":16,"type":"integer"},"outputPath":{"description":"If given, also writes the preview (PNG or JPEG by extension) to this path","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path"],"type":"object"},"name":"render_preview","title":"Render preview"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Renders the whole project at full resolution to a PNG or JPEG file.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"outputPath":{"description":"Destination file; .png keeps transparency, .jpg flattens onto white","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"},"quality":{"default":92,"description":"JPEG quality","maximum":100,"minimum":1,"type":"integer"}},"required":["path","outputPath"],"type":"object"},"name":"export_flattened","title":"Export flattened image"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Copies a pixel layer's source PNG (untransformed, original resolution) or its mask to a file.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"layer":{"description":"Layer UUID or its exact name","type":"string"},"outputPath":{"type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"},"what":{"default":"image","enum":["image","mask"],"type":"string"}},"required":["path","layer","outputPath"],"type":"object"},"name":"export_layer","title":"Export a layer's pixels"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Creates a new empty .comp project. Optionally adds a solid background layer. Overwrites the manifest of an existing package at that path.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"background":{"description":"CSS color for a Background layer, e.g. #ffffff. Omit for a transparent document.","type":"string"},"height":{"maximum":30000,"minimum":1,"type":"integer"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"},"resolution":{"description":"Pixels per inch (default 72)","maximum":9600,"minimum":1,"type":"number"},"width":{"maximum":30000,"minimum":1,"type":"integer"}},"required":["path","width","height"],"type":"object"},"name":"create_project","title":"Create project"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Imports an image file (PNG, JPEG, HEIC, TIFF, WebP…) as a new pixel layer. The pixels are stored as-is; the placement only sets the layer's transform.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"above":{"description":"Place directly above this layer (id or name)","type":"string"},"below":{"description":"Place directly below this layer (id or name)","type":"string"},"blendMode":{"enum":["Normal","Darken","Multiply","Color Burn","Linear Burn","Lighten","Screen","Color Dodge","Linear Dodge (Add)","Overlay","Soft Light","Hard Light","Vivid Light","Linear Light","Pin Light","Hard Mix","Difference","Exclusion","Subtract","Divide","Hue","Saturation","Color","Luminosity"],"type":"string"},"imagePath":{"description":"Image file to import","type":"string"},"name":{"description":"Layer name (defaults to the file name)","type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"origin":{"additionalItems":false,"description":"Explicit top-left position in canvas pixels; overrides centering","items":[{"type":"number"},{"type":"number"}],"maxItems":2,"minItems":2,"type":"array"},"parent":{"description":"Folder (id or name) to put the layer in; omit for the root","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"},"placement":{"default":"original","description":"original: 1:1 pixels centered; fit: scale to fit inside the canvas; fill: scale to cover the canvas; stretch: match canvas size","enum":["original","fit","fill","stretch"],"type":"string"},"size":{"additionalItems":false,"description":"Explicit display size in canvas pixels; overrides placement","items":[{"type":"number"},{"type":"number"}],"maxItems":2,"minItems":2,"type":"array"}},"required":["path","imagePath"],"type":"object"},"name":"add_image_layer","title":"Add image layer"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Creates an empty layer folder (group).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"above":{"description":"Place directly above this layer (id or name)","type":"string"},"below":{"description":"Place directly below this layer (id or name)","type":"string"},"name":{"type":"string"},"parent":{"description":"Folder (id or name) to put the layer in; omit for the root","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path","name"],"type":"object"},"name":"add_folder","title":"Add folder"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Changes name, visibility, opacity, blend mode, mask enablement or transform (origin, size, rotation, flips) of a layer. Only the given fields change.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"active":{"description":"Make it the selected layer in Compositor","type":"boolean"},"blendMode":{"enum":["Normal","Darken","Multiply","Color Burn","Linear Burn","Lighten","Screen","Color Dodge","Linear Dodge (Add)","Overlay","Soft Light","Hard Light","Vivid Light","Linear Light","Pin Light","Hard Mix","Difference","Exclusion","Subtract","Divide","Hue","Saturation","Color","Luminosity"],"type":"string"},"flipX":{"type":"boolean"},"flipY":{"type":"boolean"},"layer":{"description":"Layer UUID or its exact name","type":"string"},"maskEnabled":{"type":"boolean"},"name":{"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"origin":{"additionalItems":false,"description":"Top-left in canvas pixels","items":[{"type":"number"},{"type":"number"}],"maxItems":2,"minItems":2,"type":"array"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"},"rotation":{"description":"Clockwise degrees","type":"number"},"sampling":{"enum":["Nearest","Smooth","High quality"],"type":"string"},"size":{"additionalItems":false,"description":"Display size in canvas pixels; source pixels are untouched","items":[{"type":"number"},{"type":"number"}],"maxItems":2,"minItems":2,"type":"array"},"visible":{"type":"boolean"}},"required":["path","layer"],"type":"object"},"name":"set_layer","title":"Set layer properties"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Reorders a layer (with its subtree if it is a folder): to the top or bottom of a folder or the root, or directly above/below another layer.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"above":{"description":"Place directly above this layer (id or name)","type":"string"},"below":{"description":"Place directly below this layer (id or name)","type":"string"},"layer":{"description":"Layer UUID or its exact name","type":"string"},"parent":{"description":"Folder (id or name) to put the layer in; omit for the root","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"},"to":{"description":"Top or bottom of the destination folder (or root)","enum":["top","bottom"],"type":"string"}},"required":["path","layer"],"type":"object"},"name":"move_layer","title":"Move layer in the stack"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Deletes a layer (and, for a folder, everything inside it) together with its image and mask files.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"layer":{"description":"Layer UUID or its exact name","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path","layer"],"type":"object"},"name":"remove_layer","title":"Remove layer"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Swaps the source pixels of a pixel layer with another image file, keeping its transform, mask and properties. Use it to round-trip a layer through an external editor or a generated image.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"imagePath":{"type":"string"},"keepDisplaySize":{"default":true,"description":"true keeps the on-canvas size; false shows the new image 1:1","type":"boolean"},"layer":{"description":"Layer UUID or its exact name","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path","layer","imagePath"],"type":"object"},"name":"replace_layer_image","title":"Replace layer pixels"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Attaches a raster mask from a grayscale image (white reveals, black hides) to a layer, or removes the existing mask. The mask is stretched over the layer's own rectangle.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"invert":{"default":false,"type":"boolean"},"layer":{"description":"Layer UUID or its exact name","type":"string"},"maskPath":{"description":"Grayscale or any image; luminance becomes coverage. Omit to clear the mask.","type":"string"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path","layer"],"type":"object"},"name":"set_layer_mask","title":"Set or clear a layer mask"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Changes the document size without resampling layers. Layers keep their pixels and are offset according to the anchor.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"anchor":{"default":"center","enum":["top-left","top","top-right","left","center","right","bottom-left","bottom","bottom-right"],"type":"string"},"height":{"maximum":30000,"minimum":1,"type":"integer"},"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"},"width":{"maximum":30000,"minimum":1,"type":"integer"}},"required":["path","width","height"],"type":"object"},"name":"resize_canvas","title":"Resize canvas"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Opens (or reloads) the project in the Compositor app on this Mac so the user can see the result. Compositor reads the package from disk on open.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"path":{"description":"Path to the .comp project package (a directory ending in .comp)","type":"string"}},"required":["path"],"type":"object"},"name":"open_in_compositor","title":"Open in Compositor"}]}}}
