MCP server
Publisle speaks the Model Context Protocol, so an assistant can draft a document block by block, validate it, preview the HTML and export a PDF. The server holds no state: every call carries the whole document. Run a real session below.
Run a session
An assistant would make these calls. Change the text, then watch the protocol and the result.
Checking api.publisle.xyz…
Connect your own client
Clients that take a remote URL (Cursor, Claude and others) need only this entry. For stdio-only clients, bridge with npx mcp-remote https://api.publisle.xyz/mcp.
{
"mcpServers": {
"publisle": { "url": "https://api.publisle.xyz/mcp" }
}
}Or call it directly:
curl -s https://api.publisle.xyz/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_blocks","arguments":{}}}'What an assistant can do
list_blocksBlock types with default datanew_documentStart a document with metadataadd_blockInsert any block at any positionupdate_blockReplace one block's contentmove_blockReorder, duplicate or remove blocksimport_markdownConvert Markdown to a documentvalidateReport diagnosticsrender_htmlThe same preview as the playgroundcompile_pdfExport a PDF with the Rust compiler
Read the full guide for the complete tool list, limits and the feasibility notes.