{"at":"2026-11-23T00:44:03.125Z","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-23T00:44:03.528Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:44:03.629Z","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-23T00:44:03.993Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"Builds HTML email templates. Workflow: call get_block_reference once for the template format, optionally list_templates + get_template to start from a starter template, then build_email to validate, render HTML and get a preview link that opens the email in the visual editor. Fix any reported errors and call build_email again. Always give the user the preview link.","protocolVersion":"2025-11-25","serverInfo":{"name":"easy-email-builder","version":"0.1.3"}}}}
{"at":"2026-11-23T00:44:03.993Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:44:03.993Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:44:03.996Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"The template format: block types and their properties, layout, colors, variables. Read this before writing a template.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get_block_reference","title":"Template format reference"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Lists the starter email templates (welcome, newsletter, order confirmation, password reset, …) and the built-in header/footer ids usable in build_email.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"category":{"description":"Only list starter templates in this category","enum":["featured","layouts","ecommerce","marketing","transactional","onboarding","notifications"],"type":"string"}},"type":"object"},"name":"list_templates","title":"List starter templates"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Returns a starter template to adapt. \"tree\" (default) is the nested format build_email accepts; \"document\" is the flat editor JSON.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"format":{"description":"Default: tree","enum":["tree","document"],"type":"string"},"name":{"description":"Template name from list_templates, e.g. \"welcome\"","type":"string"}},"required":["name"],"type":"object"},"name":"get_template","title":"Get a starter template"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Validates a template, renders the final email HTML, lists its variables, and returns a preview link that opens the email in the Easy Email Builder visual editor (where it can be edited and exported). Accepts the tree format ({ layout, header, footer, blocks }) or a flat editor document. On validation errors nothing is rendered; fix them and call again. \"warnings\" also flags things that break in Outlook or Gmail (nested columns, oversized images, unsupported CSS in raw HTML, clipping); fix those too unless the user accepts them.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"documentOutputPath":{"description":"Also write the flat editor document (JSON) to this file path","type":"string"},"htmlOutputPath":{"description":"Also write the HTML to this file path","type":"string"},"include":{"description":"What to return besides the preview link and variables. Default: [\"html\"]. \"document\" is the flat JSON for the EmailBuilder React component.","items":{"enum":["html","document","tree"],"type":"string"},"type":"array"},"template":{"additionalProperties":{},"description":"The template: { layout?, header?, footer?, blocks: [...] } (see get_block_reference) or a flat editor document","propertyNames":{"type":"string"},"type":"object"},"variables":{"additionalProperties":{"type":"string"},"description":"Fallback values for contact variables used in the template, e.g. { \"first_name\": \"there\" }","propertyNames":{"type":"string"},"type":"object"}},"required":["template"],"type":"object"},"name":"build_email","title":"Build email"}]}}}
