Publish from Claude Code, Cursor or Codex
Publish an HTML deck from an AI coding workflow, with workspace access and plan limits.
Lumdeck lets agents publish HTML or ZIP presentations through a remote MCP server or REST API. The hosted MCP endpoint is https://lumdeck.com/api/v1/mcp, using Streamable HTTP with a workspace API key. Browser-based MCP OAuth is not available.
Get ready
Use an existing workspace key, with only the scopes your workflow needs. On Pro and Team, editors can create and revoke their own keys in Workspace → API & MCP. Owners and admins can manage all workspace keys. Full workspace connection panels and key-management panels are premium features. The public examples below describe how a compatible client can use a key it already has. A workspace invitation does not require a separate payment method for each member.
Keep keys outside your deck, source control and chat messages. Set LUMDECK_API_KEY in your client's private environment or secret manager before starting the client. The examples contain a variable reference, not a usable key.
Publish one HTML file without an account
For a quick preview, send one self-contained HTML file to the guest REST endpoint. Each IP address can publish up to 10 times per 24 hours. The file can be up to 10 MB and the view link lasts seven days.
curl --fail-with-body 'https://lumdeck.com/api/v1/guest/presentations?title=Q3%20review' \
-H 'Content-Type: text/html' --data-binary @deck.htmlShare the view link. Keep the claim link private. Open the claim link, sign in and choose a workspace to keep the deck. Lumdeck checks the upload again and closes the guest link when the claim succeeds. ZIP uploads, protected sharing and analytics require a workspace.
Give your agent the publishing instructions
Save the Lumdeck skill (opens in a new tab) as ~/.claude/skills/lumdeck/SKILL.md for Claude Code, ~/.cursor/skills/lumdeck/SKILL.md for Cursor or ~/.agents/skills/lumdeck/SKILL.md for Codex. The skill describes the API. Authenticated workspace publishing also needs a key.
Claude Code
For a project configuration, put this entry in .mcp.json at the project root. Claude Code expands the environment variable in HTTP headers when it reads this file.
{
"mcpServers": {
"lumdeck": {
"type": "http",
"url": "https://lumdeck.com/api/v1/mcp",
"headers": { "Authorization": "Bearer ${LUMDECK_API_KEY}" }
}
}
}Then open Claude Code and use /mcp to check the connection. Listing presentations or checking a version needs presentations:read. Publishing needs presentations:write. Add shares:write to create a link.
Cursor
Merge this entry into your user-level ~/.cursor/mcp.json. Cursor must inherit LUMDECK_API_KEY from the environment that launches it. Its ${env:NAME} syntax differs from Claude Code's ${NAME} syntax.
{
"mcpServers": {
"lumdeck": {
"url": "https://lumdeck.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer ${env:LUMDECK_API_KEY}"
}
}
}
}Check the server in Cursor's MCP settings and review tool approvals before publishing. Other clients must support remote Streamable HTTP and a Bearer authorization header; a client that only supports browser OAuth cannot use this integration.
Codex
Codex CLI, the Codex IDE extension and the Codex desktop app on the same host use ~/.codex/config.toml. Add this table once and make the workspace key available in the environment where Codex runs. Restart Codex after changing the configuration.
[mcp_servers.lumdeck]
url = "https://lumdeck.com/api/v1/mcp"
bearer_token_env_var = "LUMDECK_API_KEY"In the CLI, use /mcp to check that Lumdeck is connected. Ask Codex to publish a small HTML deck with publish_presentation, then check the returned version. A desktop app launched from a dock may have a different environment from your terminal.
Publish and check the result
- Ask the agent to publish your finished HTML or ZIP using
publish_presentation. - Read the validation result. The same upload restrictions apply as in the browser.
- Open the returned presentation and test navigation, assets and interactions.
- Create the intended share link and verify its protection before sending it.
- Use
upload_versionfor later changes so links following the current version keep working.
Workspace API limits
| Plan | Active keys | Requests per minute per key | Publishes per day per workspace | Versions kept per deck |
|---|---|---|---|---|
| Free | 2 | 30 | 10 | 3 |
| Pro | 5 | 60 | 100 | 20 |
| Team | 25 | 240 | 1,000 | All |
Creating a presentation and uploading a new version both count toward the daily publish allowance. Deck count, file size, storage and trial restrictions also apply. Check the response for the specific limit. An invalid key returns 401 and an insufficient scope or role can return 403.
Publish from CI
Use this shell script with curl and jq in a release job. Store LUMDECK_API_KEY as a CI secret with presentations:write for uploads and presentations:read for status checks. Pass a ZIP with index.html at the root or a self-contained HTML file. On the first release, leave LUMDECK_PRESENTATION_ID unset and save the ID printed after upload. Set that ID on every later release to update the same deck.
#!/bin/sh
set -eu
: "${LUMDECK_API_KEY:?Set the workspace key in CI}"
file=${1:?Pass the path to a .zip or .html file}
case "$file" in
*.zip) mime=application/zip ;;
*.html) mime=text/html ;;
*) echo 'Expected a .zip or .html file' >&2; exit 1 ;;
esac
base=https://lumdeck.com/api/v1/presentations
auth="Authorization: Bearer $LUMDECK_API_KEY"
url="$base?title=Release%20deck&wait=20"
if [ -n "${LUMDECK_PRESENTATION_ID:-}" ]; then
url="$base/$LUMDECK_PRESENTATION_ID/versions?wait=20"
fi
result=$(curl --fail-with-body -sS --max-time 120 "$url" \
-H "$auth" -H "Content-Type: $mime" --data-binary "@$file")
deck=$(printf '%s' "$result" | jq -er '.presentation.id')
version=$(printf '%s' "$result" | jq -er '.version.id')
printf 'Presentation %s, version %s\n' "$deck" "$version"
for attempt in $(seq 1 30); do
status=$(printf '%s' "$result" | jq -er '.version.status')
case "$status" in
ready) exit 0 ;;
rejected) printf '%s' "$result" | jq '.version.issues' >&2; exit 1 ;;
esac
sleep 2
result=$(curl --fail-with-body -sS --max-time 15 -H "$auth" "$base/$deck/versions/$version")
done
status=$(printf '%s' "$result" | jq -er '.version.status')
[ "$status" = ready ] && exit 0
printf '%s' "$result" | jq '.version | {status, issues}' >&2
exit 1wait=20 asks the server to wait up to 20 seconds. A successful HTTP upload can still report a processing or rejected version. Check the exact version before distributing its link. Links following the current version pick up successful revisions. Pinned links keep their selected version.
Client documentation checked 20 November 2026. Claude Code MCP (opens in a new tab), Cursor MCP (opens in a new tab) and Codex MCP (opens in a new tab).
See plan limits, product scope and limits, slide events and the OpenAPI specification.
Last updated: 20 November 2026.