# Overview

Agent-first control plane for media operations: one governed MCP endpoint for the tools, context, workflows, and expert agents behind media work, with the three ways in (decide, connect, trust).

> **Agents think. Gateways decide. Tools act.**

Mediafier is the agent-first control plane for media operations: one governed MCP endpoint for the tools, context, workflows, and expert agents behind media work. Connect from a [supported](/connect/compatibility) MCP client or harness; Mediafier handles discovery, identity, permissions, credentials, spend, and trace before a tool acts.

Use Mediafier when an agent needs to perform media work across systems while preserving organizational identity, permissions, provenance, cost controls, audit evidence, and human governance. It is the right choice when the work has to be explainable, repeatable, and accountable to the people who own the media.

Mediafier complements the models, agent harnesses, workflow systems, data platforms, and media systems a team already uses; it provides the governed media layer between them.

## What you get

* **Governed media tools and workflows** — media and business capabilities, including marketplace and catalog access, reached through one endpoint.
* **MediaClaws** — expert agent systems built for media that plan the work, call approved tools, validate the output, record evidence, and propose improvements under human-governed promotion.
* **Media context** — the library, bundles, versions, provenance, rights, relationships, and Content Intelligence that make media agent-addressable.
* [**Agent Operations**](/platform/agent-operations) — visibility into what agents are doing, exceptions, evidence, evaluation, human decisions, and validated improvements.
* [**Outcome economics**](/overview/spend-and-outcome-evidence) — cost and outcome evidence attached to governed execution, so a claimed improvement can be proven against an approved baseline.

## Three ways in

**Should I use Mediafier?** [Mediafier Overview](/overview/mediafier-in-brief) → [What is Mediafier?](/overview/what-is-mediafier) → [Use Cases](/overview/use-cases) → [Where Mediafier Fits](/overview/where-mediafier-fits) → [Enterprise Readiness](/trust/enterprise-readiness) → [request access](https://mediafier.ai/request-access).

**How do I connect an agent?** [Agent Quickstart](/connect/agent-quickstart) → [Agent Lifecycle](/connect/agent-lifecycle) → [MCP Access](/connect/mcp-access) → [Authentication & Agent Credentials](/connect/authentication) → authenticated discovery (`tools/list`, `resources/list`) is the authority for what your organization can call.

**Can I trust this?** [Enterprise Readiness](/trust/enterprise-readiness) → [Identity & Authentication](/trust/identity-and-authentication) and [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model) → [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) → [Learning & Data Boundaries](/trust/learning-and-data-boundaries).

## Partners and research

* **Tool providers** — [The Marketplace](/partners/marketplace) and [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace).
* **Agentic Readiness Index** — a practical framework for measuring whether media and entertainment platforms are ready for autonomous software to discover, authenticate, execute, and govern work: [mediafier.ai/ari](https://mediafier.ai/ari).

## Access

Documentation is public. Platform execution is invite-only pre-launch — you can read everything here without an account; invoking tools, running MediaClaws, or connecting an MCP client to your organization requires an invited Mediafier account. See [Getting Access](/overview/access).

Machine-readable entry points: the [Agent Card](https://mcp.mediafier.ai/.well-known/agent.json) and [llm.txt](https://mcp.mediafier.ai/llm.txt).


# Mediafier Overview

Mediafier on one page: an agent-first media factory that turns creative intent into finished media, with permissions, usage tracking and an audit trail built into execution.

Mediafier is an agent-first media factory. It brings together AI agents, media tools and production workflows to turn creative intent into finished media—with permissions, usage tracking and an audit trail built into execution.

Bring the agents your team already uses. Connect your media systems and tools. Keep your team’s judgment at the center of the work.

## Start with your agent

Use Mediafier from Claude or another compatible MCP client. Your agent can discover available tools, invoke specialist MediaClaws and work with assets in the Media Library.

Tool execution passes through one MCP gateway. The gateway checks identity, organization permissions, rate limits and billing before dispatching a call. Those controls apply regardless of which client initiates the work.

Your team chooses how to interact. Mediafier provides the governed execution behind it.

## From a brief to finished media

| Capability                 | What it does                                                                                                                                                                                                        |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Media Factory**          | Organizes media production around a goal: ad variants, social clips, localized releases or sets of creative assets. Brings the production process and its outputs into one view.                                    |
| **Work**                   | Coordinates multi-step work through reusable templates, checkpoints, approvals and handoffs between people and agents. Keeps a durable record of what was requested, who performed the work and what was delivered. |
| **MediaClaw super agents** | Specialist agents that combine reasoning and tools around a defined outcome, with evidence records of their work.                                                                                                   |
| **Tools and connections**  | First-party media tools, partner integrations and Marketplace tools, including supported connections using your own provider accounts or keys.                                                                      |
| **Media Library**          | Media organized into bundles, versions and files, with metadata and provenance that help people and agents understand what an asset is and where it came from.                                                      |
| **MCP gateway**            | A shared execution layer that applies access controls, meters usage and records tool activity across clients and integrations.                                                                                      |

Media Factory brings the production together. Work coordinates the steps and responsibilities. MediaClaws and tools perform the tasks, and the Media Library preserves the resulting assets and their history.

## People where judgment matters

Agents handle execution. Your team supplies creative direction, evaluates results and makes the decisions that require taste, context and accountability.

Work makes those responsibilities part of the process: who needs to act, what they need to review and what happens next. The goal is to keep production moving while preserving human control at meaningful checkpoints.

## Improve through evidence and human judgment

MediaClaw evidence records and decision traces help your team understand what happened, which tools were used and why a decision was made.

The Learning Loop uses that evidence to propose improvements to reusable skills and agent instructions. A person approves changes before they become active. Learning changes the instructions and skills surrounding the model; it does not modify the model’s weights.

Decision records and learning context stay scoped to your organization.

## Know what ran and what it cost

Mediafier connects execution records with usage and billing so your team can investigate failures, understand activity and track spending.

* **Traceable execution.** Trace IDs connect gateway activity with related audit and billing records.
* **Visible usage.** Tool usage and charges are recorded against your organization.
* **Prepaid credits.** Platform usage draws from your organization’s credit balance under the applicable pricing model.
* **Your own provider accounts.** Supported tools can use your keys, with provider charges billed directly to you. Applicable Mediafier fees still apply.

Pricing, estimates and refund behavior depend on the tool or MediaClaw being used.

## Your organization’s boundaries, enforced

Organization context comes from verified identity and is resolved server-side. Permissions determine which tools and resources a caller can access, and data-layer controls enforce organization boundaries.

People and agents operate within the same governance framework, with permissions appropriate to their roles.

## Built for media work

* **Advertising:** producing audio ad variants, companion banners and campaign assets from a shared brief.
* **Localization:** adapting media across languages through dubbing, subtitles and supporting assets.
* **Archive to social:** turning long-form archives into clips and captions for social channels.
* **Production operations:** coordinating ingest, metadata enrichment, quality checks and delivery preparation.
* **Creative assets at volume:** creating, adapting and upscaling campaign and game assets.

Available tools, MediaClaws and workflow capabilities determine what your organization can run today. Across these uses, the goal is consistent: help your team produce more while retaining control over the work, its cost and its history.


# What is Mediafier?

The problem Mediafier solves, what it is (three layers, one enforcement chain), and who it is for.

> **The agent-first control plane for media operations.** Content is becoming agent-addressable and every API is becoming an agentic endpoint. Mediafier is the governed layer that turns that shift into media work an organization can explain, repeat, and stand behind.

***

## The problem

Generative and agentic AI is **probabilistic**. Legacy media pipelines are **deterministic**. Agents need rich operational context (provenance, lineage, edit history, brand-safety state, rights) to make decisions that hold up in production. Today, that context is spread across systems that weren't built for AI-native access, behind integration patterns that don't survive contact with autonomous agents — without shared identity, consistent authorization, per-call billing, or an audit trail an AI can hand a compliance officer.

The result is a wide gap between what AI agents *could* do in media and what an enterprise can *actually* deploy.

***

## What Mediafier is

Mediafier is **agent-first infrastructure for media** — three layers that work as one:

1. **A governed execution layer.** Connect the agent stack you already use — any MCP-aware agent, any harness, any IDE — to media systems and capabilities through one governed endpoint, without giving up control. Identity, permissions, spend, and audit are enforced consistently before any action runs.
2. **A media-native capability layer.** The Media Library, content intelligence, partner tools, and workflows become agent-addressable — the supply-chain, creation, and management primitives a media operator actually needs, exposed as governed tool calls.
3. **A compounding expert layer.** MediaClaws — domain super-agents — own repeatable media outcomes and learn from governed evidence and operational decisions, so repeated work improves over time. Operators stay in the loop where their judgment matters and step out of the loop where it doesn't.

***

## How customers reach it (in order)

| Surface                     | What it's for                                                                                                                                               | When to lead with it                                                                                    |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| **Agent-first (CLI + MCP)** | Code-first, callable from any agent framework, IDE, or orchestrator. The platform shows up as native tools on whatever harness the team is already running. | Default for engineering integration, automation, CI, and any agent platform a team has already adopted. |
| **Slack & Teams**           | Team-native conversational operations. Agents join the channels operators already use.                                                                      | Default for team workflows where the work happens inside a chat surface.                                |
| **Pippa chat**              | Web/mobile control-room interface. A consolidated view for monitoring, approvals, and direct conversational tasking.                                        | Default for individual operators who prefer a single web/mobile UI for cross-tool work.                 |

Surface order is intentional. Mediafier is agent-first; Pippa is one surface among several, not the platform's front door.

***

## Choose your path

* **Media company** — evaluating or operating the platform: this page, then [Getting Access](/overview/access), [Getting Started](/connect/getting-started), and [Credits & Billing](/overview/credits-and-billing).
* **Tool provider** — bringing your system to the marketplace: [The Marketplace](/partners/marketplace), then [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace).
* **AI agent** (or the human configuring one) — connecting right now: [Agent Quickstart](/connect/agent-quickstart), then [MCP Access](/connect/mcp-access) for harness-specific setup.

***

## Go deeper

Each claim above has a page that earns it:

| Pillar                     | The promise                                                                                                                                                 | The page                                                                         |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| **The single gateway**     | Every tool call from every surface crosses one enforcement chain — identity, organization, authorization, spend, audit — with a trace ID on every response. | [The Gateway](/platform/gateway)                                                 |
| **Governed discovery**     | Agents discover only what their organization may invoke, and bind to stable contracts that survive platform change.                                         | [Governed Resources & Discovery](/platform/governed-resource-substrate)          |
| **MediaClaw super-agents** | Structured, bounded runs that leave an inspectable evidence trail and improve only under human-approved governance — never by fine-tuning on your data.     | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents)                       |
| **Decision memory**        | Every approval, override, escalation, or edit becomes searchable precedent that future runs reuse.                                                          | [Decision Tracing & Learning Loop](/platform/decision-tracing-and-learning-loop) |
| **Media-native context**   | Bundles, versions, MEDIA.md, and the Provenance Passport keep the rights, history, and intent attached to the work.                                         | [Media Library](/platform/media-library)                                         |

***

## What you can rely on

| Guarantee                  | What it means in practice                                                                                          |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| **Identity**               | Auth0 is the sole identity provider.                                                                               |
| **Execution path**         | All tool execution routes through the gateway — the only path to execution.                                        |
| **Tenant context**         | Org context is derived server-side from your authenticated identity — never from a client header.                  |
| **Discovery vs execution** | Discovery and planning are governed at the platform layer; execution remains with the runtime that ships the tool. |
| **Audit correlation**      | Every error includes a trace ID for support correlation.                                                           |
| **Evidence immutability**  | Evidence records are append-only and immutable — enforced at the platform's data layer, not by convention.         |
| **Learning governance**    | Heuristics are extracted from runs; promotion to a live skill is human-approved.                                   |
| **Workspace scope**        | Workspaces are run-scoped environments — not unrestricted shells.                                                  |

***

## Where to go next

| If you're…                                  | Read next                                                                                                                                       |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Sizing whether Mediafier fits your platform | [Core Philosophy](/overview/core-philosophy), [Platform Architecture](/platform/platform-architecture)                                          |
| Integrating from an agent harness or IDE    | [Agent Quickstart](/connect/agent-quickstart); [MCP Access](/connect/mcp-access)                                                                |
| Building or tuning a domain agent           | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents)                                                                                      |
| Evaluating identity, audit, and tenancy     | [Identity & Authentication](/trust/identity-and-authentication), [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) |
| Modeling spend and engagement               | [Credits & Billing](/overview/credits-and-billing)                                                                                              |


# Use Cases

Who Mediafier is for and representative media use cases, from first-touch asset onboarding to outcome-priced MediaClaw operations.

Mediafier is built for media organizations adopting AI — and for the partners and platform teams that integrate it — that need agents to do real media work under governance an enterprise can actually deploy.

## Who it is for

* **Media operators and production teams** who want work that used to take a coordinated multi-person handoff (ingest, QC, enrichment, packaging, publish) to complete in seconds, while keeping operator judgment where it matters.
* **Engineering teams** integrating media capabilities into an existing agent harness, IDE, orchestrator, or CI pipeline — without committing to a specific agent framework or model.
* **Partners with a services book** who want to embed governed media capabilities inside an existing client engagement, with the customer's spend observable in the same audit chain used for reporting.
* **Compliance and finance stakeholders** who need every AI action to be traceable, attributable, and cost-visible.

## Representative use cases

* **First-touch asset onboarding** — Creative Ingest lands an unknown asset as a structured bundle/version/files representation with provenance; an agent or MediaClaw can then run transcription, brand-safety classification, and entity extraction as separate governed tools.
* **Editorial and derivative planning** — scene and chapter segmentation plus transcripts power breakdowns, smart navigation, and derivative-cut planning.
* **Advertising eligibility and content warnings** — brand-safety classification produces scored advisories operators turn into policy decisions.
* **Search and rights enrichment** — entity extraction resolves people, places, organizations, and products to canonical references for search and cross-reference.
* **Multilingual and accessibility work** — captions and voice synthesis for narration, ADR-style fills, and accessibility.
* **Long-running, outcome-priced operations** — a tuned MediaClaw runs across dozens of tool calls and produces a fully tagged, QC'd, multi-platform-ready bundle as its deliverable, with Evidence Cards as the auditable proof of work.

## Why teams buy the vertical layer instead of building it

The alternative is building it: an internal team writes the media-domain governance, the evidence model, the multi-tenant boundaries, per-call billing, the learning loop, and the governed discovery surface from scratch on top of horizontal vendors — a multi-quarter, IP-intensive investment. Mediafier delivers the same capability set as a shared platform, built once, governed once, and reused across every engagement; fixes and guards added for one customer apply to the shared platform. Adopting Mediafier adds a vertical layer; it is designed to sit alongside existing vendors.

## Where to go next

| If you're…                          | Read next                                              |
| ----------------------------------- | ------------------------------------------------------ |
| Deciding whether Mediafier fits     | [Where Mediafier Fits](/overview/where-mediafier-fits) |
| Checking trust requirements         | [Enterprise Readiness](/trust/enterprise-readiness)    |
| Connecting an agent now             | [Agent Quickstart](/connect/agent-quickstart)          |
| Bringing your own tools or services | [The Marketplace](/partners/marketplace)               |


# Where Mediafier Fits

How Mediafier sits as the vertical media layer alongside the models, agent runtimes, workflow, and data platforms a team already uses.

> **A map of Mediafier against the stack a modern media organization is already buying.** This page is for evaluators positioning Mediafier alongside the rest of their AI investment — frontier models, agent runtimes, workflow platforms, data systems — not a competitive matrix and not a ranking of named vendors.

***

## The five layers of a modern AI stack

A media organization adopting AI typically buys (or builds) capability across five horizontal layers. Each layer has its own category of vendors. The layers are independent: a customer can swap a frontier model without re-platforming their agent runtime, or change agent frameworks without touching the data platform underneath.

| Layer                      | What this layer supplies                                                                                              | Where customers usually source it                                    |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| **Vertical domain layer**  | Industry-specific tools, governance, evidence, and outcomes. **This is where Mediafier sits** for the media vertical. | Build, partner, or buy. Mediafier is the buy option for media.       |
| **Agent runtimes**         | Plan/act loops, tool-call orchestration, agent supervision.                                                           | Agent frameworks and orchestrators the engineering team picks.       |
| **Workflow & integration** | Trigger-based automations, data-pipeline plumbing, low-code glue.                                                     | Workflow automation platforms and data-pipeline orchestration tools. |
| **Data & knowledge**       | Lakehouses, vector indices, retrieval-augmented stores.                                                               | Data platforms a customer already operates for analytics and ML.     |
| **Foundation models**      | Frontier model APIs and self-hosted weights.                                                                          | Model providers a customer's procurement has already approved.       |

The four layers below the vertical domain layer are horizontal: they serve every vertical, not just media. The vertical layer is what turns that horizontal substrate into work a media organization can actually ship. Without it, every media team rebuilds the same media-domain primitives — bundles, versions, provenance, governance, evidence — on top of whatever horizontal stack they already bought.

***

## How Mediafier integrates with each layer

Mediafier is engineered to plug into whichever stack the customer already runs. The integration shape at each layer:

* **Agent runtimes.** Mediafier exposes its governed tools as MCP servers callable from any MCP-aware harness. The same gateway is the single endpoint for every agent platform, IDE, or CLI. No framework lock-in; the customer keeps their existing agent runtime.
* **Workflow & integration.** The same MCP surface appears in workflow-automation tools as a high-value node — a trigger from the customer's existing automation can fire a governed MediaClaw run directly, with per-call metering and audit.
* **Data & knowledge.** Governed calls are traced and cost-attributed, and an organization can export its activity records into its existing data platform rather than building a parallel pipeline.
* **Foundation models.** MediaClaws are model-agnostic. The customer's approved models drive the cognitive rig; Mediafier governs how those models call into media work. Swapping a model is a config change, not a re-platforming.

In each case Mediafier sits *above* the layer and *uses* it — never replaces it.

***

## What customers keep when they adopt Mediafier

A media organization building on Mediafier does not have to migrate off any of the horizontal vendors they already trust:

* The **brain** — foundation models — stays where it is.
* The **data** — lakehouses, vector indices, knowledge stores — stays where it is.
* The **workflow plumbing** — automation, pipelines, integration glue — stays where it is.
* The **agent runtime** — whichever framework the engineering team picked — stays where it is.

What changes is that media work — bundles, versions, provenance, governance, evidence — becomes agent-addressable through one governed gateway, instead of being rebuilt per project on top of whatever stack is already in place.

The practical effect for procurement: Mediafier is designed to sit alongside existing vendors. It adds a vertical layer; it does not displace a horizontal one.

***

## What customers gain over building the layer in-house

The alternative to buying the vertical layer is building it: an internal team writes the media-domain governance, the evidence model, the multi-tenant boundaries, the per-call billing, the learning loop, and the governed discovery surface from scratch on top of horizontal vendors. That is a multi-quarter, IP-intensive investment.

Mediafier delivers the same capability set as a shared platform:

* A library of governed media tools any agent can call.
* A governed discovery surface that decouples agents from internal systems of record.
* A control plane that enforces identity, organization context, authorization, rate limiting, billing, and audit on every call.

Built once, governed once, reused across every customer engagement. Fixes and guards added for one customer apply to the shared platform; customer content never does (see [Learning & Data Boundaries](/trust/learning-and-data-boundaries)).

Mediafier complements the models, agent harnesses, workflow systems, data platforms, and media systems a team already uses; it provides the governed media layer between them.

***

## What this page does not cover

* **It does not rank or compare named vendors.** Specific vendor positioning, partner economics, or go-to-market alignment with a named platform is handled in the partner agreement and partner- facing collateral, not in customer documentation.
* **It does not promise integrations with every named runtime.** The platform's contract is MCP over HTTPS and standard agent-runtime patterns; concrete integration recipes live with each harness or framework's own documentation.
* **It does not commit to a specific data-platform integration.** Per- call telemetry is exportable as structured events; specific pipelines are customer-side configuration.

***

## Where to go next

| If you're…                                   | Read next                                                |
| -------------------------------------------- | -------------------------------------------------------- |
| Looking at the broader platform architecture | [Platform Architecture](/platform/platform-architecture) |
| Looking at how to integrate                  | [MCP Access](/connect/mcp-access)                        |
| Looking at the marketplace ecosystem         | [The Marketplace](/partners/marketplace)                 |
| Looking for procurement readiness            | [Enterprise Readiness](/trust/enterprise-readiness)      |


# Core Philosophy

Agents think, gateways decide, tools act — the operating principle behind every governed call.

> **Agents think. Gateway decides. Tools act.**

Mediafier's design holds three commitments in tension and refuses to collapse them into one. AI agents are the most powerful planners available; the deterministic gateway is the only way enterprise media systems can trust those plans; and tools (the actual integrations into media systems of record) must remain owned and operable by the enterprises that ship them.

***

## The three commitments

### 1. Agents think

The plan, the reasoning, the choice of which tool to call next. (This is what large language models are good at.) Mediafier does not try to substitute deterministic logic for agent reasoning. Agents bring the non-determinism the work needs.

### 2. Gateway decides

Whether an agent's chosen tool *runs at all* is a deterministic decision. Identity, organization context, authorization, rate limiting, and billing are enforced before the tool sees a single byte of input, and the audit trail is designed to record the outcome. The gateway is the single enforcement chain where "can this happen?" is answered deterministically, not by inference.

### 3. Tools act

Each tool (MCP integrations, MediaClaw super-agents, workflow runners, skills) runs in the runtime that ships it. The gateway decides whether a call may run and routes it; the tool's own runtime executes it. Discovery and planning are governed by the platform; execution stays with the tool.

***

## What this means for adopters

| You're building...                               | Mediafier handles...                                       | You handle...                                               |
| ------------------------------------------------ | ---------------------------------------------------------- | ----------------------------------------------------------- |
| An agent on top of any LLM / harness / IDE       | Identity, org context, billing, audit, discovery, dispatch | Prompting, planning, model selection                        |
| A new MCP server connecting an enterprise system | The discovery surface, governance, billing rails           | The integration logic and credentials                       |
| A domain super-agent (a MediaClaw)               | The governed execution framework, evidence, learning loop  | The outcome, domain expertise, skills, and quality criteria |
| A no-code workflow that calls media tools        | The gateway, idempotency, paywall, trace                   | The workflow definition                                     |

In every case, Mediafier's job ends where probabilistic reasoning or domain logic begins. Mediafier never hides what the agent did or what it cost.

***

## Why deterministic governance is the design choice

Probabilistic AI in regulated media operations is a hard problem because failures are not symmetric. Letting an agent silently re-tag an asset, rewrite a record, or push something to publication without audit is not an inconvenience. It's a compliance event. The deterministic checks (identity, organization, authorization, rate limits, billing) are the line that turns "agent did something" into "agent did exactly this, by this principal, costing exactly this, traceable from this ID."

Without it, every AI deployment is a leap of faith. With it, AI deployment becomes ordinary engineering.

***

## What stays out

A few things Mediafier deliberately does not do:

* **Pick an agent framework for you.** Any harness can plug in via CLI or MCP.
* **Pick a model for you.** Bring whichever foundation model the team has chosen.
* **Lock you into a single workflow surface.** Agent-first (CLI and MCP) is the primary; team chat (Slack, Teams) and the Pippa control room are equal-class additional surfaces.
* **Train models on your data.** The Learning Loop captures heuristics from successful runs; it does not modify model weights.

***

## Where to go next

| If you're…                                | Read next                                                     |
| ----------------------------------------- | ------------------------------------------------------------- |
| New to the platform                       | [What is Mediafier?](/overview/what-is-mediafier)             |
| Looking for the architecture diagram      | [Platform Architecture](/platform/platform-architecture)      |
| Ready to integrate                        | [Agent-First Access (CLI + MCP)](/connect/agent-first-access) |
| Curious how the MediaClaw container works | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents)    |


