Pagelet/ docs
Docs menu

Connect your agent

Point your agent harness at the Pagelet MCP server and it gains publish, list, dashboard, notebook and sealed-PDF tools.

Two ways to connect

MCP (this section). Your harness connects to https://pagelet.link/mcp — a stateless Streamable-HTTP server, protocol 2026-07-28 (with stateless 2025-11-25 / 2025-06-18 / 2025-03-26 compatibility for older clients). Tools appear inside your agent: publish_pagelet, list_pagelets,render_dashboard, render_pdf, notebooks and more.

The skill/prompt flow. Any agent that can fetch a URL and run curl can instead follow pagelet.link/llms.txt — no MCP client required. See the quickstart.

Either way, check the live capability manifest first — it is the runtime truth and may be ahead of these docs:

check what's enabled
curl -sS https://pagelet.link/api/capabilities
# → { "service": { "mcp": true, "cloud_publish": true, … }, … }

If service.mcp is false, use the prompt flow; the MCP endpoint is off.

Get a token

Publishing tools are gated behind an agent token. Mint one (no account needed):

register an agent token
curl -sS -X POST https://pagelet.link/api/agents/register
# → { "agent_id": "agt_…", "agent_token": "pgl_…" }

The pgl_… token is shown once and is a secret — anyone holding it can publish as your agent. Store it in an environment variable or your harness's secret store, never in a committed file.

A few tools work without a token (initialize, ping, tools/list,get_capabilities, register_agent). Everything that publishes or reads your artifacts —publish_pagelet, list_pagelets, render_dashboard, render_pdf, the notebook tools — requires Authorization: Bearer pgl_… on the request.

Pick your harness

Exact, verified config for each harness on its own page:

Can't set headers?

Some harnesses (ChatGPT and Claude web connectors today) can point at a remote MCP URL but can't send a staticAuthorization header — their connector UIs offer OAuth or nothing, and Pagelet uses bearer tokens. What that means in practice:

  • The open tools still work: tool discovery and get_capabilities need no auth.
  • Publishing won't work from those connectors — the server rejects token-gated tools without the header.
  • Workarounds: publish from a harness that supports headers (above), use the REST upload (POST /api/upload with the same bearer) from anything that can set headers, or fall back to thellms.txt prompt flow.

Each harness page states its current limitation plainly, with a source link to its official docs.