@rolino/mcp
v0.15.0
Published
Model Context Protocol server for Rolino
Maintainers
Readme
@rolino/mcp
Pinterest and Google Business Profile
refresh_delivery_options supports both providers and exact-account Pinterest
board pagination. Draft tools retain account settings and ordered carousel media.
MCP validates each provider's own response shape. See the
shared agent guide
for review, recovery, and coordinated package upgrades.
Facebook Page video update
The Page video release adds VIDEO to Facebook delivery options. Earlier clients
reject that value. After the coordinated release is published, update the installed
SDK, CLI, or local MCP package; update contracts too if imported directly. Restart
local MCP and update pinned launch versions. Hosted MCP updates with the server.
See package upgrade instructions.
Rolino's Model Context Protocol adapter. Rolino supports hosted Streamable HTTP with client-owned OAuth and local STDIO with the shared CLI OAuth session. The hosted route is stateless and does not need this package on the caller's computer. This package supplies the local STDIO process and the shared MCP tool definitions used by both transports.
Installation
Local STDIO MCP remains a separate, explicit installation so CLI-only and remote users do not receive MCP runtime dependencies:
npm install --global @rolino/cli @rolino/mcpFor hosted Streamable HTTP, run rolino setup mcp --client codex --transport
http, then codex mcp login rolino. For local STDIO, the CLI handles standard
OAuth Authorization Code with PKCE and writes token-free Codex or Claude Code
configuration that points to this package's installed entry point.
Headless operators may install only @rolino/mcp and provide a scoped
ROLINO_TOKEN explicitly.
Initial tools:
whoamilist_projectsget_projectcreate_projectlist_media_assetsget_storage_usagepreview_media_cleanupexecute_media_cleanupget_media_cleanup_statusupload_media_assetlist_postsget_postcreate_draft_postupdate_draft_postget_post_readinesspreview_post_scheduleexecute_post_schedulepreview_post_publishexecute_post_publishlist_integration_healthrefresh_delivery_optionslist_seo_opportunitiesget_seo_opportunitylist_seo_reportsget_seo_reportstart_backlink_discoveryget_backlink_discoverylist_backlink_prospectsget_backlink_prospectresearch_backlink_contactupdate_backlink_stageupdate_backlink_outreachlist_backlink_contactsverify_backlinklist_calendar_events
Backlink tools use independent opt-in scopes. Provider-calling tools are bounded and open-world. Stored reads are closed-world. No tool accepts an arbitrary search query or a user-supplied email. Rolino never sends email.
The media tools discover reusable project assets and stream one explicitly approved local JPEG, PNG, WebP, MP4, or MOV file directly to configured storage. Rolino derives dimensions and video duration from the stored object. Uploading never creates, schedules, or publishes a post; the returned asset ID is passed into a later draft operation.
get_storage_usage and list_media_assets are bounded closed-world reads.
Cleanup requires the separate media:delete permission. Preview creates an
exact confirmation but deletes nothing. Before execute, show the upload-age
cutoff, candidate count, excluded in-use count, unknown-size count, and estimated
space. A general request to free space is not execute approval. Execute queues
only the unchanged confirmed files with an idempotency key. In-use files are
never detached, and queued bytes remain counted until physical deletion succeeds.
The deletion worker skips a file without contacting storage if its confirmed
workspace, project, asset, storage identity, or version changed.
The tool set includes discovery and inspection tools that are read-only.
The four SEO tools require the exact optional seo:read capability. They are
bounded, read-only, idempotent, and closed-world. They return canonical tasks,
evidence, neutral provenance, separate topic-relevance and action-readiness
confidence, and recommended actions. They cannot
run analysis, change settings, delete data, enable reports, send email, or call
an external provider.
Opportunity detail also returns the bounded versioned task: exact decision,
format, target, deliverables, research, safe URLs, evidence, limitations, and
success metric. Ready can request final deliverables for human review. Research
selects only RESEARCH_TASK, compares all reasonable formats without a
preferred final format, and must return VALIDATED with a complete next task
or REJECTED with evidence before any separately allowed draft
action. Every copied task forbids publishing and other Rolino writes.
create_project is an additive, closed-world mutation that requires
projects:write and a caller-supplied idempotency key. It atomically saves the
project and its paired brand without starting research, connecting accounts,
scheduling posts, or publishing. The two draft tools can create or selectively
update draft content but cannot schedule or publish it. Omitted update fields
preserve current media, destinations, captions, and provider settings. Both require caller-supplied
idempotency keys, and updates also require the version returned by get_post
so stale writes fail safely. Every tool returns output-schema-validated
structuredContent plus a JSON text fallback.
YouTube drafts require exactly one stored video, explicit title/category/
visibility/audience/declaration settings, and optional tags. The YOUTUBE caption
override becomes the video description, with the shared caption as fallback.
Unaudited Google API projects may be restricted to Private uploads; the tools
do not infer audit approval from server configuration.
Bluesky drafts can be text-only or contain up to four stored JPEG, PNG, or WebP
images. The BLUESKY caption override accepts up to 300 graphemes, with the
shared caption as fallback.
Before preparing TikTok settings, call refresh_delivery_options. It contacts
TikTok and returns secret-safe account choices: allowed delivery modes, exact
visibility values, interaction availability, and maximum video duration.
Direct drafts must make every declaration explicit and mark the choices
reviewed only after inspecting this result. That review is distinct from MCP
mutation consent. Changing TikTok content clears the prior review, and Rolino
never silently turns off a requested interaction.
For LinkedIn, refresh_delivery_options returns the connected member plus the
strict text/single-image/multi-image/video policy and JPEG/PNG/MP4 limits.
LinkedIn drafts can be text-only, contain up to ten stored images, or contain
exactly one stored MP4 without mixing images and video. Native video must be
75 KB to 500 MB and 3 seconds to 30 minutes, and execution remains in
preparation until LinkedIn confirms upload and processing. An optional
3,000-character LINKEDIN caption override uses the shared caption as fallback.
The connected member is always the author; Company Page publishing is outside
this contract.
Google Business Profile drafts can be text-only or contain one stored JPEG or
PNG image with a stable public URL. The optional 1,500-character
GOOGLE_BUSINESS_PROFILE update override uses the shared caption as fallback.
The tools use the location selected in Rolino, create only standard updates,
and never choose or change a Business Profile location. If final creation has
an unknown outcome, inspect the selected Business Profile before retrying.
Integration health is cached and secret-safe, post
readiness reuses Rolino's publishing checks, and calendar reads use bounded
date windows with cursor pagination. After rolino auth login, configure ROLINO_URL and
the server automatically obtains and refreshes the API-resource OAuth token saved for
that exact host. ROLINO_TOKEN remains an explicit override for CI and other
headless environments. ROLINO_CONFIG_DIR can override the portable credential
directory, and ROLINO_TIMEOUT is optional. Stdout is reserved for MCP
messages; startup failures go to stderr without secrets or stack traces.
ROLINO_TIMEOUT accepts integer milliseconds or values such as 500ms, 15s,
and 1m, matching the CLI.
Scheduling uses two separate tools. preview_post_schedule contacts the
configured providers, validates the exact post version, time, timezone, and
readiness, and returns a five-minute single-use confirmation without scheduling
anything. execute_post_schedule is marked consequential and open-world; it
requires the unchanged preview values, confirmation token, and a stable
idempotency key. The server repeats readiness and live-health checks and rejects
expired, consumed, stale, cross-credential, or mismatched confirmation.
For YouTube, the preview explains that confirmed scheduling starts or resumes a
private upload immediately so processing can complete before the Public target.
Execution may return a typed PENDING result with phase
REMOTE_SCHEDULE_CONFIRMATION after the upload completes while YouTube
acknowledges the requested publish time. The video remains private, the result
does not report it as published, and no second publish tool call is required.
Immediate publishing also uses two tools. preview_post_publish checks the
exact destination set, post version, readiness, live provider health, and retry
safety without contacting a publish endpoint. execute_post_publish requires
the unchanged preview values, confirmation token, and stable idempotency key,
then durably queues the selected destinations for immediate delivery. Provider
calls happen after that database commit, and Rolino's existing reconciliation
rules block blind retries after ambiguous external results. YouTube remains
PREPARING until upload and processing are provider-confirmed, and its exact
configured Public, Unlisted, or Private visibility is reconciled before
publication is reported. The preview reports deliveryMode: "IMMEDIATE" and
createsSchedule: false; immediate publishing never enters schedule
confirmation.
MCP tools cannot enable YouTube, Bluesky, LinkedIn, or Google Business Profile, or bypass a deployment's provider approval boundary. Self-hosted operators should complete the YouTube operations guide and Bluesky operations guide, LinkedIn operations guide and the Google Business Profile operations guide before live testing.
Support, security, and license
Stable releases are published only after the maintainer approves the release gate. Report bugs through the Rolino issue tracker and security issues through the repository's security policy.
@rolino/mcp is available under the MIT License.
Agent-first Blog Studio tools
The local stdio server exposes Blog readiness, import, cadence planning, plan-item evidence and state, editable article creation, connection status, confirmed provisioning, signed revalidation testing, and these provider-neutral publishing reads:
list_blog_publishing_providersrequiresblog:manageand returns only enabled providers, safe capabilities, and official documentation.list_blog_publishing_destinationsrequiresblog:readand returns safe connection readiness without credentials or private provider data.list_blog_delivery_attemptsrequiresblog:read, accepts an optional exact article ID, and returns safe delivery states, retry times, error codes, and remote URLs.generate_blog_image,upload_blog_image, andreview_blog_imagerequireblog:write. They cannot approve an article or publish it. Upload reads only the exact local JPEG, PNG, or WebP path supplied to the tool.preview_blog_plan_cadenceandapply_blog_plan_cadencerequireblog:write. Preview first, show every editorial move and locked item, then apply only the unchanged preview values with its confirmation and a stable idempotency key.- These cadence tools never change
scheduledPublishAtand never schedule, publish, or unpublish an article. generate_blog_imagealready accepts optional editorial direction througheditorialBriefwith a 500-character limit.preview_blog_revision_approvalandexecute_blog_revision_approvalrequire the independentblog:approvecapability. Execution makes the confirmed exact bundle eligible for a separate publication operation; it cannot publish.preview_blog_schedule,execute_blog_schedule,preview_blog_schedule_cancellation, andexecute_blog_schedule_cancellationrequire the independentblog:publishcapability. Scheduling causes future external publication but does not grant approval. Cancellation removes only the confirmed future schedule and never unpublishes a live article.
The three publishing-read tools are closed-world reads. They do not contact a provider or
change content. They do not return draft content, prompts, evidence, secrets,
or raw provider responses. Setup requires the
independent optional blog:manage capability; it is never inferred from
blog:write or blog:publish and is not added to existing credentials.
Read tools are closed-world. The signed revalidation test is accurately marked as an open-world write. Connection execute is confirmed, destructive, and idempotent; its first success may return one-time values that must be written only to server-side environment configuration. Errors and replays never reveal those values. These tools remain available over local stdio. The remote profile omits both caller-local media and Blog image uploads, and the hosted route stays hidden while its deployment gate is off. Publication still requires a user-approved exact revision and the separate publish preview/execute tools.
Use the Blog tools in this order: read setup and current article or plan state;
ask for a missing website, cadence, destination, or access level; import and
plan through polled durable jobs; present evidence before bounded plan
acceptance; create one immutable revision with catalog-backed links; generate
or upload and review one image with alt text; stop for user approval when
blog:approve is missing; otherwise preview and execute exact-bundle approval
with its confirmation token and a stable idempotency key; stop after approval
when blog:publish is missing; otherwise preview and execute unchanged
publication or scheduling; poll delivery and verify the live URL; and restart
from approval preview after any content or image change. Existing credentials
do not gain blog:approve, and a queued delivery is not published.
Existing delivery recovery
check_post_delivery reads an existing upload and updates Rolino. It requires posts:write and does not publish. UNKNOWN requires manual review.
preview_post_recovery verifies an existing YouTube video and returns the account, consequence, and a short-lived confirmation. After the user approves it, execute_post_recovery accepts identical action, video ID, publication time, post version, and token with a stable idempotency key. ATTACH cannot publish; RESUME requires an explicit future publishAt or null for publication now, plus posts:schedule or posts:publish. QUEUED is pending, not published. All recovery tools are marked as writes because they change local records. No recovery tool uploads another copy.
The same tools are available through packaged and hosted MCP. Upgrade the server and packaged client before using them.
Bluesky and media transfer
refresh_delivery_options accepts BLUESKY and returns account health, limits, and an owner OAuth handoff. prepare_media_asset_upload and complete_media_asset_upload work in local and hosted MCP. Transfer the approved bytes to the short-lived URL between these calls. Hosted MCP does not read caller-local paths. preview_post_schedule_cancellation and execute_post_schedule_cancellation require posts:schedule, exact user approval, the current version, confirmation, and a stable retry key. They reject started or uncertain delivery. See docs/agent-platform/bluesky.md in the repository.
Bluesky workflows also support image alt text, confirmed deletion of untouched drafts (posts:delete), and confirmed account disconnection (integrations:disconnect). These permissions are optional and independent. See the complete workflow map.
Multiple publishing accounts
Use saved connection IDs from integration health, not account names. A draft's destinations array can select several accounts on the same network. Each item contains integrationId, provider, and optional captionOverride, tiktokSettings, youtubeSettings, and facebookSettings. A null caption override uses the shared caption. Provide YouTube settings for every YouTube account. TikTok choices and consent belong to each account. Facebook feed drafts use format: "FEED" and may include one HTTPS link URL. For video, use FEED with one MP4 or MOV in its original aspect ratio, or REEL with one vertical 9:16 video. Put links in the caption. Refresh delivery options: video availability depends on the deployment acceptance switch. Page Reels are public.
Do not combine destinations with legacy platforms or provider-level settings. A legacy provider-only request is accepted only when its account is unambiguous. The server returns a selection error otherwise. Missing or changed account identity never selects a replacement account.
Saved post destinations have their own id. Use these destination IDs for publish destinationIds and recovery destinationId; they are different from connection integrationId. Preview, version, confirmation token, and selected destination IDs must remain unchanged when confirming. A pending schedule response can contain several destinations, each with its own mutationId. Wait for each account's confirmed result.
These contracts are staged with the multi-account database migrations. Deploy the server and worker with the same schema before using them. Existing remote receipts remain attached to their saved accounts. No live provider acceptance test is implied by local contract tests.
Article credits
Hosted article credits are shared across the workspace and reset monthly. The first saved generation uses one credit. Three successful regenerations are included per article; each later regeneration needs explicit user confirmation and one credit. Failed attempts use no credits. Reuse the same idempotency key after a network failure.
SDK: use blog.articles.previewGeneration before generate. CLI: use blog articles generate --preview, then --confirmation-token TOKEN --yes only after approval. MCP: use generate_blog_article with previewOnly, then send the returned confirmationToken after explicit approval. Preview returns the charge, usage, reservations, reset date, and included regenerations. Server checks reject stale or reused tokens. See the operating rules.
Article draft updates require draftId and version from the latest article response. Version numbers alone cannot identify a replacement draft. Old or mismatched draft identities return a conflict; reload the current draft before editing it.
Website integrations
Umami and Datafast reports and confirmed management, plus confirmed Astro setup, are available through the shared agent operations. See the website integration guide for permissions, inputs, secret handling, and recovery.
TikTok photo carousels
TikTok supports one video or up to 10 ordered photos. Photo originals must be JPEG, PNG, or WebP, up to 25 MiB each. Rolino makes JPEG delivery copies and keeps originals. The photoCoverIndex is zero-based and defaults to 0; keep allowDuet and allowStitch false and videoCoverTimestampMs null. autoAddMusic is optional, off by default, and only applies to direct photo posts. Photo inbox drafts include the caption; video inbox drafts do not. Refresh exact-account delivery options and review settings after content changes.
Upgrade SDK, CLI, and local MCP clients together to 0.13.0 before using non-default photo settings. Older strict response schemas cannot read these new fields. Default cover and disabled music are omitted from saved settings and API responses. New response schemas ignore unknown fields; request validation remains strict.
Internal approval in 0.14.0
Update the installed entry point to use review submission and feedback:
npm install @rolino/[email protected]
npm install --global @rolino/[email protected] @rolino/[email protected]Install contracts separately only when your code imports them directly. Restart local MCP after the update. Hosted MCP updates with the Rolino application.
Schedule, publish and recovery execution can return PENDING_INTERNAL_APPROVAL
inside internalApproval, with an authenticated reviewUrl and a request ID.
This means publication has not started. Explicitly submit the request for review,
return the link to the user, and wait for a human decision. Agents cannot approve,
assign reviewers or disable the requirement. The server feature gate is separate
from the npm release. Updating packages does not enable the production feature.
Optional MCP Apps review UI
The hosted server can register show_internal_review with
reviewUi: { origin: "https://your-rolino-host" }. The resource uses standard
_meta.ui.resourceUri, text/html;profile=mcp-app, and the ui/* bridge.
The resource frames the dedicated review surface on that same origin.
See review UI operations before enabling it.
Approval is never an agent-callable MCP tool.