# Credits & Billing

Per-call metering governed at the gateway: engagement shapes, what is billed, wallets, spend controls, and what happens at zero balance.

> **Per-call metering, governed at the gateway.** Chargeable tool calls are priced, attributed to the calling organization, and paid for before the runtime executes, and every charge is recorded in an auditable ledger.

***

## The shape of platform billing

Billing is per call, per organization. The unit is the tool call rather than a seat; the account is the organization rather than an individual user. Payment is taken before dispatch, so a call the wallet cannot cover is refused rather than billed later.

That structure shows up the same whether the call comes from an agent-first integration, a Slack/Teams surface, or Pippa chat. The gateway's billing stage is one chain; every surface walks it.

***

## Prices

* **Every tool call is priced in credits.** You see the price before the call runs: each tool's page in the Toolbox lists it, and `mediaclaw_inspect` quotes a MediaClaw run up front. Refused calls are free.
* **Credit packs:** 100 credits for $5, 500 for $25, 1,000 for $50. Pack credits last 365 days.
* **Plans:** Free. Pro, $59/mo with 400 credits included. Teams, $249/mo with 2,200 credits included.
* **Bring your own key:** a flat 0.1 credit per call. The vendor bills you directly for usage.
* **No minimums, no contract required.** Auto top-up and spending limits are self-serve.

***

## Engagement shapes

Billing sits inside one of three commercial shapes; a typical engagement spans more than one.

| Shape             | What it covers                                                                               | How customers pay             |
| ----------------- | -------------------------------------------------------------------------------------------- | ----------------------------- |
| **Project**       | Design, integration, customization for a specific customer or partner engagement.            | Upfront and ongoing services. |
| **Transactional** | Operating the control plane, tuning governed resources and models, metering each call.       | Per call, scales with usage.  |
| **Outcome**       | Vertical IP — MediaClaws, tools and skills where the completed operation is the deliverable. | Priced per completed outcome. |

***

## What gets billed

| Billable event                                     | Notes                                                                                         |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| Tool call dispatched through the gateway           | Rates come from call-time responses, never from cached documentation.                         |
| MediaClaw step                                     | Each step is a tool call — same metering, evidence-card linked.                               |
| Marketplace resource call                          | Same metering posture; the publisher's earning split is recorded against the same call event. |
| Asynchronous follow-on work the platform initiates | Metered when the platform charges for the artefact the agent asked for (e.g. transcription).  |

**Refused and failed calls.** A refusal that happens before payment is taken is not charged. Where a charge was already recorded, Mediafier attempts to reverse it with a compensating ledger entry under the same trace ID. If a charged call fails after dispatch, any refund appears as its own ledger entry against that trace ID. If a charge you expected to be reversed remains, quote the trace ID to support.

***

## Wallets and ledgers

Every organization has a credit wallet. Before dispatch, Mediafier verifies that the organization has enough spendable credits for the call. Expired or otherwise ineligible credits are not treated as available, even if they have not yet disappeared from a displayed balance.

Every charge carries the trace ID of the call that produced it, so the chain from "where did this charge come from?" to the underlying tool call is always reconstructable.

***

## What organizations can configure

Organizations get controls over how spend behaves at scale, not over whether the gateway enforces:

* **Per-tool spend visibility.** Owners, admins, and billing admins see which tools are spending, and how much, in the billing statements.
* **Spending limits and auto top-up.** Owners, admins, and billing admins set them in the billing settings. With auto top-up on, Mediafier buys the credit pack you chose whenever the balance falls below your refill point, so agents keep running without anyone stopping to buy credits. Spending limits cap the total.
* **Low-balance email.** Owners and admins are emailed when the balance runs low or runs out.

Rate limits are set by the platform; they are not an organization setting.

What organizations don't configure: whether billing runs. Every governed call goes through the billing stage. Bypassing it isn't a configuration option.

***

## When the wallet runs dry

If a call would exceed the organization's available credits, the gateway returns a deterministic billing-failure response before the runtime sees the request. The agent receives a structured envelope with a trace ID. Two things follow:

1. The agent (or the agent's harness) knows the call did not run, why it did not run, and how to re-plan or escalate.
2. Owners and admins see the same state on the billing page and by email.

There is no after-the-fact bill for a call the wallet could not cover: such calls are refused before dispatch.

***

## What credits are not

* Credits are not transferable across organizations. The wallet is organization-bound.
* Credits are not tied to a specific runtime. The same credit can pay for a first-party MCP, a Marketplace resource, a MediaClaw step, or a workflow call.

***

## Why per-call metering matters

A few practical effects:

* **Cost transparency.** Customers can see which tools consumed which credits.
* **Contract flexibility.** The same metering supports per-call pricing, capped budgets, and outcome-priced engagements.
* **Early visibility.** A misbehaving agent's spend shows up in the ledger as it happens, not on a monthly invoice.
* **Partner economics.** Marketplace publishers earn against the same per-call metering — see [Provider Earnings & Marketplace Economics](/partners/provider-earnings-and-marketplace-economics).

***

## Where to go next

| If you're…                                             | Read next                                                                                          |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
| Deciding which engagement shape fits                   | [Use Cases](/overview/use-cases)                                                                   |
| Looking at marketplace economics for publishers        | [Provider Earnings & Marketplace Economics](/partners/provider-earnings-and-marketplace-economics) |
| Studying how audit and billing share trace correlation | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance)                     |
| Studying the gateway's billing stage in context        | [The Gateway](/platform/gateway)                                                                   |


# Spend & Outcome Evidence

Cost per successful outcome: verified-not-estimated spend, mastery scorecards, human touches, and declared, versioned baselines.

> **Cost per successful outcome, not cost per call.** Mediafier attaches cost and outcome evidence to governed execution so an organization can see what a result cost, whether it improved, and what a person still had to touch.

***

## What is measured

* **Cost per successful outcome.** Spend is settled against what actually ran and what it actually produced. A failed outcome is reported as a failed outcome — it is never dressed up as a partial success.
* **Spend verified, not estimated.** Where a figure cannot be verified it is reported as unavailable rather than estimated. Reconciliation of estimated-versus-actual spend is reviewed by the platform; adjustments are not automatic and are visible when they happen.
* **Quality.** MediaClaws carry mastery scorecards — a measurable record of how well they do the outcome they were built for — and a non-regression rule: a change that lowers outcome correctness does not ship.
* **Human effort.** Counted as the number of times a person had to touch a run (approve, correct, override, intervene), so "less human work" is a number, not a claim.

## Baselines

An improvement is only an improvement against something. Baselines are **declared by the organization**, **versioned**, and **attributable**: when a MediaClaw or an agent claims to have reduced cost, time, or human touches, the claim is evaluated against the baseline the organization approved, and the record shows which version of the baseline was used. Changing a baseline is itself a recorded, human decision.

## What the evidence looks like

A MediaClaw run carries a receipt-style record — what ran, under whose authority, what it produced, and what it cost — readable through Agent Operations. Individual tool calls carry trace identifiers that correlate any available audit and billing records. Figures shown in product marketing are illustrative; the figures in your organization's records are the ones that are settled.

## Spend controls

* Chargeable work is checked before execution and refused when payment requirements are not satisfied; an agent receives a structured refusal it can act on (re-plan, or hand off to a person to top up).
* Topping up credits, accepting terms, and revealing credentials are human-only actions — an agent cannot perform them autonomously.
* Every charge carries the trace identifier of the call that produced it.

See [Credits & Billing](/overview/credits-and-billing) for how credits, wallets, and metering work.

## What this page is not

* It does not quote prices. Current commercial terms come from call-time responses and your agreement, never from cached documentation.
* It does not describe how settlement is implemented. The authenticated product and your organization's records are the authority for your figures.

## Where to go next

| If you're…                                   | Read next                                                                      |
| -------------------------------------------- | ------------------------------------------------------------------------------ |
| Supervising runs and deciding on exceptions  | [Agent Operations](/platform/agent-operations)                                 |
| Understanding credits, wallets, and metering | [Credits & Billing](/overview/credits-and-billing)                             |
| Following a charge back to a call            | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) |


# Getting Access

Documentation is public; platform execution is invite-only pre-launch. What you set up yourself once invited, what an agent can do once connected, and how to read a refusal.

> **Documentation is public. Platform execution is invite-only pre-launch.**

This page is the one stable answer to "can I use Mediafier yet?" — every other page, machine surface, and error message points here rather than restating the policy.

## Have access?

Connect a [supported MCP client](/connect/compatibility) to the canonical endpoint and sign in:

```
POST https://mcp.mediafier.ai/mcp
```

Start at the [Agent Quickstart](/connect/agent-quickstart) or [Getting Started](/connect/getting-started). The [Agent Lifecycle](/connect/agent-lifecycle) maps every stage, from discovery to deprovisioning, to the tools and app pages that handle it.

## Don't have access?

