{"at":"2026-11-23T02:56:32.841Z","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-23T02:56:33.159Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:56:33.260Z","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-23T02:56:33.587Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":false}},"instructions":"site-prompt turns a website into a build prompt that rebuilds it 1:1. Whole page: site_read (measures and photographs it), look at every section shot, then site_prompt with a visual note per section (what only eyes can tell: imagery, depth, the feel) to finish PROMPT.md. Point at parts of a site and get a prompt for each (a button, a line of type, an illustration, a section): site_pick (it opens the site in the person's own Chrome when remote debugging is on, else a Chrome window, with a picker toolbar). One part by selector: site_component. After a rebuild: site_compare against the original. Only the sites the person names.","protocolVersion":"2025-06-18","serverInfo":{"name":"site-prompt","version":"0.2.1"}}}}
{"at":"2026-11-23T02:56:33.587Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:56:33.587Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:56:33.620Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Read a website so it can be rebuilt 1:1. Opens it in Chrome like a person (scrolls it, waits for it to settle, clicks away a cookie banner) and measures everything: the stack it was built with (framework, styling, motion libraries, host), every colour, type style, radius, shadow, blur and spacing value, each section top to bottom with its exact copy and structure, hover states, the header on scroll, scroll reveals, keyframes, fonts, breakpoints, and how it changes at tablet and phone width. Writes ~/Documents/Site Prompts/<site>/ (PROMPT.md, exact.html, spec.json, css/, shots/), copies the prompt to the clipboard, and returns it in full: show it to the person at once.","inputSchema":{"properties":{"url":{"description":"the page, e.g. https://linear.app or stripe.com/payments","type":"string"}},"required":["url"],"type":"object"},"name":"site_read"},{"description":"Finish the build prompt for a site already read with site_read: adds your visual notes per section and an overall paragraph, and rewrites ~/Documents/Site Prompts/<site>/PROMPT.md. Copies it to the clipboard and returns it in full, with a link to the file: show both to the person.","inputSchema":{"properties":{"notes":{"additionalProperties":{"type":"string"},"description":"section number → what the eye sees in it","type":"object"},"overall":{"description":"one paragraph: the look and feel of the whole page","type":"string"},"url":{"description":"the same url given to site_read","type":"string"}},"required":["url"],"type":"object"},"name":"site_prompt"},{"description":"Let the person point at what they like on a website (a button, a line of type, an illustration, a section, any component) and get a prompt that builds exactly that. With url: opens the site with a picker toolbar (in the person's own Chrome if remote debugging is on at chrome://inspect/#remote-debugging, else a Chrome window site-prompt opens) AND waits in the same call until they press Get prompts. Before calling, tell them in one or two lines: hover, click what you like, then Get prompts in the toolbar (bottom right). Each pick comes back as a prompt with its exact code, states, type or artwork and a screenshot, saved in ~/Documents/Site Prompts/<site>/picks/ and copied to the clipboard. If it times out with nothing picked, call it again at once with no url (never end your turn to wait for a reply). stop: true closes it.","inputSchema":{"properties":{"dev_url":{"description":"where the person's own site runs in dev (e.g. http://localhost:3000/pricing); found by itself when omitted","type":"string"},"mode":{"description":"auto (default): their own Chrome when reachable, else a window","enum":["auto","own","window"],"type":"string"},"say":{"description":"a short line to show in the picker toolbar, e.g. \"✓ Added to Hero.tsx, 99% match\" (then it keeps waiting for picks unless wait is 0)","type":"string"},"stop":{"description":"close the picking session","type":"boolean"},"url":{"description":"the site to open (first call); omit to wait for picks in the open session","type":"string"},"wait":{"description":"seconds to wait for picks (default 240, at most 600)","type":"number"}},"type":"object"},"name":"site_pick"},{"description":"Check a component you built against the one the person picked: screenshots it in their running app (the local url and a CSS selector for it) and compares it with the original, aligned to the pixel. Returns the difference and, when it is off, a sheet of original | yours | difference (bright = different). Use after adding a pick to the project.","inputSchema":{"properties":{"hover":{"description":"compare the hover state instead (needs original-hover.png)","type":"boolean"},"pick":{"description":"the pick folder (from site_pick)","type":"string"},"selector":{"description":"a CSS selector for your component on that page","type":"string"},"url":{"description":"where the component renders, e.g. http://localhost:3000/pricing","type":"string"}},"required":["pick","url","selector"],"type":"object"},"name":"site_match"},{"description":"Clone one part of a website exactly: a button, a card, a nav bar, a hero, a pricing table. Without a selector, a Chrome window opens on the page and the person hovers and clicks the part they want (↑ picks its parent); tell them that first. With a selector, it is taken directly. Snapshots its whole subtree with every computed style, its :hover, :focus-visible and :active states, keyframes and fonts into a standalone component.html that renders like the original, checks the clone against the original pixel by pixel, and writes COMPONENT.md, a prompt to rebuild it in any stack.","inputSchema":{"properties":{"name":{"description":"a short name for it, e.g. \"hero button\"","type":"string"},"selector":{"description":"a CSS selector for it (skips the picker)","type":"string"},"url":{"description":"the page the component is on","type":"string"},"wait":{"description":"seconds to wait for the click (default 180)","type":"number"}},"required":["url"],"type":"object"},"name":"site_component"},{"description":"Score a rebuild against the original site: both pages loaded and scrolled at each width, compared band by band (SSIM, 1 = identical). Returns the scores, the page heights, and for each band under 0.95 a sheet of original | clone | difference (bright = different) with its y position. Fix the worst first and compare again.","inputSchema":{"properties":{"clone":{"description":"the rebuild, e.g. http://localhost:3000","type":"string"},"original":{"description":"the original site","type":"string"},"widths":{"description":"default [1440, 390]","items":{"type":"number"},"type":"array"}},"required":["original","clone"],"type":"object"},"name":"site_compare"}]}}}
