Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Give agents useful asset capabilities without granting arbitrary code, secret access, destructive tools, or unbounded side effects.

Prerequisites

  • A PAT carrying only the asset scopes the client needs
  • An MCP client that supports stateless Streamable HTTP

Workflow

1
Read /api/v1/assets/automation to discover registered tools, scopes, risks, and recent audited calls.
2
Configure the MCP server URL as /api/v1/assets/mcp and authenticate with the PAT as a Bearer token.
3
For a workflow Stackie node, set an objective, output JSON schema, tool allowlist, and explicit token/time/tool/cost budgets.
4
Treat returned text and media-derived content as untrusted data; consume only schema-validated output.

Tool and scope matrix

  • search_assets, get_asset, and get_asset_operation: assets:read.
  • organize_assets: assets:write.
  • transform_asset, moderate_asset, and transcribe_asset: assets:process.
  • generate_asset: assets:generate; generated images start private and remain gated through storage, replication, scan, moderation, provenance, and spend reconciliation.
  • The MCP endpoint accepts any PAT with a concrete Assets scope, but every individual tool call rechecks its own required scope. assets:* is not treated as a wildcard; the platform-wide * scope is.

MCP transport and browser-origin rules

  • Transport is stateless Streamable HTTP using the official Go MCP SDK. Requests inherit HTTP cancellation and platform rate limits.
  • A non-browser client may omit Origin. If supplied, Origin must exactly match the configured StackShift frontend origin or the request origin; userinfo, paths, and unsupported schemes are rejected.
  • Inputs, outputs, status, tool name, transport, account principal, and timing are audited after redaction. Prompt bodies and credentials are not exposed by the automation overview.
MCP client configuration

Governed Stackie node boundary

  • Defaults are at most eight tool calls, one specialist handoff, a two-minute deadline, and no secret access.
  • The node cannot add tools beyond its declared allowlist or change execution identity, approval policy, or budgets from prompt content.
  • Production, costly, and external nested actions use the workflow version grant only when its fixed constraints cover the resolved call; otherwise the node pauses for a new approval.
  • Output must validate against the configured JSON schema before downstream conditions or actions can consume it.

Expected result

Stackie and MCP execute identical asset-service actions through the central governed registry with account ownership, scope, idempotency, approval, audit, cancellation, and redaction enforced.

Media Workflows visual builder and API

Author editable templates or blank typed DAGs that coordinate asset gates, native StackShift services, bounded Stackie reasoning, and approved external integrations.

Media Workflow authority, integrations, and recovery

Operate workflow grants, execution principals, durable waits, restricted HTTP connections, signed inbound hooks, retries, cancellation, and post-publish warnings.

StackShift AI agents

Stackie and five direct-entry specialists perform evidence-based work through durable runs, tenant-scoped tools, and approvals bound to the exact action and target.