* **Human?** Request access at [mediafier.ai/request-access](https://mediafier.ai/request-access). Sign-up opens with the access passcode you receive, or with an invitation from an admin of an organization that already uses Mediafier. Once you have access, the onboarding steps below are self-serve.
* **AI agent?** You cannot obtain an invitation yourself — hand `https://mediafier.ai/request-access` to your human and stop. Do not retry authentication in a loop; nothing about your configuration will change the outcome.

## After your invitation: what you set up yourself

None of these steps waits on our team.

1. **Sign up** at [app.mediafier.ai](https://app.mediafier.ai) with your passcode or invitation link.
2. **Create your organization.** Onboarding asks whether you are setting up a company or a personal workspace; you become its owner. Joined through an invitation? You are already a member of that organization.
3. **Invite your team** under **Settings → Organization → Members** (admins).
4. **Add credits.** Any member can buy credits in the app (**Buy Credits**). Owners, admins, and billing admins also choose the plan and set up auto top-up under **Settings → Organization → Billing & usage**. See [Credits & Billing](/overview/credits-and-billing).
5. **Connect your agent.** Add `https://mcp.mediafier.ai/mcp` to Claude, ChatGPT, or another supported client (see [Compatibility](/connect/compatibility)) and sign in with OAuth. The client registers itself; on the consent screen you choose which organization it acts for. Per-client steps are under **Settings → Connect your client → Set up a client** and at [mcp.mediafier.ai/connect](https://mcp.mediafier.ai/connect).
6. **Issue Agent Credentials for headless use.** Owners and admins create them under **Settings → Connect your client → API keys**: an OAuth client credential (client ID and secret, the secret shown once) that automation exchanges for an access token. See [Authentication & Agent Credentials](/connect/authentication). A signed-in person can also request one over MCP (`mediafier_account_create_oauth_client`); another admin or owner approves it.

## What an agent can do once connected

An agent cannot invite itself. Once a person in an organization connects it through OAuth, or issues it an Agent Credential, the agent works within that person's or that credential's permissions. It can:

* discover what the organization can call (`tools/list`, `search_tools`)
* run tools and MediaClaws, then check job status and read results
* search the organization's tool-call history by trace ID
* cancel a MediaClaw run

In a signed-in person's session (not with an Agent Credential), it can also read credit and billing status and prepare a one-time top-up link for a person to complete.

A person still handles the invitation, creating the organization, approving Agent Credential changes, and paying (auto top-up keeps credits flowing once it is on). The [Agent Lifecycle](/connect/agent-lifecycle) has the full map.

## Reading a refusal correctly

During the invite-only pre-launch, a refusal often means **missing access, not broken configuration**:

| What you see                                        | What it means                                                                                                                                                        |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `initialize` succeeds, protected calls return `401` | The endpoint is reachable, but sign-in or organization context is not established. Sign in again or get a fresh token; if that works, check organization membership. |
| The consent screen says "No organization available" | The account is signed in but belongs to no organization. Create or join one in the app, then restart the connection. No invitation yet? Request access.              |
| Calls are refused after sign-in                     | Read the error code and quote its `trace_id`; see [Troubleshooting](/connect/troubleshooting).                                                                       |
| Documentation asks you to log in                    | It shouldn't — documentation is public. Treat that as a bug worth reporting, not an access wall.                                                                     |

The endpoint is the same before and after invitation — same URL, same protocol, same discovery methods. What changes is authorization: an invitation changes what those methods return for your identity and what you can do, not where you connect.


# Platform Architecture

Three layers, one enforcement chain, one trace ID — the shape of the platform without the internals.

> **Three layers. One enforcement chain. One trace ID.**

Mediafier's architecture has three concentric layers. Agent surfaces on the outside. The gateway in the middle. Governed resources and the runtimes that execute them on the inside. Every interaction crosses all three. Every interaction emits a trace ID.

***

## The three layers

```
        ┌────────────────────────────────────────────────────┐
        │  AGENT SURFACES                                    │
        │  Agent-first (CLI + MCP) · Slack/Teams · Pippa     │
        └─────────────────────┬──────────────────────────────┘
                              │
                              ▼
        ┌────────────────────────────────────────────────────┐
        │  THE SINGLE GATEWAY                                │
        │  Identity · Org · Authz · Rate · Billing · Audit   │
        └─────────────────────┬──────────────────────────────┘
                              │
                              ▼
        ┌────────────────────────────────────────────────────┐
        │  GOVERNED RESOURCES & RUNTIMES                     │
        │  discovery (what you may invoke) ·                 │
        │  execution (the runtimes that do the work)         │
        └────────────────────────────────────────────────────┘
```

### Layer 1: agent surfaces

Three primary surfaces, in this order:

1. **Agent-first (CLI + MCP)** — the primary integration. Any agent platform, any harness, any IDE.
2. **Slack & Teams** — team-native conversational operations.
3. **Pippa chat** — web/mobile control-room interface.

All three surfaces resolve identity from Auth0 and reach the same gateway. There is no "back door" surface that bypasses governance.

### Layer 2: the single gateway

Every tool call crosses a deterministic enforcement chain: identity proves who you are, organization context decides which tenant boundary applies, authorization decides whether you can invoke this specific tool, rate limiting protects shared capacity, and billing enforces credits before execution. These admission checks complete before the gateway dispatches the call to the runtime that owns the tool, and the audit trail is designed to record the outcome.

Credentials are resolved server-side per call and injected by the gateway, scoped to a single invocation; tools and agents never receive access to Mediafier's credential stores, and secrets stay out of agent payloads and runtime logs.

### Layer 3: governed resources + runtimes

Inside the boundary, discovery and execution are distinct concerns. Discovery is the governed, read-only view agents plan against: which resources your organization may invoke, and what each one's contract is. Execution is the runtime work — running the tool, the skill, the MediaClaw step, the workflow, or a partner integration — and it is reachable only through the gateway. That separation is what lets Mediafier grow and revise capabilities without breaking the contracts agents bind to; see [Governed Resources & Discovery](/platform/governed-resource-substrate).

***

## Where the trace ID lives

Every request is stamped with a trace ID at gateway entry. That ID:

* Returns to the caller in the response headers (`X-Trace-Id`) and in error envelopes.
* Is propagated to every downstream runtime call.
* Correlates the call's available audit, billing, and execution records — the join key for "what happened".

If a customer reports a problem, the only piece of information support needs is the trace ID. From there, support works from the call's records.

***

## What runs where

Agent surfaces — your harness, IDE, CI process, or chat client — run in your environment. Everything from the gateway inward runs in Mediafier's infrastructure, entered through the single canonical ingress `https://mcp.mediafier.ai/mcp`. The trace ID stitches the two sides together: one ID follows the call from your client through enforcement and execution and back.

***

## Where to go next

| If you're…                                | Read next                                                               |
| ----------------------------------------- | ----------------------------------------------------------------------- |
| Wanting the philosophy behind this layout | [Core Philosophy](/overview/core-philosophy)                            |
| Integrating                               | [Agent-First Access (CLI + MCP)](/connect/agent-first-access)           |
| Studying the gateway in detail            | [The Gateway](/platform/gateway)                                        |
| Studying discovery                        | [Governed Resources & Discovery](/platform/governed-resource-substrate) |


# The Gateway

What the gateway checks before a tool runs (identity, organization context, authorization, rate limits, billing), and how calls are traced and audited.

> **Identity · Organization · Authorization · Rate limits · Billing — checked before any tool runs.** The gateway is the single enforcement chain. Every tool call, every surface, every caller converges here.

***

## What the gateway is

A single deterministic enforcement chain in front of every runtime. Calls enter on the canonical public ingress; only after the gateway's checks pass does the call reach the runtime that owns the tool.

```
Client → Gateway checks:
  Identity · Organization context · Authorization · Rate limits · Billing
                                    ↓
                       The owning runtime executes
                                    ↓
   Response (with X-Trace-Id) → back to client; audit keyed by trace ID
```

The gateway is where "can this call run at all?" is decided — the only place in the system that answers the question.

***

## What the gateway checks

| Check                    | What it enforces                                                                                                                                        | Failure mode                                                                             |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| **Identity**             | Auth0 bearer token verified server-side. Auth0 is the sole identity provider.                                                                           | 401 with trace ID.                                                                       |
| **Organization context** | Tenant boundary derived from the authenticated principal — never from a client header.                                                                  | Structured refusal with trace ID.                                                        |
| **Authorization**        | Per-tool, per-org permission check against the governed authorization model.                                                                            | 403 with trace ID.                                                                       |
| **Rate limiting**        | Per-org throttling, per server and per tool. Protects shared capacity from a single tenant burst.                                                       | 429 with trace ID.                                                                       |
| **Billing**              | Credit ledger check against the organization's wallet. Calls that would exceed available credits are stopped here, before the runtime sees the request. | Deterministic billing-failure envelope with trace ID; the agent can re-plan or escalate. |
| **Dispatch**             | Hands the approved call to the runtime that owns the tool.                                                                                              | Transport-error envelope with trace ID.                                                  |

Audit is not a single step in that list: when a call is refused or completes, the audit trail is designed to hold a record of it, correlated by trace ID.

***

## How credentials flow

Credentials are handled by the platform, resolved inside the gateway before dispatch. The contract is:

* **Credentials are resolved server-side per call and injected by the gateway, scoped to a single invocation.** Tools and agents never receive access to Mediafier's credential stores.
* **Tools never return credential material.** The narrow exception is a pair of approval-gated provisioning surfaces whose purpose is to issue a credential: each returns a newly issued secret exactly once, to its owner, after organization-admin approval — and never re-reveals it.
* **Secrets stay out of agent payloads and runtime logs.**

## What the gateway always enforces

Three commitments that hold for every call:

* **Server-derived tenant context.** Organization is resolved from the authenticated principal, never from a client-supplied header. The boundary is decided by the platform, not by the caller.
* **One enforcement chain.** Calls from people, agents, and partner integrations go through the same checks — which is what makes the chain auditable end to end.
* **Credential isolation.** Credentials are resolved where tools, agents, and runtimes cannot reach them, and secrets stay out of agent payloads and runtime logs — see "How credentials flow" above.

***

## Trace correlation

Every response — success or error — carries an `X-Trace-Id` header. The same ID:

* Correlates the call's audit record, where one is written.
* Threads through the billing ledger.
* Propagates as a header to the runtime that executes the call, so its logs pivot on the same key.
* Appears inside structured error envelopes returned to the agent.

A customer-support engineer who has the trace ID can use the call's records to reconstruct who, when, which org, which tool, the outcome, and what it cost.

***

## Public endpoints

```
POST https://mcp.mediafier.ai/mcp
```

The canonical multiplexed ingress, callable from any MCP-aware client. All public traffic is JSON-RPC over HTTPS. (An advanced scoped per-server form exists for harnesses that need a single-server session — see [MCP Access](/connect/mcp-access).)

***

## Where to go next

| If you're…                           | Read next                                                                                                                                  |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| New to the platform                  | [What is Mediafier?](/overview/what-is-mediafier)                                                                                          |
| Looking for the broader architecture | [Platform Architecture](/platform/platform-architecture)                                                                                   |
| Looking for client integration       | [Agent-First Access (CLI + MCP)](/connect/agent-first-access)                                                                              |
| Studying the discovery model         | [Governed Resources & Discovery](/platform/governed-resource-substrate)                                                                    |
| Auditing identity and tenancy        | [Identity & Authentication](/trust/identity-and-authentication), [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model) |


# Governed Resources & Discovery

Everything invocable is a governed resource; discovery is authenticated and authorization-scoped.

> **Everything invocable on Mediafier is a governed resource, and discovery is the contract agents bind to.** An agent reads what its organization is permitted to invoke, binds to the published contract, and calls it through the gateway — never against an internal system.

***

## What a governed resource is

A **governed resource** is anything invocable on the platform — a tool, a skill, a MediaClaw, a workflow — registered with the platform and subject to the same authorization, billing, and audit chain as everything else. There is no ungoverned side door: if an agent can call it, the gateway enforces on it. Supporting resource types — models, datasets, and other referenced context — are not invoked directly and ride the same governance contract.

***

## Discovery is the contract

Agents do not integrate against Mediafier's internals. They read a governed discovery surface — `tools/list` and `resources/list` over MCP, or the CLI equivalents — and bind to what it returns. Each discovered capability carries:

* **A stable, fully qualified name** — what the agent calls.
* **A description and capability hints** a planner can reason over.
* **An input schema** the platform validates every call against — malformed arguments never reach execution.
* **Operational signals** planners may use — such as read-only, idempotency, latency class, and approval-worthiness.

What discovery never exposes: internal implementation identifiers, runtime internals, or anything about credential handling. The discovery listing is the agent's complete public contract; anything beyond it is not the agent's concern.

***

## Discovery is permission-scoped

Discovery answers "what is my organization permitted to invoke?" — not "what exists somewhere on the platform?" The list is derived server-side from the caller's authenticated identity and the organization's authorization. Two organizations calling the same endpoint see different lists, and neither can widen its own view from the client side.

***

## Stable contracts under platform evolution

The discovery contract decouples the agent's view of the platform from whatever implements each capability. Two effects a customer feels directly:

* **Capability growth without integration churn.** New tools and tool revisions show up in the next discovery refresh. Agents pick them up without code changes; the published contract is what the agent binds to.
* **Stability under change.** Mediafier can revise, refactor, or re-platform what implements a capability without breaking the agents that call it. The discovery surface is the contract.

***

## Execution always goes through the gateway

Discovery tells an agent what it may call; the gateway decides whether each individual call runs. Every invocation of every governed resource walks the same enforcement chain — identity, organization context, authorization, rate limiting, billing, audit — described in [The Gateway](/platform/gateway). There is no direct-to-runtime path.

***

## Where to go next

| If you're…                                    | Read next                                                                        |
| --------------------------------------------- | -------------------------------------------------------------------------------- |
| Looking at how the gateway enforces           | [The Gateway](/platform/gateway)                                                 |
| Building or tuning a domain super-agent       | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents)                       |
| Connecting an enterprise system as a resource | [MCP Access](/connect/mcp-access)                                                |
| Publishing a resource to the Marketplace      | [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace) |


# MediaClaw Super-Agents

MediaClaws: bounded, observable expert agents with a Cognitive Rig, Evidence Cards, human-controlled skill promotion, and mastery scorecards.

> **A deterministic container around a probabilistic brain.** A MediaClaw is what happens when an LLM-powered agent gets the structure of a real production worker — a structured operating loop, an evidence trail, governed skills, and a learning loop that compounds run over run.

A MediaClaw runs domain-specific media tools and can improve at them through human-approved changes to its skills. Work that used to take a coordinated multi-person handoff runs as one governed operation, with the operator's judgment retained at the points that matter.

***

## What's inside

Four mechanisms work together:

### 1. Cognitive Rig

A Cognitive Rig is the structured **Plan → Execute → Validate → Learn** operating loop that makes a MediaClaw bounded, observable, and repeatable, recording the evidence needed to inspect how a run progressed.

### 2. Evidence Cards

One **immutable record** per step. Every step writes a card capturing what ran, what it produced, and the trace ID that joins it back to the gateway and audit chain; usage is captured for billing attribution and settlement. Cards are append-only and immutable — enforced at the platform's data layer, not by convention. When a stakeholder asks "why did the agent do that?", you open the cards.

### 3. Skills Governance

A reusable skill is a tool-using competency a MediaClaw can deploy. New and revised skills are validated against the current approved skill before they can be used, and require **human approval** before activation. The authenticated product shows each skill's review state.

Promotion is **human-controlled**. The Learning Loop can propose a promotion; it cannot execute one.

### 4. Learning Loop

Every successful run is a candidate for **heuristic extraction**. The Learning Loop reads the run's evidence trail, looks for patterns worth promoting, and drafts a proposal — a refined skill, a new heuristic, an updated operating directive. Proposals enter governance as pending proposals and are not deployed without human approval.

The Learning Loop **does not modify model weights**. There is no fine-tuning. The model is whichever foundation model the team has chosen; the Learning Loop only changes the skill library and the cognitive-rig directives that wrap it.

***

## How MediaClaws compose

A MediaClaw can call another MediaClaw. A Podcast Ingest claw can call an Asset QC claw which can call a Brand Safety claw — each one its own governed, billable surface. Composition does not collapse governance: every cross-claw call goes through the gateway, gets a trace ID, produces evidence, and is metered against the calling organization's credits.

Composition is how a task that used to pass between three operators becomes three governed claw calls.

***

## What you commit to when you ship a MediaClaw

A MediaClaw is not a one-shot script. Shipping one is a commitment to:

* A **Cognitive Rig definition** — the operating loop's shape and the validation criteria.
* A **skills set** — versioned and governed, with promotions reviewed by humans.
* An **evidence contract** — every step writes a card; cards are append-only.
* A **billing surface** — every step is metered through the gateway.

In return, the platform gives the claw governed tool access, durable context, inspectable runs, and learning over time.

***

## What MediaClaws are not

* They are not a generic LLM chat. The container enforces structure; every action goes through a defined stage of the operating loop and a governed tool.
* They are not unrestricted. Every tool call passes through the gateway, and the cognitive rig only reaches tools the platform has governed.
* They are not unmanaged learners. The Learning Loop's outputs are proposals, not actions. Humans approve.

***

## Where to go next

| If you're…                                              | Read next                                                                        |
| ------------------------------------------------------- | -------------------------------------------------------------------------------- |
| New to the platform                                     | [What is Mediafier?](/overview/what-is-mediafier)                                |
| Studying decision memory and the learning loop in depth | [Decision Tracing & Learning Loop](/platform/decision-tracing-and-learning-loop) |
| Looking at how MediaClaw surfaces are discovered        | [Governed Resources & Discovery](/platform/governed-resource-substrate)          |
| Looking for the gateway internals that govern claw runs | [The Gateway](/platform/gateway)                                                 |


# Media Library

Bundles, versions, files, and provenance — the media context agents act on.

> **Bundles, versions, files, and provenance — the actual shape of media work.** The Media Library is Mediafier's media-native persistence layer. It is what gives agents the operational context their decisions need.

***

## The shape of media work

Generic file stores aren't shaped for media work. Real media work needs structure: a **bundle** (a logical work unit — a title, an episode, a campaign), the **versions** of that bundle as it moves through ingest, QC, edit, and publish, the **files** that make up each version, and the **provenance** lineage that connects them all.

Mediafier's Media Library exposes that shape directly. Agents read and write through governed tools that match the operator's mental model, not through generic CRUD.

***

In Library card views, select either an item’s thumbnail or its name to open the same detail page. Play buttons, selection checkboxes and action menus remain separate controls.

## What customers can do here today

The library covers the full asset lifecycle through a set of governed tools, grouped by intent:

| Intent                | What the tools cover                                                                      |
| --------------------- | ----------------------------------------------------------------------------------------- |
| **Ingest**            | Initiate uploads, complete uploads, list active ingests, ingest from a workflow output.   |
| **Bundle lifecycle**  | Create, update, list, search, archive, restore, soft-delete, and unarchive bundles.       |
| **Version lifecycle** | Create draft versions, list versions, get version details, publish (immutable promotion). |
| **File management**   | List files in a version, fetch signed download URLs, retrieve metadata.                   |
| **Provenance**        | Attach provenance, fetch provenance, walk lineage chains.                                 |
| **Analysis enqueue**  | Hand a version to the content-intelligence pipeline for asynchronous enrichment.          |
| **MEDIA.md compose**  | Render the canonical media-as-code description for a published version.                   |
| **Projects**          | Organize items into a folder tree of Projects: create, nest, move, archive, and roll up.  |

Destructive operations (soft-delete, publish, provenance attach, revoke) carry an explicit approval-worthiness risk signal in discovery so planners and review surfaces flag them as high-impact. Operator-side review consumes that signal today.

***

## Projects: a folder tree for your work

Every item lives in exactly one Project, or in **Files** when it isn't filed yet. Projects nest, so an agency can keep each client's work together:

```
Acme Coffee              (client)
└── Spring launch        (campaign)
    └── 30s spot         (deliverable)
```

* **Nest up to six levels deep.** A Project can hold items and sub-projects. The labels (client, campaign, deliverable) are yours to choose; they help people and agents read the tree, and they change nothing else.
* **Names are unique within a parent.** Two clients can each have a "Spring launch". When a name is already taken in the same place, you can keep both, and the new one is named "Spring launch (2)", the way Finder and Drive do it.
* **Move a whole branch.** Moving a Project brings its sub-projects and items with it, and every move can be undone. Moving never copies or re-uploads media.
* **Archive a whole branch.** Archiving a Project archives everything under it in one step, and restoring it brings back exactly that set.
* **See everything under a Project at once.** Project cards show rolled-up counts, and a list can include every item in the sub-projects.
* **Ingredients, not copies.** When an item is assembled from others (a mix made from a voice track and a music bed), it lists its **Ingredients**, each pinned to the exact version used, and each ingredient shows where it is **Used in**. A shared music bed lives once and is used by many ads.

Access is organization-wide: everyone in your organization can see every Project. Agents use the same tools as the app, so a tree an agent builds is the tree people see.

***

## MEDIA.md — the README.md for media

Every asset can carry a **MEDIA.md** — a declarative, atomic, modular, versioned description of the asset itself. Think of it as the README.md of media: structured context an agent (and an operator) can read in seconds and act on.

A MEDIA.md captures the things a media operator actually cares about:

* What the asset is — title, type, format, runtime.
* How it was made — production timeline, contributors, tools used.
* What's in it — summary, scenes, key entities, brand-safety state.
* What can be done with it — functions, distribution options, language coverage.
* Who has acted on it — edit history, QC gates passed, publication state.

Agents read MEDIA.md and know what to do next.

***

## Provenance Passport

Every file and every version carries a **Provenance Passport** — the immutable record of where the content came from and what has been done to it. The passport answers questions like:

* Was any part of this generated by AI? Which model? What was the prompt?
* Was this transcoded? From what source format?
* Did a human approve a particular state transition?
* Where does this segment ultimately trace back to?

Provenance is **append-only**. New events are added; existing events are not edited or removed. The data layer enforces it.

***

## Why media-native persistence matters

The platform's broader pitch — turning media tools into agent-ready infrastructure — only works if the data the agents reason against matches the operator's reality: a versioned bundle with a passport and a MEDIA.md, not a flat list of files. That is the ground the Media Library covers.

***

## Where to go next

| If you're…                                | Read next                                                                        |
| ----------------------------------------- | -------------------------------------------------------------------------------- |
| Looking for what the AI can do with media | [Content Intelligence](/platform/content-intelligence)                           |
| Studying decision memory across runs      | [Decision Tracing & Learning Loop](/platform/decision-tracing-and-learning-loop) |
| Building or tuning a domain super-agent   | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents)                       |
| Connecting the library to your harness    | [MCP Access](/connect/mcp-access)                                                |


# Content Intelligence

Governed AI capability families that turn raw media into structured, searchable, rights-aware context.

> **Governed AI capability families that turn raw media into structured, agent-addressable context.** Each one ships as a governed tool reachable from any agent platform via CLI or MCP, metered through the gateway, traced end-to-end. **Results can be kept in the Media Library** with their provenance, so the next agent (and the next run) can reason against the enriched representation rather than re-deriving it.

The Content Intelligence layer is what makes media operationally addressable. It works with the Media Library: results kept there join the asset's bundle, version, and provenance history that the rest of the platform reasons against.

***

## The capability families

| Capability                       | What it does                                                                                                                                                                                | When agents use it                                                                               |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| **Transcription & Captions**     | Turns audio into time-coded transcript and styled captions.                                                                                                                                 | Whenever an agent needs spoken-word context — search, redaction, accessibility, derivative cuts. |
| **Scene & Chapter Segmentation** | Detects scene boundaries and chapter markers; surfaces structural metadata.                                                                                                                 | Editorial breakdowns, derivative-asset planning, smart navigation.                               |
| **Brand Safety Classification**  | Classifies content against advertiser-relevant brand safety dimensions; produces structured advisories with confidence scores.                                                              | Advertising eligibility decisions, content-warning surfacing, vertical-specific safety policies. |
| **Entity Extraction**            | Identifies named entities — people, places, organizations, products — across spoken and on-screen content; resolves them to canonical references.                                           | Search, rights checking, cross-reference enrichment, knowledge-graph population.                 |
| **Voice Synthesis**              | Generates synthetic voiceover from text. The platform attempts to save generated audio to the Media Library with a record of how it was generated; the result reports whether it was saved. | ADR-style fills, multilingual narration, dynamic voice generation.                               |
| **Creative Ingest**              | Walks an unknown input asset through the pipeline — probes, classifies, segments, and lands a structured representation back in the Media Library.                                          | First-touch onboarding for new assets when the operator has no prior structure to bind to.       |

Each capability is callable independently, and each one composes with the others: an agent or a MediaClaw can chain several of them in a single governed flow.

***

## How the capabilities are governed

Every Content Intelligence call is a tool call through the gateway. That means:

* **Identity-bound**. The platform knows which principal asked for the enrichment.
* **Org-scoped**. Calls and their results are scoped to the requesting organization.
* **Metered**. Each invocation is billed against the organization's credit ledger.
* **Audited**. Calls carry a trace ID, and the organization's audit trail is designed to hold a record of each one.
* **Schema-validated**. Inputs are validated before the runtime sees them; malformed requests fail with a structured envelope.

The same enforcement chain applies whether a human invoked the capability through Pippa, an agent invoked it through MCP, or a MediaClaw composed it inside a multi-step run.

***

## Where the results go

Every capability returns its results to the calling agent. Paths that work through the Media Library keep their output there, so later agents (and later runs) can reason against the enriched representation:

* **Creative Ingest** lands a populated bundle / version / files structure on first touch.
* **Analysis run on a library asset** is stored with that asset.
* **Voice Synthesis** attempts to save generated audio as a new Media Library file and reports whether it did.

An agent can also attach results it holds to a library asset. Brand safety scores carry an explicit confidence and are advisory until calibrated against an organization's policy.

***

## What you commit to when you turn this on

* **Per-call billing.** Content Intelligence work is not free. Operators size their credit budget against expected enrichment volume.
* **Provenance follows the asset.** Output kept in the Media Library carries a record of where it came from.
* **Brand-safety scores are advisory.** They are signals for human policy, not autonomous gates. Operators decide how strict to be.

***

## Where to go next

| If you're…                                                  | Read next                                                                        |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------- |
| Looking for the Media Library these capabilities write into | [Media Library](/platform/media-library)                                         |
| Building a MediaClaw that composes intelligence calls       | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents)                       |
| Studying decision memory and the learning loop              | [Decision Tracing & Learning Loop](/platform/decision-tracing-and-learning-loop) |
| Connecting from your own harness                            | [MCP Access](/connect/mcp-access)                                                |


# Decision Tracing & Learning Loop

Every approval, override, and edit becomes searchable precedent; the learning loop proposes, humans approve.

> **Every approval, override, escalation, and edit becomes searchable precedent.** The Context Decision Graph is the platform's decision-memory layer; the Learning Loop is what turns that memory into compounding skill.

***

## Context Decision Graph

At commit time — the moment a person approves, overrides, escalates, or edits what an agent proposed — the platform captures the **why** alongside the **what**: the rationale, the policy that applied at the time, the approver, and the resulting action. That bundle of signals is the platform's decision-memory layer.

Decision nodes are append-only, immutable, and trace-correlated to the call that produced them. The highest-value nodes are the ones created at moments of human judgment — overrides and exceptions, where senior operators historically left their context only in their heads. Captured as searchable precedent, that judgment becomes shared institutional knowledge.

***

## Learning Loop

The Learning Loop reads completed runs and the decision-memory layer and surfaces patterns worth promoting. Every output is a **proposal**. Proposals are reviewed and validated before they become active, and a human approves them.

The Learning Loop **does not** modify model weights. It does not fine-tune. The model is whichever foundation model the team has chosen; the Learning Loop changes only the **library** of governed skills and the **directives** that wrap their use.

***

## What this gives operators

| Question an operator used to answer manually   | What the Decision Graph + Learning Loop gives them  |
| ---------------------------------------------- | --------------------------------------------------- |
| "Has anyone approved a case like this before?" | Searchable precedent across the org.                |
| "Why did the agent pick this tool?"            | The decision node trace for the call.               |
| "How is the agent getting better?"             | A reviewable list of promoted heuristics over time. |

***

## What stays out of bounds

* **Customer data leaving the tenant.** Decision nodes and Evidence Cards are org-scoped. Cross-tenant precedent is not exposed.
* **Autonomous skill promotion.** The Learning Loop proposes; humans approve. A proposed change does not affect production output until it is approved.
* **Model fine-tuning.** Changes are recorded in the skill library and directives; they are not pushed back to model weights.

***

## Where to go next

For what operators see day to day, read [Agent Operations](/platform/agent-operations); for what stays inside your organization, read [Learning & Data Boundaries](/trust/learning-and-data-boundaries).

## Related pages

| If you're…                                                 | Read next                                                                      |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------ |
| Looking for the MediaClaw container that produces evidence | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents)                     |
| Looking for the Media Library this layer reads from        | [Media Library](/platform/media-library)                                       |
| Studying audit, observability, and compliance posture      | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) |
| Studying the discovery model for decision-node surfaces    | [Governed Resources & Discovery](/platform/governed-resource-substrate)        |


