{"at":"2026-11-23T04:02:08.868Z","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-23T04:02:09.516Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:02:09.617Z","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-23T04:02:10.198Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"LibKa turns one LibKa Markdown file (Markdown with LibKa blocks) into a web page, an A4 PDF, 16:9 slides and a Word file, each checked for accessibility. To write a LibKa document: read libka://guide, pick blocks with libka_list_blocks and libka_get_block, write the LibKa Markdown, then call libka_check until it has no problems and libka_build until Guard passes.","protocolVersion":"2025-11-25","serverInfo":{"name":"libka","version":"2.0.3"}}}}
{"at":"2026-11-23T04:02:10.198Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:02:10.198Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:02:10.232Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Every LibKa block with the content it fits (\"use when\"), grouped; plus content that has no block, and what to write for it instead.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"group":{"description":"Only this group: text, how-to, explain, highlight, media, data, ui","type":"string"}},"type":"object"},"name":"libka_list_blocks","title":"List LibKa blocks"},{"description":"Full definition of a block: example syntax, attributes, what the web page, PDF, slides and Word file do with it, accessibility rules, anti-patterns and its JSON schema.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"description":"Block name, such as steps, tabs, chart or ui","type":"string"}},"required":["name"],"type":"object"},"name":"libka_get_block","title":"Get one LibKa block"},{"description":"Parse LibKa Markdown without building: problems with line numbers (fix all of them), the outline, block counts and how many slides the deck will have. Fast; call it after every change.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"markdown":{"description":"The complete LibKa Markdown document, including front matter","type":"string"}},"required":["markdown"],"type":"object"},"name":"libka_check","title":"Check LibKa Markdown"},{"description":"Write the LibKa Markdown to a folder and build it: the outputs the document asks for in its front matter (outputs: web, pdf, deck, docx; default web and pdf), or the outputs given here. Guard checks every output (the pages in Chrome, the PDF with veraPDF when Java and veraPDF are installed, the Word file's structure); passing outputs are signed. Returns the files and every Guard finding to fix. Writes files on this machine, and removes this document's own earlier outputs that this build did not make again.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"markdown":{"description":"The document; or give path instead, not both","type":"string"},"name":{"description":"File name without extension when markdown is given (default: document)","type":"string"},"outDir":{"description":"Output folder (default: LIBKA_OUT, or ./libka-out)","type":"string"},"outputs":{"description":"Build these instead of the document's own outputs, e.g. [\"web\", \"deck\"] to check slide fit quickly","items":{"enum":["web","pdf","deck","docx"],"type":"string"},"type":"array"},"path":{"description":"An existing .md file to build, only read (images are found next to it)","type":"string"}},"type":"object"},"name":"libka_build","title":"Build a LibKa document"}]}}}
