{"at":"2026-11-23T01:42:22.222Z","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-23T01:42:22.527Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:42:22.627Z","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-23T01:42:22.925Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"instructions":"Write HTML with print CSS, convert it with html_to_pdf, look at the previews, fix and convert again. Files are read and written only inside: /opt/server","protocolVersion":"2025-06-18","serverInfo":{"name":"pdfpecker","title":"PdfPecker","version":"1.25.0"}}}}
{"at":"2026-11-23T01:42:22.925Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:42:22.925Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:42:22.925Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Converts HTML with CSS to a PDF file. Give the HTML inline or as a file; relative image, CSS and font paths resolve against the HTML file's folder (or the root for inline HTML). Use @page rules for size, margins, running headers and page numbers. No JavaScript runs and nothing loads from the network. Returns the page count and, by default, previews of the first pages.","inputSchema":{"properties":{"accessibility":{"description":"Write a tagged (accessible) PDF.","enum":["tagged","PDF/UA-1","PDF/UA-2"],"type":"string"},"author":{"type":"string"},"conformance":{"description":"Write an archival PDF/A file.","enum":["PDF/A-2b","PDF/A-3b","PDF/A-2u","PDF/A-3u","PDF/A-2a","PDF/A-3a","PDF/A-4","PDF/A-4f"],"type":"string"},"fonts":{"description":"Font files or folders (.ttf, .otf, .woff2) that CSS font-family can name. Needed for scripts other than Latin, Greek and Cyrillic.","items":{"type":"string"},"type":"array"},"footer_text":{"description":"A line at the bottom of every page, such as \"Page {page} of {pages}\".","type":"string"},"header_text":{"description":"A line at the top of every page; {page} and {pages} are replaced.","type":"string"},"html":{"description":"The HTML document. Give this or html_path.","type":"string"},"html_path":{"description":"An HTML file to convert. Give this or html.","type":"string"},"landscape":{"description":"Turn the page size sideways.","type":"boolean"},"language":{"description":"The document language, such as en-GB.","type":"string"},"margin":{"description":"Page margins in points (72 per inch), default 36. @page margin wins.","type":"number"},"output_path":{"description":"The PDF file to write.","type":"string"},"page_size":{"description":"A3, A4, A5, Letter or Legal (default A4), or WIDTHxHEIGHT in mm such as 100x150. A CSS @page size rule wins.","type":"string"},"preview":{"description":"Also return images of the first pages (up to 3, at 60 dpi) to check the layout. Default true.","type":"boolean"},"title":{"description":"The document title; default: the HTML <title>.","type":"string"},"use_system_fonts":{"description":"Also use the fonts installed on this machine.","type":"boolean"}},"required":["output_path"],"type":"object"},"name":"html_to_pdf","title":"HTML to PDF"},{"description":"Converts Markdown (CommonMark with GitHub tables, task lists, strikethrough and footnotes) to a PDF file. Images resolve against the Markdown file's folder.","inputSchema":{"properties":{"accessibility":{"description":"Write a tagged (accessible) PDF.","enum":["tagged","PDF/UA-1","PDF/UA-2"],"type":"string"},"author":{"type":"string"},"conformance":{"description":"Write an archival PDF/A file.","enum":["PDF/A-2b","PDF/A-3b","PDF/A-2u","PDF/A-3u","PDF/A-2a","PDF/A-3a","PDF/A-4","PDF/A-4f"],"type":"string"},"fonts":{"description":"Font files or folders (.ttf, .otf, .woff2) that CSS font-family can name. Needed for scripts other than Latin, Greek and Cyrillic.","items":{"type":"string"},"type":"array"},"footer_text":{"description":"A line at the bottom of every page, such as \"Page {page} of {pages}\".","type":"string"},"header_text":{"description":"A line at the top of every page; {page} and {pages} are replaced.","type":"string"},"landscape":{"description":"Turn the page size sideways.","type":"boolean"},"language":{"description":"The document language, such as en-GB.","type":"string"},"margin":{"description":"Page margins in points (72 per inch), default 36. @page margin wins.","type":"number"},"markdown":{"description":"The Markdown text. Give this or markdown_path.","type":"string"},"markdown_path":{"description":"A Markdown file to convert. Give this or markdown.","type":"string"},"output_path":{"description":"The PDF file to write.","type":"string"},"page_size":{"description":"A3, A4, A5, Letter or Legal (default A4), or WIDTHxHEIGHT in mm such as 100x150. A CSS @page size rule wins.","type":"string"},"preview":{"description":"Also return images of the first pages (up to 3, at 60 dpi) to check the layout. Default true.","type":"boolean"},"title":{"description":"The document title; default: the HTML <title>.","type":"string"},"use_system_fonts":{"description":"Also use the fonts installed on this machine.","type":"boolean"}},"required":["output_path"],"type":"object"},"name":"markdown_to_pdf","title":"Markdown to PDF"},{"annotations":{"readOnlyHint":true},"description":"Renders PDF pages to PNG images and returns them, to check a layout. At most 20 pages per call; for a long PDF, look at the first, a middle and the last page.","inputSchema":{"properties":{"dpi":{"description":"Resolution, default 80; 150 for small detail.","type":"number"},"pages":{"description":"Pages such as \"1\", \"1-3,5\" or \"last\". Default: \"1\".","type":"string"},"password":{"type":"string"},"pdf_path":{"type":"string"}},"required":["pdf_path"],"type":"object"},"name":"render_pdf_pages","title":"Look at PDF pages"},{"annotations":{"readOnlyHint":true},"description":"Extracts the text of a PDF in reading order, with a line marking the start of each page.","inputSchema":{"properties":{"pages":{"description":"Pages such as \"1\", \"1-3,5\", \"8-\" or \"last\", numbered from 1. Default: all.","type":"string"},"password":{"type":"string"},"pdf_path":{"type":"string"}},"required":["pdf_path"],"type":"object"},"name":"pdf_to_text","title":"Read PDF text"},{"description":"Converts a PDF, any PDF, to GitHub Flavored Markdown: headings, paragraphs, lists and tables in reading order. Better than pdf_to_text for documents with structure. Returns the Markdown, or writes it to output_path when given.","inputSchema":{"properties":{"output_path":{"description":"A .md file to write instead of returning the text.","type":"string"},"page_comments":{"description":"Start each page with <!-- page N -->.","type":"boolean"},"pages":{"description":"Pages such as \"1\", \"1-3,5\", \"8-\" or \"last\", numbered from 1. Default: all.","type":"string"},"password":{"type":"string"},"pdf_path":{"type":"string"}},"required":["pdf_path"],"type":"object"},"name":"pdf_to_markdown","title":"PDF to Markdown"},{"description":"Converts an existing PDF to PDF/A for long-term archiving (fonts embedded, colours made device independent, scripts removed; text stays text). Returns what it changed and anything it could not fix. Encrypted and signed PDFs are refused.","inputSchema":{"properties":{"conformance":{"description":"Default PDF/A-2b; the U levels also keep the text searchable.","enum":["PDF/A-2b","PDF/A-2u","PDF/A-3b","PDF/A-3u"],"type":"string"},"output_path":{"description":"The PDF/A file to write.","type":"string"},"pdf_path":{"type":"string"}},"required":["pdf_path","output_path"],"type":"object"},"name":"pdf_to_pdfa","title":"Convert PDF to PDF/A"},{"annotations":{"readOnlyHint":true},"description":"Returns the number of pages and the file size of a PDF.","inputSchema":{"properties":{"password":{"type":"string"},"pdf_path":{"type":"string"}},"required":["pdf_path"],"type":"object"},"name":"pdf_info","title":"PDF page count"},{"description":"Merges PDF files into one, in the order given, keeping links, bookmarks and form fields.","inputSchema":{"properties":{"output_path":{"description":"The PDF file to write.","type":"string"},"pdf_paths":{"items":{"type":"string"},"minItems":1,"type":"array"},"title":{"type":"string"}},"required":["output_path","pdf_paths"],"type":"object"},"name":"merge_pdfs","title":"Merge PDFs"}]}}}