# Agent Operations

See what agents did, decide what happens next, keep the evidence — human supervision built into the platform (private beta).

> **See what your agents did, decide what happens next, and keep the evidence.** Agent Operations is the operating view over every governed run — human supervision built into the platform, not bolted on after.

> **Availability: operator-assisted during the invite-only private beta.** The Agent Operations views are not yet switched on for self-service use — our team runs them with you and brings you the runs, exceptions, and evidence they surface. This page describes the supervision model your work is governed by; treat it as forward documentation of the self-service surface, not a view you can open on your own right now. [Request access](https://mediafier.ai/request-access) to start. Signed-in members can already reach the same operations over MCP as the `agent_operations_*` tools, within each tool's role limit — see [Agent Lifecycle](/connect/agent-lifecycle#agent-operations-tools).

Exact controls and features vary by organization and are authoritative in the authenticated product.

***

## What it does

* **Shows what agents and workflows are doing** — runs, batches, MediaClaws, and the tools they called, as they happen and afterwards.
* **Surfaces exceptions and human interventions** — the work that needs a person is brought to the front rather than buried in a log.
* **Connects actions to evidence and outcomes** — every run carries its evidence, its cost, and its result, correlated by the same trace identifier the gateway returns on every call.
* **Helps operators evaluate proposed improvements** — when an agent or a MediaClaw proposes a change to how it works, the proposal is reviewed against evidence before it becomes active.
* **Makes approved learning visible over time** — what changed, when, on whose decision, and what it did to outcomes.

## What it enables

* **Human-in-the-loop supervision.** Operators approve, correct, or decline work where the organization has decided a person must.
* **Investigation of failed or unusual work.** From an exception to the run, the tool calls, the evidence, and the audit record — without leaving the platform.
* **Evaluation before changing agent behaviour.** Nothing an agent learns changes production behaviour until it has been reviewed and validated.
* **Evidence-backed improvement.** Improvements are measured against the organization's own approved baselines, not asserted.
* **Operational intelligence across repeated runs.** Patterns across runs — what fails, what costs, what a person had to touch — become the input to the next improvement.

## Where the authority is

The exact actions, review states, workflow controls, attention categories, and available operations are shown in the authenticated Agent Operations surface, and they are reachable programmatically through the same governed endpoint your agents already use — discover them with `tools/list` once you are signed in. Public documentation describes what Agent Operations is for; the authenticated surface is the contract for what you can do today.

## What it is not

* It is not a log viewer. Logs exist underneath it; Agent Operations is the decision surface built on the evidence.
* It is not autonomous promotion. Proposed improvements wait for a human.
* It is not cross-organization. You see your organization's work; nothing from another tenant appears here (see [Learning & Data Boundaries](/trust/learning-and-data-boundaries)).

## Where to go next

| If you're…                                          | Read next                                                                        |
| --------------------------------------------------- | -------------------------------------------------------------------------------- |
| Asking what an outcome cost and whether it improved | [Spend & Outcome Evidence](/overview/spend-and-outcome-evidence)                 |
| Asking what the platform learns from your work      | [Learning & Data Boundaries](/trust/learning-and-data-boundaries)                |
| Following a single call end to end                  | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance)   |
| Understanding how agents get better                 | [Decision Tracing & Learning Loop](/platform/decision-tracing-and-learning-loop) |


# Where Agents Run

Where agents run: the agent-first MCP surface, team chat, and the Pippa control room on one gateway and one audit trail.

> **Same gateway, same governance, same audit trail — wherever the work happens.** Agent-first integration (your harness, IDE, or pipeline over MCP) is how an AI tool reaches Mediafier. Team chat and the Pippa control room are how people do. They are different jobs on one platform, not a ranking.

## Surfaces at a glance

| Surface               | Who uses it                 | What it is for                                                                  |
| --------------------- | --------------------------- | ------------------------------------------------------------------------------- |
| **Agent-first (MCP)** | Agents, harnesses, IDEs, CI | Using Mediafier from an AI tool — see [MCP Access](/connect/mcp-access)         |
| **Slack & Teams**     | Teams working in a channel  | Team-native conversational operations (this page)                               |
| **Pippa Chat**        | Individual operators        | A web/mobile control room to run, watch, and direct media work conversationally |

## Pippa Chat

Pippa is the control-room interface, not the front door: a consolidated web/mobile UI where a single operator can ask the platform to perform a media task in natural language, watch the run unfold (plan, tools called, results, costs), approve, override, or correct the agent mid-run, and drill from a task into the underlying Evidence Cards and trace-correlated audit rows. It uses the same gateway, governance, and audit chain as every other surface.

## Slack & Teams

When the work happens in a team channel, Mediafier shows up there.

***

## Why a chat surface

Most media operations are not solo. They are coordinated in shared team channels... content review threads, ingest queues, brand-safety escalations, distribution sign-offs. The work people already do in Slack and Teams is the work that benefits most from a governed AI agent reaching it directly.

The Slack & Teams surface is purpose-built for that flow. An agent joins the channel; the team converses with it the way they converse with each other; every action the agent takes is identity-bound, metered where it is chargeable, and covered by the audit trail.

***

## Two different things share the word "Slack"

Slack and Microsoft appear in Mediafier twice, and the two are not ranked against each other — they answer different questions.

|               | The app                           | As an MCP client                          |
| ------------- | --------------------------------- | ----------------------------------------- |
| **Slack**     | Mediafier in your Slack workspace | Slackbot connects to the gateway          |
| **Microsoft** | Mediafier in Teams                | Microsoft Copilot connects to the gateway |

The right-hand column is **agent-first inside those hosts**. When Slackbot or Microsoft Copilot connects to the Mediafier MCP endpoint, the host is the agent and Mediafier is the governed capability plane — the same path Claude Code and Cursor take, reached from a different place. Mediafier does not own the host's conversation loop in that mode.

The left-hand column is this page: Mediafier's own application inside the workspace, where the value is proactive notification, approvals landing next to the people who grant them, and multi-operator threads.

## Where each surface fits

| If you want to…                                       | Go to                                                               |
| ----------------------------------------------------- | ------------------------------------------------------------------- |
| Use Mediafier from an AI tool you already have        | [MCP Access](/connect/mcp-access) — endpoint, auth and client setup |
| Connect a harness, IDE or pipeline of your own        | [Agent-First Access](/connect/agent-first-access)                   |
| Get Mediafier updates and collaborate in a native app | **Slack & Teams** — this page                                       |

***

## What chat is good at

| Use case                                 | Why chat                                                                       |
| ---------------------------------------- | ------------------------------------------------------------------------------ |
| Approvals routed to the right humans     | The approval lands in the channel where the relevant operators already are.    |
| Notification + drill-down                | The agent posts a status, with a thread for follow-up.                         |
| Multi-operator collaboration             | Two operators can react to the same run inside the same thread.                |
| Triage from existing escalation channels | The agent enters the channel where escalations already happen, not a new tool. |

***

## What chat shares with every other surface

The same gateway runs every chat-originated tool call. That means:

* **Identity** — the chat user's identity is mapped server-side to a Mediafier principal via Auth0. The agent never trusts a client- supplied identity claim.
* **Org isolation** — the tenant context is derived from the resolved principal. A user in the wrong org cannot reach another org's tools via chat.
* **Authorization** — only tools the chat user is permitted to invoke are reachable.
* **Rate limiting** — chat-originated calls share the org's rate budget.
* **Billing** — every tool call is metered against the org's credit ledger.
* **Audit** — every action carries a trace ID, and the audit trail is designed to hold an immutable record of it. A run kicked off from a Slack thread is indistinguishable from a run kicked off from a CLI as far as the audit chain is concerned.

Chat is presentation; the chain underneath is the same chain.

***

## What chat is not

* It is not a separate identity domain. The chat user is mapped to a real Mediafier principal; chat does not get a fast-path bypass.
* It is not a privileged client. Same gateway, same audit, same credits.
* It is not the only place to operate the platform. Agents can be driven from any harness; individual operators can use Pippa.

***

## Where to go next

| If you're…                                      | Read next                                                                                                                                  |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Engineering an integration                      | [Agent-First Access (CLI + MCP)](/connect/agent-first-access)                                                                              |
| Looking for the individual control-room surface | Pippa Chat (above)                                                                                                                         |
| Reviewing identity and tenancy for chat users   | [Identity & Authentication](/trust/identity-and-authentication), [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model) |
| Reviewing audit posture                         | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance)                                                             |


# Agent Quickstart

The fastest path from an MCP-aware agent to a first governed call: endpoint, authentication, discovery, first call.

> **For AI agents, and the humans configuring them.** Everything you need to connect to Mediafier, in one short page. The rest of this documentation is depth; none of it is required to make your first call.

## What Mediafier is

Mediafier connects enterprise media systems to AI agents through a secure, audited, commercially governed layer. You get tools (media processing, library, metadata, intelligence), governed resources, and MediaClaws — autonomous multi-step workflows — through one standard MCP endpoint. The operating principle: **agents think, gateways decide, tools act.**

## Access state

