MCP setup
Give an agent access to the editorial workflow without giving it your dashboard session.
1. Choose how to connect
Codex and ChatGPT can sign in with Jamwidgets, so access follows your workspace role and can be disconnected later. For Claude Code, other clients and unattended scripts, open Settings → Connections and create a scoped management key.
| Workflow | Scopes |
|---|---|
| Review | sites:read, inbox:read, posts:read, queue:read |
| Draft | Review scopes + posts:write |
| Publish | Draft scopes + posts:publish |
| Moderate | inbox:read, inbox:write |
| Background work | queue:read to list and inspect tasks; queue:write to retry, cancel or start them |
| Galleries | galleries:read, galleries:write, plus galleries:publish to make one public |
| Site setup | sites:read to list sites, forms, polls and announcements; sites:write to create sites, create or change forms, polls and announcements, and update site settings |
| Site administration | sites:admin to change deploy hooks and delete sites. Only org owners can grant it. |
Publishing is separate from writing because it makes content public and can trigger a site deploy. OAuth never grants sites:admin or full_access. Only org owners can give a management key either one; avoid full_access unless the script genuinely needs every current and future scope.
Who can create keys
Org admins and owners create management keys. Keys belong to the org, not to the person who made them, so they keep working when that person leaves. Settings → Connections flags any key whose creator has left so you can rotate it. Use a separate key for each integration, so you can rotate or revoke one without breaking the others.
2. Connect your client
Sign in with Jamwidgets
For Codex CLI:
codex mcp add jamwidgets \
--url https://jamwidgets.com/api/manage/mcp
codex mcp login jamwidgetsThe login command opens Jamwidgets in your browser, where you choose a workspace and approve the requested permissions. Revoke the connection any time from Settings → Connections. Sign-in works with Codex and ChatGPT today; other clients, including Claude Code, use a management key.
Use a management key
Use a management key for Claude Code and other clients, and wherever a browser sign-in can't complete: on a server, in CI or over SSH. Put it in an environment variable from your password manager or secret store, never in the MCP configuration itself.
Codex CLI reads the variable each time it connects:
export JAMWIDGETS_KEY=<management-key>
codex mcp add jamwidgets \
--url https://jamwidgets.com/api/manage/mcp \
--bearer-token-env-var JAMWIDGETS_KEYClaude Code expands the variable in a project .mcp.json:
{
"mcpServers": {
"jamwidgets": {
"type": "http",
"url": "https://jamwidgets.com/api/manage/mcp",
"headers": { "Authorization": "Bearer ${JAMWIDGETS_KEY}" }
}
}
}Any other MCP client works the same way: send Authorization: Bearer <management-key> to the endpoint. Delete the key from Settings → Connections to cut off access.
Editorial workflow
- Call
list_sites. Post tools require a site ID; queue tools cover the whole workspace and take none. - Use
list_inboxfor work needing attention, orlist_postswithneeds_review. - Create or update drafts with
create_postandupdate_post. - Review the title, body, excerpt, tags, and provenance before granting a publish action.
- Use
publish_postfor a new draft,republish_postfor pending edits to a live post, orschedule_postwith a future RFC 3339 timestamp. - Inspect
list_queue_tasksto see the deploy and notification work triggered by publication.
Background work
list_queue_tasksandget_queue_taskshow deploys, notification emails and other background tasks, filtered bystate:pending,in_progress,succeeded,cancelledorfailed. They needqueue:read.retry_queue_taskruns a failed or cancelled task again, for example a deploy after you fix its hook or token. A deploy the host rejects outright, because the hook was deleted or the token revoked, fails at once instead of retrying.cancel_queue_taskstops a pending task before it runs.enqueue_taskstarts a workspace sweep now instead of waiting for its schedule:publish_scheduled_postspublishes posts whose time has come, andprocess_pending_notificationssends post emails that were held for a deploy callback and have waited long enough.- Retry, cancel and enqueue need
queue:write.
Gallery workflow
- Call
prepare_gallery_photo_uploadwith the file's name, type and size in bytes. Photos are still JPEG, PNG or WebP, up to 25 MB. PUTthe file to the returnedurlwith the returned headers within 5 minutes, for examplecurl -T photo.jpg -H "Content-Type: image/jpeg" "$url". The photo never passes through the conversation.- Call
finalize_gallery_photo_uploadwith theuploadId, thenupdate_gallery_phototo set alt text, a caption and tags. It replaces all of them, so send every value you want to keep. - Create the gallery with
create_galleryand the photo IDs, and make it public withpublish_galleryonce the photos finish processing.
Site setup
create_formandlist_forms: forms that widgets submit to by slug.list_formsreturns up to 100 at a time, newest first; pass the last ID asafterfor the next page.create_polltakes a question and two or more option texts;update_pollwithis_active: falsecloses it, anddelete_pollremoves it with its votes.create_announcement,update_announcementanddelete_announcementmanage the site-wide banner:info,success,warningorerror, with optional start and end times.update_sitechanges the name, URL, allowed origins or subscriber email mode. Only the fields you send change, in one step; deploy settings and the site key are never touched. An emptysite_urlclears it, and an emptyallowed_originsallows every origin.
Static-site publishing
Publishing updates Jamwidgets immediately. A statically generated site also needs a deploy connection in its site settings so the new post is included in a fresh build. Queue success means Jamwidgets handed off the deploy; use your hosting or repository checks to confirm the build reached production.