Skip to content

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 data
  • new_documentStart a document with metadata
  • add_blockInsert any block at any position
  • update_blockReplace one block's content
  • move_blockReorder, duplicate or remove blocks
  • import_markdownConvert Markdown to a document
  • validateReport diagnostics
  • render_htmlThe same preview as the playground
  • compile_pdfExport a PDF with the Rust compiler

Read the full guide for the complete tool list, limits and the feasibility notes.