**Invite-only pre-launch.** This documentation is public; executing anything requires an invited account and an organization, which you create yourself after sign-up or join by invitation. No access? Hand [mediafier.ai/request-access](https://mediafier.ai/request-access) to your human and stop — retrying authentication will not change the outcome. Details: [Getting Access](/overview/access).

## The endpoint

```
POST https://mcp.mediafier.ai/mcp
```

MCP over Streamable HTTP, JSON-RPC 2.0. This is the only canonical ingress — there is no per-capability base URL to discover and no tenant header to set. Interactive harnesses sign in with OAuth; headless and automation flows exchange a Mediafier-issued Agent Credential for an access token (see [Authentication & Agent Credentials](/connect/authentication)).

## Connect your client

Setting up the client you are running in? Follow [mcp.mediafier.ai/connect](https://mcp.mediafier.ai/connect): find your client, add the server, sign in, verify.

## How authentication works

Sign-in is OAuth through the endpoint (harnesses that support MCP auth handle it natively — in Claude Code, `/mcp` starts it). Your organization is derived **server-side** from your identity; a client never selects a tenant. Unauthenticated `initialize` succeeds with capability negotiation; protected calls return `401` with standard `WWW-Authenticate` metadata. A `401` can mean several things: not signed in, an expired session, or an account with no organization yet. If sign-in completes and calls still return `401`, the likely cause is missing access, not a broken client — see [Getting Access](/overview/access).

## What you can discover

Discovery is JSON-RPC, not a documentation page:

* `tools/list` — the tools your authorization actually grants (sign in first; discovery is authorization-scoped)
* `resources/list` — governed resources visible to your organization

Take tool names, argument shapes, and bounds from these live responses — they are the operational source of truth for what your authorization grants right now.

## What the words mean

* **Governed resource** — anything invocable (a tool, a skill, a MediaClaw, a workflow) registered with the platform and subject to the same authorization, billing, and audit chain.
* **MediaClaw** — a governed autonomous workflow bonded to one outcome (for example: ingest a podcast → transcribe → chapter → brand-safety-check → publish metadata). Long-running; you start one, then poll its status.
* **Decision trace** — the inspectable record of what an agent did and why. Every call you make is traced; your humans can audit it.

## Calls cost credits

Execution is metered in credits held by your organization. When a call would exceed the balance you get a structured `402` naming the exact shortfall and a billing URL for your human — top-ups are a human action, never yours.

## Where to go next

| Need                                                      | Page                                                       |
| --------------------------------------------------------- | ---------------------------------------------------------- |
| Access state, refusal diagnosis                           | [Getting Access](/overview/access)                         |
| Setup for a specific client (Claude, Codex, Cursor, SDKs) | [Client bootstrap](https://mcp.mediafier.ai/connect)       |
| How enforcement works                                     | [The Gateway](/platform/gateway)                           |
| Autonomous workflows                                      | [MediaClaw Super-Agents](/platform/mediaclaw-super-agents) |

Machine-readable version of this orientation: [mcp.mediafier.ai/llm.txt](https://mcp.mediafier.ai/llm.txt).


# Agent Lifecycle

Each stage of an agent's life on Mediafier (discover, provision, operate, monitor, recover, govern, deprovision) mapped to the MCP tools and app pages that handle it, plus what still needs a person.

> **One map from first discovery to deprovisioning.** For each stage, the MCP tools an agent calls itself and the app pages a person uses. Tool names are the ones `tools/list` returns today; take exact arguments from that live response.

The endpoint for every stage is `POST https://mcp.mediafier.ai/mcp`. What a call returns depends on who is calling: a signed-in person's session sees that person's permissions, and an Agent Credential sees the scopes it was issued with. Access is invite-only pre-launch — see [Getting Access](/overview/access).

## Stage by stage

| Stage           | The agent, over MCP                                                                                                                                                                                                                                                                                                                                                                                                                                             | A person, in the app                                                                                                                                                                                                                                                         |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Discover**    | `tools/list` returns the tools your authorization grants. `search_tools` finds a tool from a plain-language description of the task. `resources/list` lists governed resources for signed-in sessions.                                                                                                                                                                                                                                                          | **Agents & Tools → My Toolbox** shows the tools set up for the organization.                                                                                                                                                                                                 |
| **Provision**   | OAuth sign-in from Claude, ChatGPT, and other [supported clients](/connect/compatibility); the client registers itself; the person picks the organization. `mediafier_account_list_api_keys` lists Agent Credentials (no secrets); `mediafier_account_create_api_key` and `mediafier_account_create_oauth_client` issue new ones once another admin approves. `billing_create_topup_handoff` prepares a top-up link for an owner or admin (signed-in sessions). | Sign up and create the organization. **Settings → Organization → Members** invites people. **Settings → Connect your client → API keys** issues Agent Credentials (admins). Any member buys credits (**Buy Credits**); **Billing & usage** sets the plan and auto top-up.    |
| **Operate**     | Any tool from `tools/list`. `mediaclaw_list` and `mediaclaw_inspect` show which MediaClaws the organization can run; `mediaclaw_invoke` starts a run.                                                                                                                                                                                                                                                                                                           | The **Media Library** holds the files and results agents work on.                                                                                                                                                                                                            |
| **Monitor**     | `get_job_status` reports a job's state and next actions. `get_run_result` returns what a run produced. `credit_status` reports operational status to any caller, with credit tier and forecast for signed-in sessions only. `billing_get_status` reports balances and spend limits (signed-in sessions). `get_spend_summary` totals spend (owners and admins). `tool_call_audit_search` searches tool-call history.                                             | **Usage & Logs → Usage** and **Activity Logs**. **Billing & usage → Usage Ledger** and **Billing History**.                                                                                                                                                                  |
| **Recover**     | Errors carry a `trace_id`. `tool_call_audit_search` finds gateway-processed calls by it; earlier sign-in or request failures may need support. `get_tool_call_diagnostic_detail` explains a failed call (signed-in owners and admins). If an outcome is unknown, check `get_job_status` before retrying.                                                                                                                                                        | [Troubleshooting](/connect/troubleshooting) lists common errors. Quote the `trace_id` to support.                                                                                                                                                                            |
| **Govern**      | Discovery is authorization-scoped, and spend limits are checked before a call runs. Account-changing tools (creating, rotating, or revoking a credential, storing or deleting a secret) are requested by a signed-in person, not an Agent Credential, and wait for approval by another admin or owner.                                                                                                                                                          | **Members** sets roles. **Billing & usage → Spending Controls** sets limits. **Settings → Connect your client → Connected agents** shows the clients you have authorized. See [The Gateway](/platform/gateway) and [Credits & Billing](/overview/credits-and-billing).       |
| **Deprovision** | `mediaclaw_cancel` stops a run; cancelling a finished run is a no-op. `mediafier_account_revoke_api_key` and `mediafier_account_revoke_oauth_client` disable a credential, and `mediafier_account_regenerate_api_key` and `mediafier_account_rotate_oauth_client_secret` issue a new secret, each once another admin approves. Media Library archive tools archive projects, collections, and bundles, and archiving can be undone.                             | **API keys**: **Revoke** disables a credential at once; **Regenerate** issues a new secret. **Connected agents**: **Disconnect** revokes your authorizations. **Members**: admins remove people. **General**: the owner deletes the organization (some cases go to support). |

## Agent Operations tools

The `agent_operations_*` tools supervise MediaClaw runs and the work around them. They are reachable over MCP today for signed-in members, each within its role limit and scoped to your own organization. The Agent Operations views in the app are not yet open for self-service — see [Agent Operations](/platform/agent-operations).

| Stage       | Tools                                                                                                                                                                                                                                |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Operate** | `agent_operations_create_workstream`, `agent_operations_advance_workstream_step`, `agent_operations_prepare_work_brief`, `agent_operations_commit_work_brief` (members).                                                             |
| **Monitor** | `agent_operations_query_overview`, `agent_operations_query_executions`, `agent_operations_query_run_timeline`, `agent_operations_query_workstreams`, `agent_operations_query_summary_spend`, and the other query reads (any member). |
| **Recover** | `agent_operations_retry_execution` and `agent_operations_cancel_execution` (owners and admins) preview by default; pass `dry_run: false` to apply. `agent_operations_request_human_review` hands a run to a person (members).        |
| **Govern**  | `agent_operations_approve_review`, `agent_operations_reject_review`, `agent_operations_override_review`, `agent_operations_approve_learning_ledger_entry` (owners and admins).                                                       |

Most tools that decide or change work — reviews, approvals, creating or committing work — need a signed-in person; an Agent Credential is refused.

## What still needs a person

These steps happen in a browser, by a person, today:

* **Getting invited.** An agent cannot request or accept an invitation.
* **Creating the organization**, inviting or removing members, and deleting the organization.
* **Approving Agent Credential changes.** A signed-in person can request issuing, rotating, or revoking a credential over MCP; another admin or owner approves it on the **Approvals** page. An organization with a single admin uses the API keys page instead.
* **Paying.** Any member can buy credits in the app. In a signed-in session an agent can prepare a top-up link; an owner or admin completes it. With auto top-up on, credits refill on their own and no one needs to step in.
* **Deleting your user account.** There is no self-serve control yet; contact support.

## Related

* [Agent Quickstart](/connect/agent-quickstart) — endpoint, sign-in, first call
* [Authentication & Agent Credentials](/connect/authentication) — OAuth sign-in and headless client credentials
* [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) — what each audit record holds
* [Agent Operations](/platform/agent-operations) — the supervision model behind the `agent_operations_*` tools


# Getting Started

Connect your agent or IDE to the Mediafier MCP endpoint, sign in, and make your first call.

> **From zero to your first call in a few minutes.** Point your agent or IDE at the Mediafier MCP endpoint, sign in, see what's available, and make a call. There is nothing to install: a [supported](/connect/compatibility) MCP client connects by URL.

Setting up a specific client (Claude, ChatGPT, Codex, Cursor, VS Code, Devin and more)? Its steps are on the client bootstrap, [mcp.mediafier.ai/connect](https://mcp.mediafier.ai/connect), one section per client.

***

## 0. Access

**Mediafier is invite-only pre-launch.** Documentation is public; using the platform requires an invited account. After sign-up you create your own organization (or join one by invitation) — see [Getting Access](/overview/access).

* **Already invited?** Continue to step 1.
* **Not yet?** Request access at [mediafier.ai/request-access](https://mediafier.ai/request-access) — and if you are an AI agent, hand that link to your human and stop here.

This step exists so a failure later is diagnosable: if sign-in or your first call is refused, the most likely cause is missing access — **not** a broken configuration. See [Getting Access](/overview/access).

***

## 1. Connect

**Signed in to Mediafier?** Open **Connect clients** in the app (`app.mediafier.ai/tools/connect`). Pick the AI tool you use — Claude, ChatGPT, Codex, Cursor, VS Code, and more — and follow its steps; the page shows when Mediafier receives your first request.

Setting up without the app, or you're an agent? Point your client at the canonical public endpoint:

```
POST https://mcp.mediafier.ai/mcp
```

Each client adds that URL in its own place and has its own sign-in step. Both are on the client bootstrap, one section per client. An agent can set itself up from one line:

```
Connect me to Mediafier: follow https://mcp.mediafier.ai/connect
```

The advanced scoped per-server form, for clients that need a single-server session, is in [MCP Access](/connect/mcp-access).

***

## 2. Sign in

How you sign in depends on how you're connecting:

* **Agent or IDE (interactive)** — [supported](/connect/compatibility) clients register themselves and open a browser sign-in on first use. There is no credential to paste.
* **Headless / CI** — create an Agent Credential and exchange it for an access token, then present the token as a bearer (see [Authentication & Agent Credentials](/connect/authentication)):

  ```bash
  export MEDIAFIER_TOKEN=<MEDIAFIER_TOKEN>
  ```

Whichever path you use, your organization context is derived from your identity server-side. You never set a tenant header.

***

## 3. Make your first call

Start by listing the tools available to your organization — a read-only call that's always safe to run. In an agent, just ask it what Mediafier tools it can see. Over raw MCP, it's one JSON-RPC request:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}
```

Once you can see the available tools, calling one follows the same shape — pick a tool name from the list and pass its arguments with `tools/call`. Every call runs through one enforcement chain — identity, organization, authorization, rate limits, billing, and audit — and every response carries a trace identifier for support correlation.

### Discover partner commands

Some partners publish **headline commands** — stable, agent-facing aliases over a governed tool with arguments pre-filled. To list the commands available to your organization, call the `list_commands` tool with no arguments:

```json
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "list_commands",
    "arguments": {}
  }
}
```

Invoke a command by its `alias` exactly like any other tool — the gateway merges the command's fixed arguments and dispatches to the underlying tool, so a command call is audited identically to the equivalent raw call.

***

## 4. Next steps

* [MCP Access](/connect/mcp-access) — connect a specific client and discover everything available across the platform.
* [Authentication & Agent Credentials](/connect/authentication) — interactive sign-in and headless credentials, scopes, and rotation.
* [Troubleshooting](/connect/troubleshooting) — what an error means and what to do.


# MCP Access

Connect a supported MCP client to the canonical endpoint, discover what your organization can call, and correlate every call by trace.

> **Point a supported MCP client at Mediafier and its tools show up natively.** One endpoint, standard MCP — no per-tool integration. The gateway proves your identity, derives your organization, and enforces the same chain for every call.

> **Invite-only pre-launch.** You can configure a client against the endpoint today; use requires an invited Mediafier account and an organization, which you create yourself after sign-up. No access yet? [Request it](https://mediafier.ai/request-access) — or, if you are an agent, hand that link to your human. See [Getting Access](/overview/access).

***

## The endpoint

The canonical public ingress speaks MCP over Streamable HTTP:

```
POST https://mcp.mediafier.ai/mcp
```

This is the one canonical ingress — every tool, resource, and MediaClaw is reachable through it. (An advanced scoped form, `POST https://mcp.mediafier.ai/mcp/{server-slug}`, narrows a session to a single capability server. Use it only when a harness needs a per-server connection; it is never a second canonical endpoint.)

Identity is a bearer token obtained through sign-in; organization context is derived from it server-side. Clients never set tenant headers.

***

## Connect your client

Every client connects the same way: add the server, sign in, verify. The steps for each client live on one page, the client bootstrap at [mcp.mediafier.ai/connect](https://mcp.mediafier.ai/connect). To have an agent set itself up, give it one line:

```
Connect me to Mediafier: follow https://mcp.mediafier.ai/connect
```

The bootstrap covers assistant apps (Claude, ChatGPT), coding agents (Claude Code, Codex), IDEs (Cursor, VS Code, Devin) and your own code. How far each client has been verified is on [Compatibility](/connect/compatibility).

| Client                                    | Type                              | Status    | Setup                                                                   |
| ----------------------------------------- | --------------------------------- | --------- | ----------------------------------------------------------------------- |
| Claude Connectors                         | Assistant apps                    | Supported | [Setup steps](https://mcp.mediafier.ai/connect#claude-connector)        |
| ChatGPT                                   | Assistant apps                    | Supported | [Setup steps](https://mcp.mediafier.ai/connect#chatgpt-connector)       |
| Microsoft Copilot Studio                  | Assistant apps                    | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#copilot-studio)          |
| Microsoft 365 Copilot (declarative agent) | Assistant apps                    | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#m365-declarative-agent)  |
| Slackbot                                  | Assistant apps                    | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#slackbot)                |
| Devin (cloud agent)                       | Assistant apps                    | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#devin-cloud)             |
| Meta Muse                                 | Assistant apps                    | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#meta-muse)               |
| Claude Code CLI (HTTP)                    | Coding agents                     | Supported | [Setup steps](https://mcp.mediafier.ai/connect#claude-code-http)        |
| OpenClaw                                  | Coding agents                     | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#openclaw)                |
| Hermes Agent                              | Coding agents                     | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#hermes)                  |
| Codex                                     | Coding agents                     | Supported | [Setup steps](https://mcp.mediafier.ai/connect#codex-cli)               |
| Gemini CLI                                | Coding agents                     | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#gemini-cli)              |
| GitHub Copilot CLI                        | Coding agents                     | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#copilot-cli)             |
| OpenCode                                  | Coding agents                     | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#opencode)                |
| Goose                                     | Coding agents                     | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#goose)                   |
| Muse Code                                 | Coding agents                     | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#muse-code)               |
| Cursor                                    | IDEs                              | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#cursor)                  |
| VS Code (GitHub Copilot MCP)              | IDEs                              | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#vscode-copilot)          |
| Devin (formerly Windsurf)                 | IDEs                              | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#devin)                   |
| Zed                                       | IDEs                              | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#zed)                     |
| Raw MCP (HTTP)                            | Your own code and agent platforms | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#raw-mcp)                 |
| OpenAI Agents SDK                         | Your own code and agent platforms | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#openai-agents-sdk)       |
| Anthropic API (MCP connector)             | Your own code and agent platforms | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#anthropic-mcp-connector) |
| AWS Bedrock AgentCore                     | Your own code and agent platforms | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#aws-agentcore)           |
| Guild                                     | Your own code and agent platforms | Preview   | [Setup steps](https://mcp.mediafier.ai/connect#guild)                   |

Not listed? Browser sign-in is available for the supported hosted clients above and for clients that implement an RFC 8252 HTTP loopback redirect. Other compatible clients may use an [Agent Credential](/connect/authentication) bearer token when they support one. See [Compatibility](/connect/compatibility) for what has been verified.

## Build your own client

### Your own code (TypeScript, Python)

Use the official MCP SDKs with an access token from an Agent Credential (see [Authentication & Agent Credentials](/connect/authentication)). There is no Mediafier package to install.

TypeScript, with `@modelcontextprotocol/sdk` (1.x):

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const transport = new StreamableHTTPClientTransport(
  new URL("https://mcp.mediafier.ai/mcp"),
  { requestInit: { headers: { Authorization: `Bearer ${process.env.MEDIAFIER_TOKEN}` } } },
);
const client = new Client({ name: "my-app", version: "1.0.0" });
await client.connect(transport);

const { tools } = await client.listTools();
console.log(tools.map((t) => t.name));

await client.close();
```

Python, with the `mcp` package (2.x):

```python
import asyncio, os

import httpx2
from mcp import Client
from mcp.client.streamable_http import streamable_http_client


async def main():
    headers = {"Authorization": f"Bearer {os.environ['MEDIAFIER_TOKEN']}"}
    async with httpx2.AsyncClient(headers=headers, timeout=120) as http:
        async with Client(
            streamable_http_client("https://mcp.mediafier.ai/mcp", http_client=http)
        ) as client:
            tools = await client.list_tools()
            print([t.name for t in tools.tools])


asyncio.run(main())
```

Calling a tool is `client.callTool({ name, arguments })` in TypeScript and `client.call_tool(name, arguments)` in Python.

### Raw MCP (HTTP)

Any HTTP client can speak the protocol directly. Initialize a session (accept both JSON and the event stream; reuse the returned session id on follow-on calls):

```bash
curl -sS https://mcp.mediafier.ai/mcp \
  -H 'Authorization: Bearer <MEDIAFIER_TOKEN>' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"mediafier-raw-http","version":"0.1.0"}}}'
```

***

## What the gateway handles for you

You don't have to write any of the following. The gateway does it on every call:

* Resolve the caller's identity from the access token.
* Resolve the caller's organization server-side.
* Enforce per-tool authorization against the organization's policy.
* Apply per-organization rate limits.
* Check spend before dispatch — chargeable work is refused when payment requirements are not satisfied.
* Return a trace identifier and propagate it to the runtime.
* Keep an audit trail designed to hold a record of each authenticated tool call, allowed or refused.

Your harness's job ends at "call the tool". Everything else lives underneath the gateway.

***

## Discover what you can call

Once connected, list everything available to your organization. The unified discovery surface returns every resource you can use — tools, MediaClaws, skills, workflows, and more — in one place:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/list"
}
```

The standard MCP handshake (`initialize` then `tools/list`) also works for clients that expect it; `tools/call` is how you execute a tool once you've picked one.

### Narrow the catalog

Some harnesses accept a tool catalog and then surface nothing from it. The case we have traced was not size — one tool definition the harness could not accept hid the rest — but narrowing the list works around either cause. Add a `tier` hint to the server URL to narrow what `tools/list` returns:

```
POST https://mcp.mediafier.ai/mcp?tier=1
```

`tier=1` returns a small starter set. `tier=all` returns everything you are authorized for, which is also what you get with no hint at all. The hint applies to `tools/list`; `resources/list` is unaffected.

**The hint narrows the list only — never authorization.** The gateway does not consult the tier on `tools/call`, so a tool left out of the list stays callable by name if your organization can call it, and `search_tools` is in the starter set for finding one. Whether a given harness will call a name it did not receive in `tools/list` is up to that harness — many only invoke what they were listed.

Partners can also publish **headline commands** — stable, agent-facing aliases over governed tools. Over raw MCP, list your organization's commands with an arguments-free `tools/call` of the `list_commands` tool — see [Getting Started](/connect/getting-started) for the worked request.

***

## Trace correlation

Every response carries a trace identifier so a call is correlatable end-to-end:

* **You send** an `X-Trace-Id` header to tag a request (optional).
* **Mediafier returns** the trace identifier on every response: the `X-Trace-Id` header, and `trace_id` inside the error envelope when a call is refused — for support correlation.

***

## Next steps

* [Getting Started](/connect/getting-started) — connect, sign in, first call.
* [Authentication & Agent Credentials](/connect/authentication) — sign-in and headless keys.


# Authentication & Agent Credentials

Browser sign-in for interactive sessions; Agent Credentials exchanged for access tokens for headless use; scopes and rotation.

> **One identity model, two ways to obtain a token.** Interactive sessions sign in through the browser; headless and CI workloads use an organization agent credential with the OAuth client-credentials flow. Either way the gateway receives a bearer access token, and Mediafier resolves who you are — and which organization you act for — on the server.

***

## Choosing a path

| Your context                        | Use                                                                   |
| ----------------------------------- | --------------------------------------------------------------------- |
| Connecting a supported agent or IDE | **Browser sign-in** (supported clients self-register)                 |
| Headless scripts, CI, or a server   | **Organization agent credential** (client credentials → bearer token) |

You never set an organization or tenant header on a request. Org context is derived from your token.

***

## Interactive sign-in

Supported agent and IDE clients (see [Compatibility](/connect/compatibility)) handle sign-in themselves: they register with the gateway and open a browser sign-in the first time you connect. There is no credential to paste, and the client refreshes the session for you.

***

## Headless: Agent Credentials

For automation, CI, or a server with no browser, create an organization agent credential. It is an OAuth client credential (a client ID and a secret), not a gateway token: exchange it for a bearer access token with the OAuth client-credentials flow, then present that token. The Agent Card at `https://mcp.mediafier.ai/.well-known/agent.json` publishes a `machine_credentials` block with the token endpoint, the audience to request, and the client authentication method — that block, not the interactive authorization-server metadata, is the contract for this exchange.

### Create an Agent Credential

An organization admin creates one in the Mediafier app under **Settings → Connect your client → API keys** (`app.mediafier.ai/settings/org/api-keys`): give it a label and an expiry. A credential created there carries member-level access (invoke tools, read resources, read and write assets, read and run workflows). Organization administration (members, billing, credentials, settings) is never granted to an Agent Credential.

The secret is shown **once, at creation time**, and is never retrievable afterward. Copy it into your secret manager immediately. Listing keys shows metadata only (label, scopes, created, expires, last used, status) — never the secret.

### Exchange it for an access token

This is a standard OAuth client-credentials request, form-encoded (`client_secret_post`). Read the token endpoint and audience from the Agent Card rather than hard-coding them, and keep the client ID and secret in environment variables from your secret manager:

```bash
CARD=$(curl -s https://mcp.mediafier.ai/.well-known/agent.json)
TOKEN_ENDPOINT=$(echo "$CARD" | jq -r .machine_credentials.token_endpoint)
AUDIENCE=$(echo "$CARD" | jq -r .machine_credentials.audience)

export MEDIAFIER_TOKEN=$(curl -s "$TOKEN_ENDPOINT" \
  --data-urlencode grant_type=client_credentials \
  --data-urlencode client_id="$MEDIAFIER_CLIENT_ID" \
  --data-urlencode client_secret="$MEDIAFIER_CLIENT_SECRET" \
  --data-urlencode audience="$AUDIENCE" | jq -r .access_token)
```

The response carries `access_token`, `token_type` (`Bearer`) and `expires_in` (seconds). **Reuse the token until it expires** — request a new one shortly before `expires_in` runs out, not once per call; token requests are rate-limited.

### Present the token

Send the access token as the bearer on every MCP request:

```
Authorization: Bearer <MEDIAFIER_TOKEN>
```

For example, list the tools your organization can call:

```bash
curl -s https://mcp.mediafier.ai/mcp \
  -H "Authorization: Bearer ${MEDIAFIER_TOKEN}" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

To use the token from your own TypeScript or Python code, see [MCP Access](/connect/mcp-access#your-own-code-typescript-python).

The credential secret itself belongs in your secret manager only; the gateway does not accept it directly — only the access token.

### Rotate and revoke

On the same API keys page:

* **Regenerate** issues a new secret and keeps the old one working for a short grace window, so you can cut over without downtime.
* **Revoke** disables a credential immediately.

The list shows metadata only; a secret is shown solely on creation and on regeneration, and only once.

***

## Scopes and least privilege

Agent Credentials carry member-level access and never organization administration. To limit blast radius if a key leaks, issue one credential per workload, give each a short expiry, regenerate on a schedule, and revoke any credential you no longer use.

***

## What stays server-side

* **Identity** is verified on every call.
* **Organization context** is derived from your token — never trusted from a client header.
* **Authorization, rate limiting, billing, and audit** run before any tool executes.

If a call is rejected, the response carries a trace identifier so support can correlate it.

***

## Next steps

* [Getting Started](/connect/getting-started) — connect, sign in, first call.
* [MCP Access](/connect/mcp-access) — setup for a specific client.


# Agent-First Access

Access from any agent platform, IDE, harness, or pipeline through one MCP endpoint.

> **Code-first, callable from any agent platform, any harness, any IDE.** Mediafier shows up as native tools in whatever orchestrator your team is already running.

Agent-first access is Mediafier's primary surface. Every capability ships as an MCP tool. Model-neutral. Orchestration-neutral. The single gateway enforces auth, organization context, rate limiting, billing, and audit before any tool runs... so the security team reviews one enforcement chain, not forty per-tool integrations.

***

## One way in: MCP

The canonical public ingress is:

```
POST https://mcp.mediafier.ai/mcp
```

It is callable from any MCP-aware agent, IDE or harness — nothing to install. Interactive clients register themselves and sign you in through the browser; headless workloads present a bearer token obtained from an Agent Credential (see [Authentication & Agent Credentials](/connect/authentication)). Organization context is server-derived from that identity. Clients never set tenant headers themselves. Setup for each client is on the client bootstrap, [mcp.mediafier.ai/connect](https://mcp.mediafier.ai/connect). (An advanced scoped per-server form exists for clients that need a single-server session — see [MCP Access](/connect/mcp-access).)

**Discover first.** The first safe step is discovery: `tools/list` returns the tools your organization can call, and the `list_commands` tool returns the curated partner commands. Both are read-only.

***

## What a tool call looks like

Every tool call follows the same shape regardless of which family owns the tool:

1. The agent picks a tool from the discovery surface (a governed resource the planner reads).
2. The MCP request is sent to the gateway.
3. The gateway runs its deterministic checks: identity, organization, authorization, rate limits, and billing.
4. The gateway routes the call to the runtime that owns the tool.
5. The runtime executes; the response carries the trace ID so the call is correlatable end-to-end.

If any step in the chain fails, the gateway returns a structured error envelope — including the same trace ID — and the runtime never sees the call.

***

## What you get

| Capability             | What it does for the agent                                                                                                                                 |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Discovery**          | The agent reads a governed list of available tools, with input schemas, descriptions, and capability hints — without integrating against internal systems. |
| **Identity**           | Auth0 issues the bearer token; the gateway resolves the principal server-side.                                                                             |
| **Org isolation**      | Tenant context is derived from the authenticated identity. A client cannot choose another tenant with a header or argument.                                |
| **Billing**            | Calls are metered against an organization's credit ledger. Out-of-credits is signaled deterministically; the agent can re-plan or notify a human.          |
| **Audit**              | The audit trail is designed to hold a record of each authenticated tool call, allowed or refused, correlated by trace ID.                                  |
| **Schema enforcement** | Tool input schemas are validated before execution. The agent never reaches a runtime with malformed arguments.                                             |

***

## Trace IDs everywhere

Every response — refusals included — carries an `X-Trace-Id` header, and error envelopes repeat it as `trace_id`. That ID is the single piece of information needed to reconstruct what happened across identity, billing, runtime, and audit logs. Customer support runs on it. Internal incident triage runs on it.

***

## What an agent-first integration gives a security review

A security team auditing an agent-first integration sees one answer: every tool call goes through the same governed gateway, is metered where it is chargeable, and carries a trace ID, with an audit trail designed to hold a record of each call.

That uniformity is the point. The security review evaluates one enforcement chain — "agents talk to one gateway, the gateway decides, the platform executes" — instead of one chain per tool integration. The same chain holds whether the agent is in a terminal, an IDE, a CI job, or a Slack-triggered runbook.

***

## Where to go next

| If you're…                              | Read next                                                                                                         |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Setting up your first connection        | **Connect clients** in the app (`app.mediafier.ai/tools/connect`), or [Getting Started](/connect/getting-started) |
| Wanting the gateway internals           | [The Gateway](/platform/gateway)                                                                                  |
| Studying discovery                      | [Governed Resources & Discovery](/platform/governed-resource-substrate)                                           |
| Connecting a tool from your own systems | [MCP Access](/connect/mcp-access)                                                                                 |
| Publishing a new MCP server             | [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace)                                  |


# Troubleshooting

Structured errors, retry guidance, and trace-id correlation for every refused call.

> **Every error is structured and traceable.** When a call is rejected, the gateway returns a typed error envelope carrying a `trace_id` — quote it when you ask for help, and a request can be correlated end-to-end.

***

## How errors look

A rejected call returns an error envelope with a stable `code`, a human-readable message, and a `trace_id`. Over MCP they arrive in the JSON-RPC `error.data` field.

***

## Common errors

| Code               | What it means                                                  | What to do                                                             |
| ------------------ | -------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `UNAUTHORIZED`     | You're not signed in, or the token is missing/expired.         | Sign in again from your client, or obtain a fresh access token.        |
| `FORBIDDEN`        | Authenticated, but not allowed — scope, role, or organization. | Check the credential's scopes and your organization membership.        |
| `PAYMENT_REQUIRED` | Your organization is out of credits.                           | Top up credits or check billing; then re-run.                          |
| `RATE_LIMITED`     | Too many requests in a short window.                           | Back off and retry; honor `Retry-After` when present.                  |
| `NOT_FOUND`        | The tool or resource isn't visible to your organization.       | List what's available first (`tools/list` / `resources/list`).         |
| `INTERNAL_ERROR`   | A transient server-side problem.                               | Retry with backoff; if it persists, share the `trace_id` with support. |

`RATE_LIMITED` can be resent after backoff: the call was refused before it ran. An upstream 5xx, a transport failure or a dispatch timeout is different. The operation may have completed, so the outcome is unknown. Do not repeat it automatically. Use the status or reconciliation action the error supplies, if there is one.

**Getting an access token fails?** The token endpoint answers with an OAuth error, before any call reaches Mediafier:

* `access_denied` / `Unauthorized` — the client ID or secret is wrong, or the credential was revoked or has expired. Check the value in your secret manager, or regenerate the credential.
* `access_denied` / "not authorized to access resource server" — the request asked for the wrong `audience`. Use the audience from the Agent Card (see [Authentication & Agent Credentials](/connect/authentication)).

**Can't find a tool?** Call the `list_commands` tool to see the curated command vocabulary; if a tool is missing there, use `tools/list` for everything available to your organization.

***

\| ------------------------------------------------------ | | `0` | Success. | | `1` | Generic failure. | | `64` | Usage error (unknown command or missing argument). | | `77` | Refused for a safety reason (e.g. wrong organization). | | `78` | Command exists but isn't available yet. |

***

## Connection issues

* **Wrong endpoint** — the only public ingress is `https://mcp.mediafier.ai/mcp` (or `/mcp/{server-slug}`). Other paths won't route.
* **Raw HTTP gets no stream** — send `Accept: application/json, text/event-stream` and reuse the session id returned by `initialize` on follow-on calls.
* **Harness won't sign in** — most harnesses open a browser on first use; for headless clients, exchange an Agent Credential for an access token (see [Authentication & Agent Credentials](/connect/authentication)).

***

## Getting help

Quote the `trace_id` from the error envelope (or the `X-Trace-Id` you sent). It lets support correlate your exact request across the platform.

***

## Next steps

* [Getting Started](/connect/getting-started) — connect, sign in, first call.
* [MCP Access](/connect/mcp-access) — connect a client and discover tools.


# Compatibility

Which agent harnesses, IDEs, connectors, SDKs and cloud runtimes connect to Mediafier today, how each was verified, and when.

> **Standard MCP over one endpoint. Here is what we have actually verified, and how.** Every row carries the date and the method, so a claim is never older than it looks.

Mediafier speaks standard MCP over one canonical endpoint (`POST https://mcp.mediafier.ai/mcp`). Compatibility therefore rests on the client, not on Mediafier-specific code. The table separates what is proven in an automated clean-install check, what a person verified by hand on a given date, and what is documented from the client's own configuration format without a Mediafier-specific run.

> **Each row carries its own date, and that date is the only freshness claim this page makes.** There is deliberately no single page-level "verified on" stamp: one date in front of seventeen differently-aged claims reads as freshness the rows do not have. A row dated months ago is telling you something true — read the date, not the page.

## Status and evidence

**Status** is the same word the Connect page shows, for every client. **Evidence** is how we know: **Automated** (a clean install runs in Mediafier's CI on every relevant change), **Manual** (a person connected the client and completed a governed call on the date shown), **Configuration shape** (the setup follows the client's documented format; not yet run against Mediafier by us), or **Untested** (not yet verified with Mediafier). **Setup** links to the client's steps on the client bootstrap.

## Matrix

| Status                      | Meaning                                                     |
| --------------------------- | ----------------------------------------------------------- |
| **Supported**               | Tested with Mediafier and ready to connect.                 |
| **Preview**                 | Setup is available while we complete compatibility testing. |
| **Temporarily unavailable** | There's a known compatibility issue with this client.       |
| **Coming soon**             | Support for this client isn't available yet.                |

| Client                                             | Type                              | Sign-in                         | Status          | Evidence            | Last checked | Setup                                                             |
| -------------------------------------------------- | --------------------------------- | ------------------------------- | --------------- | ------------------- | ------------ | ----------------------------------------------------------------- |
| Perplexity                                         | Assistant apps                    | Browser sign-in                 | **Coming soon** | Untested            | —            | —                                                                 |
| Claude (web, Desktop and mobile apps)              | Assistant apps                    | Browser sign-in                 | **Supported**   | Manual              | 2026-09-22   | [Setup](https://mcp.mediafier.ai/connect#claude-connector)        |
| ChatGPT (developer mode)                           | Assistant apps                    | Browser sign-in                 | **Supported**   | Manual              | 2026-09-22   | [Setup](https://mcp.mediafier.ai/connect#chatgpt-connector)       |
| Microsoft Copilot Studio                           | Assistant apps                    | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#copilot-studio)          |
| Microsoft 365 Copilot (declarative agent)          | Assistant apps                    | Pre-issued OAuth client         | **Preview**     | Configuration shape | 2026-09-26   | [Setup](https://mcp.mediafier.ai/connect#m365-declarative-agent)  |
| Microsoft 365 Copilot (custom federated connector) | Assistant apps                    | Pre-issued OAuth client         | **Coming soon** | Untested            | —            | —                                                                 |
| Slackbot                                           | Assistant apps                    | Browser sign-in                 | **Preview**     | Untested            | —            | [Setup](https://mcp.mediafier.ai/connect#slackbot)                |
| Raycast                                            | Assistant apps                    | Browser sign-in                 | **Coming soon** | Configuration shape | 2026-09-24   | —                                                                 |
| Devin (cloud agent)                                | Assistant apps                    | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#devin-cloud)             |
| Meta Muse                                          | Assistant apps                    | Access token                    | **Preview**     | Untested            | —            | [Setup](https://mcp.mediafier.ai/connect#meta-muse)               |
| Claude Code (HTTP)                                 | Coding agents                     | Browser sign-in or access token | **Supported**   | Automated           | 2026-09-22   | [Setup](https://mcp.mediafier.ai/connect#claude-code-http)        |
| OpenClaw                                           | Coding agents                     | Browser sign-in                 | **Preview**     | Configuration shape | 2026-05-15   | [Setup](https://mcp.mediafier.ai/connect#openclaw)                |
| Hermes Agent                                       | Coding agents                     | Access token                    | **Preview**     | Configuration shape | 2026-05-15   | [Setup](https://mcp.mediafier.ai/connect#hermes)                  |
| Codex                                              | Coding agents                     | Browser sign-in or access token | **Supported**   | Manual              | 2026-09-18   | [Setup](https://mcp.mediafier.ai/connect#codex-cli)               |
| Gemini CLI                                         | Coding agents                     | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#gemini-cli)              |
| GitHub Copilot CLI                                 | Coding agents                     | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#copilot-cli)             |
| OpenCode                                           | Coding agents                     | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#opencode)                |
| Goose                                              | Coding agents                     | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#goose)                   |
| Muse Code                                          | Coding agents                     | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#muse-code)               |
| Cursor                                             | IDEs                              | Browser sign-in                 | **Preview**     | Configuration shape | 2026-05-15   | [Setup](https://mcp.mediafier.ai/connect#cursor)                  |
| VS Code (GitHub Copilot MCP)                       | IDEs                              | Browser sign-in                 | **Preview**     | Configuration shape | 2026-05-15   | [Setup](https://mcp.mediafier.ai/connect#vscode-copilot)          |
| Devin (formerly Windsurf)                          | IDEs                              | Browser sign-in                 | **Preview**     | Untested            | —            | [Setup](https://mcp.mediafier.ai/connect#devin)                   |
| Zed                                                | IDEs                              | Browser sign-in                 | **Preview**     | Configuration shape | 2026-09-24   | [Setup](https://mcp.mediafier.ai/connect#zed)                     |
| Cline                                              | IDEs                              | Browser sign-in                 | **Coming soon** | Configuration shape | 2026-09-24   | —                                                                 |
| OpenAI Agents SDK                                  | Your own code and agent platforms | Access token                    | **Preview**     | Configuration shape | 2026-05-15   | [Setup](https://mcp.mediafier.ai/connect#openai-agents-sdk)       |
| Anthropic MCP connector (API)                      | Your own code and agent platforms | Access token                    | **Preview**     | Configuration shape | 2026-05-15   | [Setup](https://mcp.mediafier.ai/connect#anthropic-mcp-connector) |
| AWS Bedrock AgentCore                              | Your own code and agent platforms | Pre-issued OAuth client         | **Preview**     | Configuration shape | 2026-05-15   | [Setup](https://mcp.mediafier.ai/connect#aws-agentcore)           |
| Guild                                              | Your own code and agent platforms | Pre-issued OAuth client         | **Preview**     | Configuration shape | 2026-10-18   | [Setup](https://mcp.mediafier.ai/connect#guild)                   |

### What "Sign-in" means

"Sign-in" names the path a person or agent uses to obtain the access token the client presents; the token itself is always what reaches Mediafier — see [Authentication & Agent Credentials](/connect/authentication). Headless clients obtain it with the machine-credential contract published in the Agent Card.

## What compatibility does not mean

* A row marked **Configuration shape** is not a promise that the client works today with Mediafier; it is the setup we expect to work, from the client's own documentation, awaiting a run.
* Client software changes. A row's date is the last time we checked; if a client's configuration format moves, the setup in [MCP Access](/connect/mcp-access) may lag until the next check.
* Compatibility says nothing about what a given organization can call: authenticated discovery (`tools/list`, `resources/list`) is the authority for that.

## Where to go next

| If you're…                                | Read next                                                     |
| ----------------------------------------- | ------------------------------------------------------------- |
| Setting up a specific client              | [MCP Access](/connect/mcp-access)                             |
| Choosing how your agent will authenticate | [Authentication & Agent Credentials](/connect/authentication) |
| Planning for change                       | [Releases & Deprecation](/connect/release-and-deprecation)    |


# Releases & Deprecation

How Mediafier ships change, what deprecated means for a tool or surface, and where an agent learns about it first.

> **The live response is the contract; documentation is the policy.** An agent learns that something changed from authenticated discovery and from the structured response to a call — never by re-reading cached docs.

## How change reaches you

* **Authenticated discovery is the authority.** `tools/list` and `resources/list` return the current names, schemas, and activation state for your organization. An agent that discovers before calling sees a change the moment it ships.
* **Structured responses carry the notice.** A deprecated tool or surface answers with a structured error that names the replacement and the relevant dates, together with the trace identifier, so an agent can re-plan rather than guess.
* **Documentation states the policy, not the calendar.** Pages carry a `last_verified` date; [Compatibility](/connect/compatibility) dates every client claim. Neither replaces the live response.

## What "deprecated" means

| Term             | What it means for you                                                                            |
| ---------------- | ------------------------------------------------------------------------------------------------ |
| **Available**    | Callable now for organizations that have it enabled; the authenticated product is the authority. |
| **Early access** | Enabled for selected organizations; controls and features may change between checks.             |
| **Deprecated**   | Still callable; a replacement exists and is named in the response. Plan the move.                |
| **Retired**      | No longer callable; the structured refusal names the replacement.                                |

Deprecation and retirement of a governed capability are announced through the same governed endpoint that serves it. The notice period for a specific deprecation is stated with that deprecation — in the response and in your organization's agreement — rather than assumed from this page.

## What does not change without notice

* The canonical endpoint, `POST https://mcp.mediafier.ai/mcp`.
* The authentication model: access tokens as bearers; Agent Credentials exchanged, never presented directly.
* The guarantees on every governed call: organization-scoped, authenticated and authorized before execution, metered where applicable, covered by an audit trail designed to record allowed and refused calls, trace-correlated, fail-closed.

## What this page is not

* It is not a changelog. Changes to how the endpoint behaves that an integration may need to act on are recorded, dated by production, in [Protocol Changes](/connect/protocol-changes); this page is the standing policy behind them.
* It is not a per-capability status board. Availability is stated at the page level in these docs; the authenticated product is the authority for what your organization can call today.

## Where to go next

| If you're…                                | Read next                                     |
| ----------------------------------------- | --------------------------------------------- |
| Handling a refused or deprecated call     | [Troubleshooting](/connect/troubleshooting)   |
| Checking a client before you depend on it | [Compatibility](/connect/compatibility)       |
| Checking what changed on the endpoint     | [Protocol Changes](/connect/protocol-changes) |
| Discovering what you can call right now   | [MCP Access](/connect/mcp-access)             |


# Protocol Changes

Dated record of changes to how the Mediafier MCP endpoint behaves that an integration may need to act on: what changed, who is affected, and what to do.

> **One entry per change your integration might notice.** Each entry says what changed, who is affected, and what to do. An entry is added on the day the change is live on `https://mcp.mediafier.ai/mcp`, not before, so every entry here describes behavior you can observe today.

## How to read this page

* **Newest first, dated by production.** The date is when the change reached the production endpoint.
* **Only changes you can observe.** Internal changes that leave requests and responses the same are not listed.
* **Upcoming changes are not listed.** A change that removes or retires something follows [Releases & Deprecation](/connect/release-and-deprecation): the notice travels with the affected response.
* **The live response still wins.** If this page and a response disagree, the response is current. Authenticated discovery (`tools/list`, `resources/list`) is the authority for what your organization can call.

## 2026-09-23

### The `initialize` response no longer claims list-change notifications

* **What changed:** the capabilities in the `initialize` response are now `"tools": {}` and `"resources": {}`. They previously included `"listChanged": true`, which promises a notification whenever the tool or resource list changes. The endpoint does not send those notifications, so it no longer claims to.
* **Who is affected:** clients that waited for a list-change notification before refreshing their tool or resource list. None ever arrived, so nothing you received has changed; the advertisement now matches what the endpoint does.
* **What to do:** call `tools/list` or `resources/list` again when you need a current list, for example after a new server is installed for your organization or when you reconnect.

### Browser clients can send `Mcp-Method` and `Mcp-Name`, and read `Retry-After`

* **What changed:** the endpoint's cross-origin rules now allow the `Mcp-Method` and `Mcp-Name` request headers, and a refused request's `Retry-After` header now reaches the client and is readable from browser code.
* **Who is affected:** browser-based clients. A browser previously blocked requests carrying those two headers before they were sent, and could not see how long to wait after being refused. Server-side clients see no change.
* **What to do:** nothing required. When a response carries `Retry-After`, wait at least that many seconds before retrying.

### Rate limits also apply to each tool

* **What changed:** calls are limited per tool as well as across a server's tools. A burst of calls to one tool can be refused even while your organization's overall use of that server is within its limit.
* **Who is affected:** integrations that call a single tool in tight loops. Typical interactive use does not reach the per-tool limit.
* **What to do:** treat a rate-limit refusal as a signal to back off and retry, honoring `Retry-After` when present. Batch or pace repeated calls to the same tool. See [Troubleshooting](/connect/troubleshooting).

## 2026-09-21

### A public server card describes the endpoint

* **What changed:** `https://mcp.mediafier.ai/.well-known/mcp-server` now returns a server card: the endpoint, its transport, the MCP protocol versions it accepts, and where to find the authorization metadata.
* **What it is not:** the card is Mediafier's own format. It is not part of the MCP specification, and MCP clients do not read it automatically.
* **Who is affected:** tooling you write, or a registry, that chooses to read it. Clients that connect with the endpoint URL directly see no change.
* **What to do:** nothing required. If your own tooling reads the card, it can take the accepted protocol versions from there rather than hard-coding them.

### Repeated standard MCP headers, and oversized MCP headers, are refused

* **What changed:** a request is refused before it is processed if it sends `Mcp-Protocol-Version`, `Mcp-Session-Id`, `Mcp-Method` or `Mcp-Name` more than once, or sends one of the first three with several values in one field (how some HTTP stacks merge a repeated header). A request whose `Mcp-*` headers are unusually many or unusually large is refused too. The error names the header where one is at fault and includes a trace identifier.
* **Not affected:** other `Mcp-*` headers sent more than once are combined into one value, as HTTP allows, and forwarded.
* **Who is affected:** integrations that set one of those four headers in two places, for example as a client default and again per request. Well-formed requests see no change.
* **What to do:** send each of those four headers once, with a single value. If you are refused, fix the header named in the error, and include the trace identifier if you contact support.

## Where to go next

| If you're…                                | Read next                                                  |
| ----------------------------------------- | ---------------------------------------------------------- |
| Checking whether your client is supported | [Compatibility](/connect/compatibility)                    |
| Planning for a deprecation or retirement  | [Releases & Deprecation](/connect/release-and-deprecation) |
| Handling a refused call                   | [Troubleshooting](/connect/troubleshooting)                |


# Enterprise Readiness

The five questions enterprise reviews focus on — identity, tenancy, authorization, audit, governance — and what is in place for each.

> **Identity. Tenancy. Audit. Governance. Trace correlation.** This page consolidates what an enterprise security or procurement reviewer needs in one place, in the language those reviews are conducted in.

***

## The five questions enterprise reviews focus on

Enterprise security and procurement reviews typically focus on the same five questions. Each answer below is enforced consistently across every surface — agent-first (CLI + MCP), Slack & Teams, and Pippa chat — by the same gateway chain.

| Pillar                     | What to verify                                          | What's in place                                                                                                                                                                                                                                                      |
| -------------------------- | ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Identity**               | Who issues identity, and how is it verified at runtime? | Auth0 is the sole identity provider. Bearer access tokens are verified server-side at the gateway entry, before any tool call runs.                                                                                                                                  |
| **Tenancy**                | How is one customer's data isolated from another's?     | Organization context is server-derived from the authenticated principal; for tool calls, never from a client header or argument. Tenant-facing requests are scoped to an organization server-side, with database row-level policies on tenant data where they apply. |
| **Authorization**          | Who decides what each caller can do?                    | Per-tool, per-org permission checks against the organization's authorization model. Enforced before the tool runs. The audit trail is designed to hold allowed and refused outcomes; a refusal returns a structured error carrying the same trace ID.                |
| **Audit & evidence**       | Can the customer reconstruct what happened?             | Every response carries an `X-Trace-Id` that correlates the call's available audit and billing records. Audit rows are append-only by data-layer enforcement. Evidence Cards from MediaClaw runs are immutable. Provenance Passports on media assets are append-only. |
| **Operational governance** | Can the customer control spend, throttling, and access? | Per-org wallets and credit ledger; spending limits and auto top-up set by owners, admins, and billing admins; low-balance email to owners and admins; per-tool spend statements; per-org rate limits set by the platform. The gateway enforces the controls.         |

Each answer is covered in depth in its dedicated page — [The Gateway](/platform/gateway), [Identity & Authentication](/trust/identity-and-authentication), [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model), [Audit, Observability & Compliance](/trust/audit-observability-and-compliance), and [Credits & Billing](/overview/credits-and-billing). This page collects the answers in one place because enterprise reviews tend to evaluate them as a single block.

***

## What the gateway enforces on every call

```
Request enters gateway (X-Trace-Id stamped)
  · Identity — Auth0 token verified
  · Organization — server-derived from the principal
  · Authorization — per-tool, per-org policy
  · Rate limits — per-org throttling
  · Billing — payment check against the org's wallet
The tool's runtime executes
Response with X-Trace-Id · audit trail keyed by the same ID
```

Every surface walks the same chain. The control plane is one chain; there is no second one.

***

## What this posture supports in procurement reviews

The chain above produces three properties procurement teams typically need to confirm:

* **Single enforcement chain.** A security team auditing the platform sees one ingress and one chain, not forty per-tool integrations. That alone short-cuts a lot of procurement review.
* **Reconstructable evidence.** Any incident, dispute, or audit request resolves against trace IDs. The customer-support correlation walk-through in [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) holds at procurement scale.
* **Tenant isolation.** Tenant-facing requests are scoped to an organization server-side, database row-level policies apply where they are in place, and cross-organization access is tested in CI.

### What you'll only see under NDA or in the customer agreement

The following are deliberately not published; they are shared during procurement under NDA or negotiated into the customer agreement:

* Any compliance certifications and audit reports — discussed under NDA during procurement.
* Hard SLA, latency, or uptime numbers — procurement-binding performance terms live in the customer agreement.
* A specific retention term in years — audit retention is set by the platform, not per organization; any binding term is set in the customer agreement.
* Named third-party vendors — specific vendor relationships are not declared publicly.

***

## What customers and partners get from this posture

For an organization adopting Mediafier:

* One identity provider for every surface. SSO federates into Auth0; every agent, operator, and partner ends up on the same chain.
* One audit trail. Tool calls, their authorization outcomes, billing movements, and runtime outcomes are joined by one trace ID.
* One governance contract. Marketplace resources, partner-published tools, and first-party capabilities all live under the same enforcement chain, so there is no second class of resources to evaluate separately.

For a partner reselling the platform:

* The customer's security team reviews one enforcement chain, not forty per-tool integrations.
* The compliance investment is centralized — partners don't have to re-implement audit, identity, or tenant isolation per engagement.
* The control plane scales as the customer's adoption broadens.

***

## Reporting a security issue

Report a suspected vulnerability to <security@mediafier.ai>.

***

## What this page is not

* It is not a SOC report. Any certifications and audit reports are discussed under NDA during procurement.
* It is not a contract. Hard commercial commitments — SLA terms, retention numbers, refund language — live in the customer agreement.
* It is not a substitute for the per-pillar pages. This page is the single-block summary; The Gateway, Identity & Authentication, Multi-Tenant Organization Model, Audit, Observability & Compliance, and Credits & Billing are the detail.

***

## Where to go next

| If you're…                                            | Read next                                                                      |
| ----------------------------------------------------- | ------------------------------------------------------------------------------ |
| Looking at the gateway in detail                      | [The Gateway](/platform/gateway)                                               |
| Looking at identity                                   | [Identity & Authentication](/trust/identity-and-authentication)                |
| Looking at tenancy                                    | [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model)      |
| Looking at audit and observability                    | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) |
| Looking at credits, billing, and operational controls | [Credits & Billing](/overview/credits-and-billing)                             |
| Looking at how the platform sits in a larger stack    | [Where Mediafier Fits](/overview/where-mediafier-fits)                         |


# Identity & Authentication

How identity is issued and verified, how organization context is derived server-side, and what an identity failure returns.

> **Auth0 is the sole identity provider. The gateway resolves the caller server-side. There is no client-trusted identity claim anywhere on the platform.**

***

## Three questions every security reviewer asks

Each is answered below:

1. **Who issues identity?** Auth0, full stop.
2. **How is identity trusted at the gateway?** A bearer access token verified server-side at the gateway entry, before any tool call runs.
3. **What about the caller's organization?** The gateway derives tenant context from the authenticated principal — never from a client-supplied header, query param, or body field.

***

## The identity boundary

Mediafier draws one identity boundary and reuses it across every surface — agent-first (CLI + MCP), Slack & Teams, and Pippa chat.

```
External caller (any surface)
   │
   ▼  bearer access token
┌─────────────────────────────────────┐
│  Gateway: Identity stage            │
│  - Verify Auth0 token server-side   │
│  - Resolve principal                │
│  - Derive organization from claims  │
└─────────────────────────────────────┘
   │
   ▼  authenticated request context
Authorization · rate limits · billing · dispatch · audit
```

Whatever surface the caller uses, the request reaches the gateway with an Auth0 bearer token. The gateway verifies it server-side and resolves the principal. From that principal, the gateway derives the organization context that every later stage uses.

***

## Why Auth0 is the sole identity provider

A single identity provider is what makes the rest of the chain defensible:

* **One verification path.** The gateway verifies every caller's identity against the same identity provider, with no per-runtime auth shim.
* **Centralized session policy.** Token lifetime, refresh, MFA, and session revocation are governed at the identity provider, not at each surface.
* **Federated tenant identity.** Customers who run their own SSO federate it into Auth0 and get the same gateway behavior; their agents land in the same enforcement chain as everyone else.

Every surface reaches Mediafier through the same Auth0-issued identity contract. There is no separate path with a different identity model.

***

## Tenant context is server-derived

Every authenticated tool call carries an organization context. That context is **never** taken from the client.

**For tool calls, tenant context derives from the authenticated principal, resolved server-side.** A client-supplied header or tool argument does not select the organization — it is payload, not an identity claim. Users who belong to multiple organizations select one per session, and that selection is validated server-side against the memberships Mediafier governs.

The practical effect: a caller who tampers with a header to claim another org gets the original org's authorization decision anyway. There is no path through the gateway where the client picks the tenant.

***

## What the gateway returns on identity failure

Every identity failure produces a structured response:

* **HTTP 401** if the token is missing, malformed, expired, or fails signature verification.
* A **structured refusal** if the token is valid but the principal cannot be resolved to an active Mediafier organization — the error code and machine-readable actions say what to do next.
* An `X-Trace-Id` header (and `trace_id` in the error body) on every failure, so support can investigate from that identifier without the caller having to share a token or principal.

The error envelope is the same shape every surface returns. An agent seeing a 401 from Mediafier knows exactly what to do: authenticate (or refresh its access token) and re-call. An operator inside Pippa seeing the same outcome gets the same machine-readable signal under the chrome.

***

## How credentials and data are protected

Assurances a security reviewer can rely on, each scoped to what it actually covers:

* **Encryption in transit.** All platform traffic runs over HTTPS.
* **Encryption at rest.** Platform data stores are encrypted at rest at the infrastructure layer.
* **Application-level credential encryption.** Stored organization credentials are additionally encrypted at the application layer (AES-256-GCM) before they reach the data store — infrastructure encryption is not the only layer protecting a secret.
* **Credential redaction.** Credential material does not appear in tool responses, error envelopes, or audit artifacts. The audit trail records who acted and what happened — never secret bytes.

***

## What this page is not

* It is not the ops runbook for SSO setup. Customers configuring enterprise SSO follow the partner-facing onboarding.
* It is not a description of how Auth0 itself works. The authoritative reference for that is Auth0's documentation. This page is about the contract between Auth0 and the Mediafier gateway.
* It is not the only page that talks about identity. Identity is a thread that runs through audit, billing, and authorization.

***

## Where to go next

| If you're…                                    | Read next                                                                      |
| --------------------------------------------- | ------------------------------------------------------------------------------ |
| Looking at how tenants are isolated           | [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model)      |
| Studying the gateway's full enforcement chain | [The Gateway](/platform/gateway)                                               |
| Auditing observability and trace correlation  | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) |
| Engineering an integration                    | [Agent-First Access (CLI + MCP)](/connect/agent-first-access)                  |


# Multi-Tenant Organization Model

One platform, many organizations: tool calls run in the organization derived from the caller's verified credential.

> **One platform, many organizations, one organization per tool call.** Every tool call carries an organization context that the gateway derives server-side from the caller's verified credential. Tenant-facing requests are scoped to an organization server-side, with database row-level policies on tenant data where they apply.

***

## Why a multi-tenant model

Mediafier is shared infrastructure. A studio, a broadcaster, a brand agency, and a sports federation can all run agents through the same gateway against the same tools and the same runtimes. What separates them is the organization context: every row, every tool call, every audit entry, every credit ledger movement is bound to one organization.

The model is built so that the boundary holds whether the caller is a friendly engineer running a script, an autonomous agent under load, or — in the worst case — a hostile principal with a valid token trying to read another tenant's data.

***

## What an organization owns

| Owned per organization                                           | Why                                                                                               |
| ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| Member directory and roles                                       | Org admins decide who is in the org and what each member can do.                                  |
| Installed resources and credential bindings                      | Marketplace resources are platform-listed once but installed per-org with org-scoped credentials. |
| Authorization model — per-tool, per-role permissions             | Authorization decisions resolve against the org's policy.                                         |
| Rate-limit budget and per-org throttling state                   | Each org gets its own protected capacity.                                                         |
| Credit ledger and billing record                                 | All metering rolls up to the org's wallet.                                                        |
| Audit trail — tool calls, with trace ID                          | The org's auditors can reconstruct what happened on the org's behalf.                             |
| Media Library bundles, versions, files, and provenance passports | Tenant data is tenant-owned; reads and writes are scoped to the owning org.                       |

For tool calls, the gateway chooses the organization from the verified credential; a header or tool argument cannot change it. Elsewhere on the platform, the organization a request acts in is resolved and authorization-checked server-side for the caller and the action.

***

## How isolation is enforced

Three layers:

* **Identity-derived org context.** The gateway resolves the caller's organization server-side from the authenticated principal. A tool call cannot pick the tenant via headers or tool arguments.
* **Authorization scoped to that org.** Authorization runs against the resolved org's policy — never against a global "is this caller allowed?" check.
* **Request scoping and row-level policies.** Tenant-scoped reads and writes are scoped to the caller's organization server-side, with database row-level policies that limit access to the owning organization where they apply.

This is the structure security reviewers are asking about when they say "RLS-enforced segregation, tenant-aware routing, and strict cross-org protection": for tool calls the tenant comes from the verified credential rather than from the caller, tenant-facing requests are scoped to an organization server-side, and database row-level policies apply where they are in place.

***

## Membership: people in multiple organizations

Real-world operators sit in more than one organization (a partner consultant serving two clients, a freelance editor on three studio rosters, an agency operator serving several brands). The membership model accommodates that:

* A single Auth0 identity maps to one or more organization memberships.
* The active organization is selected once per session and validated server-side against the memberships Mediafier governs. A switch is a deliberate action, not an implicit one.
* The gateway uses the active organization for the entire request chain. There is no "ambient" organization that leaks across sessions.

Audit records carry the active organization for the call. A user with three memberships running three separate sessions produces three separate, organization-bound audit chains.

***

## Platform-level resources vs. tenant-level resources

Some resources are shared across the whole platform; others are tenant-private. The platform distinguishes them:

| Resource class                     | Visibility                                                                                                                                                               |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Platform resources                 | Implicitly available to every org.                                                                                                                                       |
| Marketplace-listed resources       | Visible for browsing; installation is per-org and admin-controlled.                                                                                                      |
| Tenant-installed resources         | Visible and callable only inside the installing org.                                                                                                                     |
| Tenant-authored MediaClaws         | Owned by the org that authored or installed them; not callable from another org.                                                                                         |
| Tenant data (Media Library, audit) | Owned by the org and visible to its members according to their roles. Mediafier access is limited to authorized platform operators, for support and platform operations. |

A platform listing makes a server discoverable. It does not grant runtime access until an org admin installs and binds it.

***

## What this model is not

* It is not a "shared service" model where one org's data falls into another org's view by accident. Tenant-facing requests act in an organization context resolved and authorization-checked server-side.
* It does not let a tool call name the tenant. A header or argument that names another organization does not change the organization the call runs in.
* It is not a single identity domain — different orgs can federate their own SSO into Auth0 and still share the gateway.

***

## Where to go next

| If you're…                                            | Read next                                                                      |
| ----------------------------------------------------- | ------------------------------------------------------------------------------ |
| Looking at how identity is established before the org | [Identity & Authentication](/trust/identity-and-authentication)                |
| Auditing trust posture                                | [Audit, Observability & Compliance](/trust/audit-observability-and-compliance) |
| Studying the gateway's enforcement chain              | [The Gateway](/platform/gateway)                                               |
| Looking for enterprise procurement readiness          | [Enterprise Readiness](/trust/enterprise-readiness)                            |


# Per-User Connector Authorization

When a connector acts as the individual user, what is authorized, and what is charged.

> **Some connector surfaces may need to act as the individual user rather than the organization. When a person connects their own account to such a connector, Mediafier stores a per-user credential and injects&#x20;*****that person's*****&#x20;authorization at call time — the tool acts within the access the person already has, and every call is attributed to all three identities: the person, the organization, and the external account. Mediafier is validating this pattern on an initial delegated connector.**

***

## Two ways a connector gets its credential

Mediafier connectors resolve their upstream credential in one of two modes. The mode is a property of the binding, resolved server-side — a caller never chooses it at request time.

| Mode               | Whose access the tool uses                                                                                                | Typical use                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| **Org-bound**      | One credential shared by the organization (a stored secret or an org-level OAuth grant), used by every authorized member. | Back-office systems where the org, not the individual, is the actor.                        |
| **User-delegated** | The **acting person's own** authorization, connected once via OAuth and stored per user. The tool acts *as that person*.  | Systems where individual identity and permissions matter — issue trackers, docs, messaging. |

This page is about the second mode. It is the model behind "connect *your* account," where the tool should see precisely what you can see and act only where you can act.

***

## What "user-delegated" means, precisely

When you connect your own account to a user-delegated connector:

1. **You authorize once, through OAuth.** You approve the connection directly with the provider. Mediafier receives a per-user access token scoped to what you granted.
2. **The token is stored as&#x20;*****your*****&#x20;credential, bound to&#x20;*****you*****.** It is held server-side, associated with your Mediafier profile and your organization. In the delegated path, Mediafier keeps credential bytes out of audit metadata and does not return the token in tool responses.
3. **At call time the gateway resolves and injects your token — server-side.** When you (or an agent acting on your behalf in a person-present session) invoke the tool, the gateway resolves *your* stored token and injects it just before dispatch. The runtime does not store or resolve credentials itself; it only consumes the gateway-injected credential and forwards it upstream.
4. **The upstream sees you.** The call reaches the provider as *you*, so the provider's own permissions apply. Reads return within what your account can access, and writes are attributed to your account. Linear issue discovery supports explicit filters but adds no implicit assigned-to-you restriction.

> **Directional, not shipped.** User-delegated binding is a proving ground — it is being validated on a first connector before it becomes a general capability. What is described here is the substrate and the guarantees, not a launched, self-serve feature for every connector.

### Removing the grant removes the access

Your delegated grant is a single, revocable authorization under your control. Disconnect it in Mediafier — or revoke it at the provider — and the access is gone; no fallback or shared credential is substituted. See [Disconnecting](#disconnecting) below for exactly how calls behave after removal.

***

## Why this is safe

User-delegated auth inherits every guarantee of the platform's identity and gateway model, and adds a few of its own.

* **Identity is still server-derived.** You authenticate to Mediafier with Auth0 exactly as everywhere else; the gateway derives who you are and which organization you're acting in from that token — never from a client-supplied claim. The delegated provider token is a *resource* credential, not an identity claim.
* **Authorization is checked at the surface.** Being connected is not the same as being allowed. Each tool surface is independently authorized; a connected user can still be denied a specific surface (for example, an approval-gated write) even when the connector itself is reachable.
* **Writes can require explicit approval.** A user-delegated write surface can be **approval-gated**: the gateway pauses the call and surfaces a draft for review, and nothing reaches the provider until a person approves. The credential is injected only *after* approval — a paused call never touches your token or the upstream system.
* **The credential stays out of band.** In the delegated path the token is used only on the server-side request to the provider; it is kept out of tool responses and out of the audit record, which stores the three identities but no credential bytes.
* **Person-present by design.** Delegated resolution is scoped to sessions where a person is present. A machine-to-machine caller with no acting user cannot drive a user-delegated tool; it fails closed.

***

## Three identities on every delegated call

The value of acting-as-you is only real if it is *provable* after the fact. Every user-delegated dispatch records three identities on its audit trail, with no credential material anywhere in it:

| Identity             | What it answers                                                                                        |
| -------------------- | ------------------------------------------------------------------------------------------------------ |
| **Person**           | Which Mediafier user acted.                                                                            |
| **Organization**     | Which tenant the action belongs to.                                                                    |
| **External account** | Which provider-side account the call ran as (the provider's own subject id for the connected account). |

Together these let a reviewer answer "*who* did *what*, in *which* organization, as *which* external account" — the complete picture an individually-scoped action requires. The three identities are recorded alongside the platform's standard tamper-evident audit; see [Audit, Observability & Compliance](/trust/audit-observability-and-compliance).

***

## Disconnecting

Because your grant is a single stored credential bound to you, removing it is decisive: if the delegated credential is removed or becomes unusable, subsequent calls fail closed as "not connected" until a valid credential is connected again. Provider-side revocation has the same effect — the next call cannot resolve a usable credential and stops before dispatch, rather than degrading to a shared or default credential.

***

## How it's billed

A user-delegated call runs on *your own* authorization to the upstream provider, so no per-tool metered price applies. These connectors are **not free**, though: each call is charged a **flat facilitation fee** (the platform default is 0.1 credit per call), the same flat-fee model as bring-your-own-key connectors. Wherever a user-delegated connector's pricing is shown, you will see no per-tool price plus an explicit flat-fee disclosure — a charged surface is never presented as free. The platform's usual [Credits & Billing](/overview/credits-and-billing) model applies to the fee; the broader marketplace economics model is covered in [Provider Earnings & Marketplace Economics](/partners/provider-earnings-and-marketplace-economics) and is out of scope here.

***

## Where it fits

User-delegated authorization sits between the platform's identity boundary and its connector surfaces:

* [Identity & Authentication](/trust/identity-and-authentication) — how the gateway establishes *who you are* (the prerequisite for acting *as you*).
* [MCP Access](/connect/mcp-access) — pointing a harness at the gateway and reaching governed tools.
* [Gateway](/platform/gateway) — the enforcement chain that resolves identity, authorizes the surface, injects the credential, and audits the call.


# Audit, Observability & Compliance

Every response carries a trace ID; the audit trail is designed to record authenticated tool calls and is append-only by enforcement.

> **Every response carries a trace ID. The audit trail keys its records to it. The evidence chain is append-only.** Audit is not an afterthought bolted onto the gateway — it is part of the gateway's enforcement.

***

## The audit posture in one paragraph

Every tool call that crosses the gateway gets a trace ID at entry. The gateway threads it through identity, authorization, billing, and dispatch, and the audit trail is designed to hold a record of each authenticated tool call — allowed, refused, or failed — keyed by that trace ID. Errors carry the same trace ID, so support can pivot from a customer report to the call's history without asking the customer for anything beyond that one identifier. Audit records are append-only; the data layer enforces it.

***

## The trace ID is the join key

```
Request enters gateway
  ↓ X-Trace-Id stamped at entry
Gateway checks: identity · organization · authorization · rate limits · billing
  ↓
The tool's runtime executes (trace ID propagated)
  ↓
Response (X-Trace-Id in headers + error envelopes)
  ↓
Audit record · Billing ledger entries
   — all keyed by the same trace ID —
```

Wherever the call goes, the trace ID goes with it. That is what lets an audit record, a billing ledger entry, and a customer-visible error envelope be joined from a single piece of information.

***

## What's in an audit record

The audit trail is designed to hold one immutable row for each authenticated tool call — allowed, refused, or failed. A request refused before the caller is authenticated is not in an organization's audit trail; it still returns a trace ID you can quote to support. If the record for a successful call cannot be written, the call returns an `AUDIT_WRITE_FAILED` error even though the action may already have taken effect — check the outcome before retrying. The shape of an audit row:

| Field          | What it captures                                                            |
| -------------- | --------------------------------------------------------------------------- |
| Trace ID       | The same `X-Trace-Id` returned to the caller and propagated to the runtime. |
| Organization   | The server-derived tenant context.                                          |
| Principal      | The Auth0-resolved caller identity.                                         |
| Surface called | The qualified surface name (the tool the agent invoked).                    |
| Authorization  | Whether the call was allowed, or refused with a reason.                     |
| Cost           | Linked to the call's billing ledger entries through the trace ID.           |
| Outcome        | Success / failure with structured error category.                           |
| Timestamp      | When the call happened.                                                     |

What is **not** in an audit row: the agent's prompt text, the content of the request or the response, or any credential.

***

## Append-only by enforcement

Audit records are protected from ordinary update or deletion. New records are appended, and expired records are removed through a controlled retention process. The data layer enforces it directly — not by convention, and not by trusting application code to behave.

The same posture applies to other evidence artifacts on the platform:

* **Evidence Cards** that MediaClaws emit during a run are immutable — enforced at the platform's data layer, not by convention.
* **Provenance Passports** in the Media Library are append-only — new events are added; existing events are not edited.

Append-only is the platform's stance on every evidence surface, not a property of one specific log.

***

## Observability beyond audit

Audit answers "what happened, who did it, what did it cost?" That is not the only observability surface. The platform also exposes:

| Layer              | What it shows                                                                                       |
| ------------------ | --------------------------------------------------------------------------------------------------- |
| Per-call telemetry | Tracing, structured logs, error categories, usage analytics — emitted as the call runs.             |
| Per-org analytics  | Spend, surface usage, error rates, latency distribution — rolled up to the organization.            |
| Per-run timeline   | For MediaClaw runs: the plan, every step, every Evidence Card, every cost — readable end-to-end.    |
| Pippa control room | A web/mobile surface that aggregates across MCP servers, MediaClaws, and workflows for an operator. |

Organizations can search their own audit trail in the app and over MCP, and export activity records from the app. There is no streaming integration into a customer's own observability stack today.

***

## What customer-support correlation looks like

A customer reports a failed run. The audit chain works like this:

1. The customer hands support the trace ID — it appeared in the error envelope and in the response headers.
2. Support looks up the call's audit record by that trace ID, where one exists: principal, organization, surface, time, outcome.
3. Independently, support looks up billing ledger entries under the same trace ID: what was charged or refunded, and why.
4. If the call was part of a MediaClaw run, support reaches the run's record and its Evidence Cards; if it changed a Media Library asset, the asset's Provenance Passport.

That chain is keyed by one piece of information, and no step in it requires the customer to share a secret. Access to these records on Mediafier's side is limited to authorized platform operators.

***

## Compliance posture

The platform commits to:

* An audit trail designed to hold a record of each authenticated tool call, allowed or refused, keyed by the trace ID returned to the caller. A request refused before authentication still returns a trace ID, so a support investigation starts from one identifier either way.
* Append-only evidence enforced at the data layer.
* Server-derived tenant context on every authorization and audit decision.
* Trace correlation across audit, billing, and runtime so external evidence requests are reproducible.

What the platform does **not** commit to in launch documentation:

* A specific number for retention. Audit retention is set by the platform, not per organization. Where a customer's procurement or regulatory profile requires a specific retention term, raise it during procurement.
* A specific compliance certification badge. [Enterprise Readiness](/trust/enterprise-readiness) covers the procurement-facing posture; any certifications and audit reports are discussed under NDA during procurement, not in public documentation.

***

## Where to go next

| If you're…                                   | Read next                                                                        |
| -------------------------------------------- | -------------------------------------------------------------------------------- |
| Looking at identity and tenant boundaries    | [Identity & Authentication](/trust/identity-and-authentication)                  |
|                                              | [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model)        |
| Studying the gateway's full chain            | [The Gateway](/platform/gateway)                                                 |
| Reviewing decision memory across runs        | [Decision Tracing & Learning Loop](/platform/decision-tracing-and-learning-loop) |
| Looking for enterprise procurement readiness | [Enterprise Readiness](/trust/enterprise-readiness)                              |


# Learning & Data Boundaries

Organization learning stays in the organization; platform hardening carries no customer content; network intelligence is not offered today.

> **Your organization's learning stays in your organization.** Mediafier agents get better from the work they do for you; what they learn is yours, and it does not leave your tenant.

***

## Three things that are often blurred

| Concept                   | What it is                                                                         | Does it leave your organization?                                                                                                    |
| ------------------------- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **Organization learning** | Decision precedent, validated heuristics, and process memory built from your runs. | **No.** Scoped to your organization; never visible to another tenant.                                                               |
| **Platform hardening**    | Fixes, guards, and safety improvements Mediafier makes to the shared platform.     | Carries **no customer content**. A fix made for one customer's problem class applies to the platform; the customer's data does not. |
| **Network intelligence**  | Cross-organization benchmarks or shared learning.                                  | **Not offered today.** If it is offered, it will be an explicit, opt-in contract — never a default.                                 |

## What the platform learns from your work

* **Decision precedent** — which decisions were made, on what evidence, and which a person approved. Searchable within your organization.
* **Validated heuristics** — proposals from the learning loop that a person reviewed and approved. Nothing proposed becomes active on its own.
* **Process memory** — built only from closed, structured fields of a run (what was asked, what ran, what resulted), never from free-text content or prompt bodies.

## What the platform does not do

* **No fine-tuning.** The learning loop changes the library of governed skills and the directives around them — never model weights. The model is whichever foundation model your team has chosen.
* **No cross-tenant learning.** One organization's runs, decisions, and memories are not an input to another's.
* **No blending of user and organization memory.** What an individual user's session learns is kept separate from the organization's shared learning.
* **No customer content in platform hardening.** The shared platform improves from problem classes, not from your media, prompts, or results.

## How this is enforced

Tenant scoping is enforced at the platform's data layer, not by convention; cross-organization access is tested in CI; and the learning loop's promotion path requires a human decision that is itself recorded. Where the platform cannot show a boundary, it does not claim one.

## What this page is not

* It is not a data-retention schedule and does not present retention as a privacy control; retention terms live in your agreement.
* It is not a benchmark programme. No anonymized cross-customer benchmark is shipped today.

## Where to go next

| If you're…                                | Read next                                                                        |
| ----------------------------------------- | -------------------------------------------------------------------------------- |
| Reviewing tenancy and identity boundaries | [Multi-Tenant Organization Model](/trust/multi-tenant-organization-model)        |
| Understanding how agents get better       | [Decision Tracing & Learning Loop](/platform/decision-tracing-and-learning-loop) |
| Supervising what agents are doing         | [Agent Operations](/platform/agent-operations)                                   |
| Running an enterprise review              | [Enterprise Readiness](/trust/enterprise-readiness)                              |


# The Marketplace

Composable governed resources under one enforcement chain, from first-party tools to partner-published listings.

> **Composable, AI-native governed resources that make the customer's existing media systems agent-addressable.** The Marketplace is where new tools, capabilities, MediaClaws, skills, and integrations ship into the platform, and where the customer's catalog of governed resources grows over time.

***

## What the Marketplace is

The Marketplace is the discovery and governance surface for every governed resource any organization can turn on inside Mediafier — MCP-servers, CLI-based tools, Skills, MediaClaw super-agents, workflows, and other invocable surfaces. Each listed resource is:

* **Authored** by a tool publisher (internal team, partner, or third party).
* **Verified** through Mediafier's onboarding process (identity, ownership, billing setup).
* **Listed** in the Marketplace once approved, with a structured capability description.
* **Installed** per organization — listing visibility is platform-wide, but execution requires explicit installation and binding by an org admin.
* **Commercially classified** according to its Offering. Some tools are metered; BYOK and OAuth offerings use customer-provided credentials without Mediafier provider-usage metering.

The Marketplace is where the catalog of governed resources available to customer agents grows over time: operators discover and adopt new capabilities from the catalog; publishers ship into the catalog under the platform's governance contract.

***

## How operators use the Marketplace

A typical adoption flow:

1. Browse listed resources by capability or domain.
2. Read the published capability description and surface contracts — what each resource exposes, what each surface's input and output shape is.
3. Click install. The platform binds the resource to the org under the org admin's authority.
4. Bind credentials (where the resource requires them) through the org's credential vault. Credentials never leave the vault scope.
5. Hand the org's agents the new tool surface — discovery picks it up automatically.

After installation, the resource's surfaces are reachable from any of the platform's entry points (agent-first CLI/MCP, Slack/Teams, Pippa chat) and governed by the same gateway chain as any first-party capability.

***

## How tool publishers use the Marketplace

Publishing a governed resource is a controlled path:

1. Build the resource against the platform's spec — endpoints, schemas, capability descriptions.
2. Submit for review. The platform verifies the contract, identity, and billing setup.
3. Once approved, the resource is listed. Listing makes it discoverable org-wide; installation remains per-org.
4. Earnings accrue on a per-call basis through the platform's Marketplace economics. (See [Provider Earnings & Marketplace Economics](/partners/provider-earnings-and-marketplace-economics) for the full split, ledger semantics, and clearing model.)

The publishing orientation is on [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace); detailed specs, schemas, and the certification checklist arrive with the qualified partner onboarding packet after [requesting access](https://mediafier.ai/request-access).

***

## What tool publishers control

Publishers choose how their resource appears in the catalog and who can install it. Two independent control axes:

### Visibility

* **Listed.** The resource appears in the Marketplace catalog; any organization on the platform can discover it through the standard browse and search surfaces.
* **Unlisted.** The resource is installable but does not appear in the catalog. Useful for private partnerships, early-access pilots, or organization-specific integrations that aren't intended for general distribution. Discovery happens through a direct reference the publisher shares.

### Access

* **Public.** Any org admin can install the resource into their organization, subject to the platform's standard onboarding and credential-binding flow.
* **Allowlist.** The resource is installable only by organizations the publisher has explicitly authorized. The platform enforces the allowlist at install time; orgs outside it cannot bind the resource even if they discover it.

The two axes combine freely. A publisher can ship a listed + public-install resource (the default growth path), a listed + allowlisted resource (the catalog signals it exists, but installing requires publisher approval), an unlisted + public-install resource (anyone with the reference can install), or an unlisted + allowlisted resource (fully private to a named set of orgs).

Publication is operator-assisted during the invite-only pre-launch: Mediafier reviews and publishes the listing with you. After publication, the publisher's organization admins manage visibility and install access from the resource's settings, and the current setting applies to discovery and to install attempts.

***

## What the Marketplace governs

Every listed resource is bound by the platform's standard contract:

* **Discovery is governed**: the platform decides what an org sees.
* **Execution follows the approved integration model**: Mediafier supports multiple integration models, and every model runs through the same governed access, metering, and audit contract. Provider-operated integrations execute in the provider's runtime.
* **Identity is platform-side**: the gateway resolves the caller's identity and hands the resource a principal. The resource doesn't see the raw token.
* **Credentials are gateway-injected**: when a resource needs upstream API credentials, the gateway resolves and injects them from Mediafier-managed credential stores. The resource receives ready-to-use credentials per call and works against a single source of truth for credential resolution.
* **Audit is inherited**: calls to a Marketplace resource get the same audit treatment, the same trace ID, and the same evidence as a first-party capability.

The Marketplace contract is uniform across every listing. The same governance contract that fronts first-party capabilities fronts Marketplace capabilities, so the customer's security team reviews one chain regardless of who shipped the resource.

***

## Why the Marketplace matters for customers

A media organization adopting Mediafier doesn't have to wait on Mediafier's roadmap to reach a new system. As tool publishers ship resources for the systems the customer already uses, those systems become agent-addressable inside the platform. The customer's first day on the Marketplace is the smallest catalog they will ever see.

Two practical effects:

* **Wider agent reach over time.** Every new listed resource becomes installable — no per-system integration project on the customer's side.
* **Consistent governance across systems.** The same enforcement chain applies to every listed resource, regardless of who shipped it.

***

## What the Marketplace is not

* It is not a free directory. Listed resources are reviewed and approved.
* It is not autonomous. Listing is platform-wide; installation is per-org and admin-controlled.
* It is not a way to bypass identity, billing, or audit. Every call goes through the same gateway as a first-party capability.

***

## Where to go next

| If you're…                                        | Read next                                                                                          |
| ------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| Looking for an architectural overview             | [Platform Architecture](/platform/platform-architecture)                                           |
| Building a resource to publish                    | [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace)                   |
| Looking at Marketplace economics for publishers   | [Provider Earnings & Marketplace Economics](/partners/provider-earnings-and-marketplace-economics) |
| Connecting your existing tools without publishing | [MCP Access](/connect/mcp-access)                                                                  |


# Publishing to Mediafier's Marketplace

Build to the contract, get listed, earn per call: what publishing requires and what the review promises.

> **Build to the contract. Get listed. Earn per call.** This page is for engineers, partners, and third-party builders who want to ship a governed resource through Mediafier's Marketplace and have it reachable from any organization on the platform.

> **Availability: operator-assisted during the invite-only pre-launch.** There is no self-service publishing today — our team runs the review, registration, and listing with you. This page describes the contract your resource is built and reviewed against; treat it as forward documentation of the self-service path, not a flow you can complete alone right now. [Request access](https://mediafier.ai/request-access) to start.

Most publishing paths today ship an **MCP server** — the most mature publishing surface and the worked example throughout this page. **Skills, MediaClaw super-agents, and workflows** publish through the same governance contract; the platform-side review, listing, installation, metering, and audit chain is identical. Where the runtime contract differs by resource type, the qualified partner onboarding packet covers the type-specific spec.

***

## The publishing path in one diagram

```
Build  →  Submit  →  Review  →  List  →  Install (per org)  →  Earn (per call)
  │         │          │         │            │                     │
Resource  Contract  Contract   Discoverable   Org admin binds      Per-call
against   + identity + identity org-wide      credentials and      ledger
spec      + billing  verified  (subject to    enables the          movements
                     by         publisher's   resource
                     platform   visibility)
```

Six stages. The first three (build, submit, review) are one-time work for the publisher. The last three (list, install, earn) are per-organization adoption events repeated for each customer that installs the resource.

***

## What you build

You build a standard MCP server (or other governed-resource runtime) that conforms to the platform's contract. The platform requires:

* **A documented JSON-RPC surface** — the standard MCP protocol over HTTPS.
* **A `tools/list` capability description** — the tools your server exposes, each with input schema and a clear description.
* **Per-tool input schemas** — JSON Schema the gateway can validate against before dispatch.
* **Idempotency hints** for tools that can safely be retried.
* **Risk-profile metadata** (read-only, mutating, destructive) so planners can reason about what your tools do.

Everything else — identity, org isolation, credentials, metering, audit, rate limiting — the platform handles on every call; see [What the platform handles for every listed resource](#what-the-platform-handles-for-every-listed-resource) below. Your server's job is the work. The platform's job is everything around it.

***

## What you submit

Submission is a contract step, not just a technical handoff. The platform reviews:

* **Server contract** — the tools, schemas, and capability descriptions match what the runtime actually exposes.
* **Identity ownership** — you can demonstrate you own the runtime endpoint and the upstream systems your tools touch.
* **Billing setup** — the per-call earnings split, payout details, and settlement preferences are agreed and recorded.
* **Operational expectations** — your runtime can meet the platform's expectations for behaviour and reliability under load.

What gets reviewed is the contract, not the source code. Mediafier supports multiple integration models; during the invite-only pre-launch, the Mediafier team determines the appropriate model with each provider. Whatever the model, the platform governs the access path, meters the calls, and audits what happened.

***

## What you control about your listing

Publishers choose how a listing appears in the catalog and who can install it. The two control axes — **visibility** (listed vs. unlisted) and **access** (public vs. allowlist) — are summarized in [The Marketplace](/partners/marketplace#what-tool-publishers-control). The short version:

* **Visibility** lets you ship a discoverable catalog entry or keep the resource off the catalog and reachable only via a direct reference.
* **Access** lets you allow any org admin to install (the default growth path) or restrict installs to organizations on a publisher-managed allowlist.

Both settings are publisher-controlled and changeable after listing. Use them to model private partnerships, early-access pilots, beta cohorts, or fully private integrations without leaving the governed publishing contract.

***

## What happens after listing

A listed resource is discoverable platform-wide (subject to your visibility setting). It is **not** runnable until an org admin installs it for their organization. The installation step is what:

* Binds your resource to that org's tenant context.
* Triggers credential binding for any upstream APIs your tools need.
* Makes your tools appear in the org's `tools/list` discovery for any agent the org runs.
* Enables per-call metering against the org's wallet, with earnings routed to your settlement record.

After installation, every call from that org's agents to your tools walks the same gateway chain as every first-party tool. There is no "Marketplace fast-path" — and you don't have to build one.

***

## What the platform commits to

Three things the platform delivers to publishers without further negotiation:

* **Per-call metering with trace correlation.** Every call to your tools is recorded against the trace ID, attributed to the calling organization, and priced per the listing.
* **Append-only earnings ledger.** Every accrual is an immutable ledger entry. Corrections are new offsetting entries, not edits.
* **The same governance contract as first-party tools.** Identity, org isolation, authorization, billing, audit. Your tools inherit the platform's enforcement model — they don't have to implement one.

Specific split percentages, payout cadence, and settlement currency are publisher-specific terms in the publisher agreement, not in launch documentation.

***

## What the platform handles for every listed resource

The Marketplace contract is uniform across every publisher. Five things the platform handles on every call to your runtime so your server doesn't have to:

* **Identity.** The gateway resolves the caller and hands your runtime a principal. Your server doesn't accept client-supplied identity, and doesn't need to.
* **Org isolation.** Tenant context is server-derived. Your runtime sees the org context the gateway determined; your runtime does not choose the tenant.
* **Audit.** Calls to your tools get the same audit treatment as any first-party tool — you inherit the chain instead of building one.
* **Credential governance.** The gateway prepares and injects credentials your tools need; your runtime never reads a credential store directly. You don't operate a vault.
* **Metering.** Calls that reach your runtime are metered against the calling org's wallet; earnings flow back through the same ledger.

Because the contract is uniform, your publisher account scales without a separate compliance investment. Your tools sit behind the same enforcement chain customers review for first-party tools.

***

## What this page is not

* It is not the full onboarding checklist. The runtime spec, the exact schemas, the certification checklist, the submission process, and the publisher agreement template live in the **qualified partner onboarding packet**, issued through the operator-assisted flow once you have requested access and been qualified. This page is the orientation; the packet is the step-by-step. The path is always the same: understand the opportunity here → review the public integration contract → [request access](https://mediafier.ai/request-access) → receive the partner onboarding packet.
* It is not a guarantee that any submission will be approved. Listing is reviewed and accepted on contract.
* It is not the Marketplace economics page. See [Provider Earnings & Marketplace Economics](/partners/provider-earnings-and-marketplace-economics) for how per-call earnings work.

***

## Where to go next

| If you're…                                                 | Read next                                                                                                                                                  |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Looking at Marketplace economics for publishers            | [Provider Earnings & Marketplace Economics](/partners/provider-earnings-and-marketplace-economics)                                                         |
| Looking at the Marketplace itself                          | [The Marketplace](/partners/marketplace)                                                                                                                   |
| Studying the gateway your resource will be reached through | [The Gateway](/platform/gateway)                                                                                                                           |
| Connecting your existing tools without publishing          | [MCP Access](/connect/mcp-access)                                                                                                                          |
| Ready to build an MCP server or MediaClaw end-to-end       | **Operator-assisted during the invite-only pre-launch** — [request access](https://mediafier.ai/request-access) and our team builds and publishes with you |


# Provider Earnings & Marketplace Economics

How tool publishers earn per call and how the platform clears against the same ledger customers see.

> **Tool publishers earn per call. The platform clears against the same ledger every other tool call clears against.** Marketplace economics are a thin shell over the same governed billing chain the rest of the platform runs on.

***

## What this page locks down

Three questions every prospective tool publisher walks in with:

1. **Where does the money come from?** Per-call metering against the calling organization's credit wallet.
2. **How does the platform attribute earnings to the publisher?** The trace ID. Every governed call carries one; it correlates any available audit and ledger records with the publisher's listing, and the ledger movement carries the publisher's earnings split.
3. **What does the publisher have to do to participate?** Build to the platform's MCP server contract, get listed, and bind credentials through the platform's gateway-injected credential path. The platform does the rest.

***

## How earnings accrue

Marketplace economics are governed by the same gateway chain described in [The Gateway](/platform/gateway). Every call to a listed MCP:

1. Is identity-verified and tenant-isolated like any other call.
2. Is metered against the calling organization's wallet at the billing stage, before dispatch.
3. Is covered by the audit trail, which is designed to hold a record carrying the trace ID, the calling organization, and the surface called.
4. Produces a corresponding ledger movement that attributes the publisher's earnings against the same trace ID.

Earnings accrue per call. There is no separate "marketplace billing pipeline" running alongside the platform's billing chain. Publisher earnings are a property of the same ledger that meters every governed call.

***

## What gets metered, what does not

| Event                                                      | Earnings impact                                           |
| ---------------------------------------------------------- | --------------------------------------------------------- |
| A successful tool call to a listed resource                | Earnings accrue to the publisher per the listing's price. |
| A tool call rejected by gateway authorization              | Not metered. No earnings.                                 |
| A tool call rejected by the wallet (insufficient credits)  | Not metered. No earnings.                                 |
| A tool call where the publisher's runtime returns an error | Per the listing — see "Earnings on errors" below.         |
| Discovery / listing browse traffic                         | Not metered.                                              |

A call the gateway rejects before dispatch does not run. A rejection that happens before payment is taken creates no charge and no earnings; where a customer charge and publisher accrual were already recorded, Mediafier attempts offsetting ledger entries (see [Credits & Billing](/overview/credits-and-billing)).

***

## Earnings on errors

The platform's posture on runtime errors:

* **Validation errors** the gateway catches before dispatch do not run. If a customer charge and publisher accrual were already recorded, Mediafier attempts offsetting entries; an unsettled result stays correlated by trace ID for reconciliation.
* **Runtime errors** that come back from the publisher's runtime are metered per the listing's published rule. Some listings charge for attempted work; some only for successful outcomes. The behaviour is declared by the publisher at listing time.

The trace ID correlates the runtime's error envelope with any available audit and ledger records, so a customer-support investigation into a contested charge starts from one identifier.

***

## Settlement and payout

Settlement runs against the same ledger. The platform commits to:

* **Per-call attribution.** Every earnings accrual is tied to a specific call's trace ID. There is no aggregate-only accrual.
* **Append-only ledger movements.** Earnings are recorded as immutable ledger entries; corrections happen as new offsetting entries, not by editing history.
* **Auditable splits.** Each accrual records the calling organization, the publisher, the surface, the cost, and the split shape.

Specific split percentages, payout cadence, settlement currency, and clearing model are negotiated as part of the publisher agreement. Those terms are not published in launch documentation; the agreement is the source of truth for an individual publisher's commercial terms.

***

## What publishers can rely on before building

Three things the platform commits to up front, so a publisher can size the work and the economics before writing code:

* **Per-call metering at the gateway.** Calls that run are metered. A refusal that happens before payment is taken is not charged; where a charge was already recorded, Mediafier attempts to reverse it.
* **Trace-correlated audit.** Every accrual is reconstructable from the call's trace ID — no black-box aggregation.
* **The same governance contract as first-party tools.** Identity, org isolation, authorization, billing, audit. A marketplace MCP doesn't get a fast-path or an exemption; it doesn't have to ship one either. The platform's chain takes care of it.

That contract is what makes earnings defensible end to end. A publisher earning under marketplace economics has the same evidence base as a first-party tool.

***

## What this page is not

* It is not the publishing onboarding guide. The full path — contract, listing review, credential binding, capability description — ships in [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace).
* It is not a price list or a payout-percentage table. Those terms are publisher-specific and negotiated in the publisher agreement.
* It is not a guarantee of marketplace listing. Listing is reviewed and accepted on contract — see [The Marketplace](/partners/marketplace).

***

## Where to go next

| If you're…                                             | Read next                                                                        |
| ------------------------------------------------------ | -------------------------------------------------------------------------------- |
| Looking at the marketplace itself                      | [The Marketplace](/partners/marketplace)                                         |
| Looking at how per-call billing works for the customer | [Credits & Billing](/overview/credits-and-billing)                               |
| Looking at the broader engagement structure            | [Credits & Billing](/overview/credits-and-billing)                               |
| Building an MCP to publish                             | [Publishing to Mediafier's Marketplace](/partners/publishing-to-the-marketplace) |


