Sofia
AI Agents / MCP Server Docs
Sofia Protocol 2.0 Remote Streamable HTTP OAuth 2.1 with PKCE

Sofia MCP Server

Allow autonomous AI assistants to operate your Sofia creator marketing engine through the open Model Context Protocol.

Zero client installation required

Sofia hosts a live, high-throughput Model Context Protocol server. An AI model can discover creators, negotiate terms, sign contracts, review videos, and execute payouts directly through natural conversation — no custom HTTP integrations or glue code needed.

Live Remote Endpoint https://app.sofia.com/api/mcp

What Sofia exposes to your agent #

The Sofia MCP server maps 1:1 with Sofia’s battle-tested REST API, protected by granular OAuth 2.1 capability scopes. Every capability is exposed as a typed, structured MCP tool, alongside a foundational whoami tool for real-time verification of tenant identity, permission boundaries, and sub-account access.

Read-Only Safety

Read scopes reveal idempotent, query-only tools that cannot mutate account state or spend campaign capital.

State Guardrails

Write tools mutate Sofia state reversibly, carrying full confirmation guardrails in their schema descriptions.

Financial Safeguards

Sensitive operations (contract signing, wallet transfers, payout runs) enforce dry-run validations before execution.

The quick-pay claim link facility is directly accessible to agents via create_quickpay_claim_link.

Prerequisites & Security Architecture #

To connect an AI assistant, you need three components:

1

MCP-Enabled Client

Claude Code, Claude Desktop, Cursor, VS Code (Copilot/Cline), or any assistant speaking MCP over Streamable HTTP.

2

OAuth 2.1 Client

Sofia MCP uses standard OAuth 2.1 with Dynamic Client Registration (RFC 7591) to mint client IDs with no manual API key rotation.

3

Bearer Token (PKCE)

Authorized via PKCE (S256). Sofia tokens are multi-audience: the same credential validates for both REST API and MCP endpoints.

Zero-Configuration Discovery (RFC 9728): When an unauthorized client connects, Sofia returns an HTTP 401 with a WWW-Authenticate challenge containing protected-resource metadata. Compliant tools discover the authorization server dynamically, enabling complete zero-click setup from the URL alone.

Connect your assistant in 60 seconds #

claude mcp add --transport http sofia https://app.sofia.com/api/mcp

Claude Code will initiate the browser-based OAuth authentication flow automatically on its first execution.

Understanding Sofia Connectors:

Two distinct configurations use the term Connectors:

  • Incoming Assistant Connectors: Your client’s settings (such as Claude Desktop’s Settings → Connectors) point an external assistant into your Sofia brand workspace. This documentation covers this flow.
  • Outgoing Sofia Connectors: Inside the Sofia dashboard under Settings → Sofia Connectors, Sofia itself connects outward to third-party data providers and e-commerce platforms.

Role-Based Permission Ceilings: A user’s consented scope array acts as a strict ceiling. If a user later has their permissions adjusted by a workspace administrator, subsequent token refreshes narrow the accessible tool capabilities immediately, ensuring AI actions never bypass organizational roles.

Interacting with Sofia in natural language #

Once your client is connected, instruct your assistant to verify its active tenant context before initiating operations:

"Call whoami to confirm which Sofia workspace and permissions are currently connected." Verification

You can then command complex operations in plain language:

"List my active Sofia campaigns, show creator applicant counts, and draft offer terms for the top 3 candidates." Workflow

Every invocation is cryptographically bound to the authenticated workspace. Requesting actions beyond granted scopes yields an actionable reauthorization prompt rather than an ambiguous error.

Workspace Switching: Modifying the active workspace in the Sofia web browser does not automatically alter an established MCP session. To point your agent at another company, disconnect the client and authorize again with the desired workspace selected.

Agency Sub-Account Delegation #

Agencies managing multiple client brands on Sofia can grant their AI agents global or scoped sub-account access during OAuth consent.

  • The whoami response includes a subaccountAccess property: null (single workspace), "all" (entire client portfolio), or an explicit array of client workspace IDs.
  • All business tools support an optional act_as_subaccount_id parameter. Pass the client workspace ID (discovered via list_companies) to execute actions directly on that brand’s behalf.
  • Under the hood, Sofia routes the request with an X-Act-As-Company tenant header, rigorously verifying parent-child relationships and live permission ceilings on every call.

Intent-Driven Capability Discovery #

Because some AI client environments enforce strict limits on total tool schema size, Sofia implements a two-stage discovery pipeline. Core discovery tools are registered first so models never drop critical capabilities:

Step 1 · Semantic Search

Intent Resolution

The agent calls find_capability with an English description of the desired task to locate candidate tools.

Step 2 · Schema Inspection

On-Demand Schemas

The agent loads the exact JSON input schema via catalog_get_schema right before dispatching data.

Step 3 · Confirmation

Parameter Review

The agent presents resolved enum values, budget amounts, and parameters to the user for explicit confirmation.

Step 4 · Safe Execution

Gated Invocation

The agent dispatches via catalog_invoke_read, catalog_invoke_write, or catalog_invoke_sensitive.

Creator Marketplace Operations #

Workflow Sofia MCP Tool Operational Guidelines
Post Creator Job create_job Compiles title, brief, compensation model (fixed retainer, per-post fee, or hybrid), and screener questions. Debits one posting credit; confirmation required.
Update Active Job update_job Patch specific fields without consuming posting credits. Modifying payout structures requires supplying the complete updated configuration block.
Archive / Close Job update_job_status Safely removes listings from public discovery, preserving applicant audit trails and credit balances.
Review Applications list_applicants_advanced Access applicant profiles, screener questionnaire answers, portfolio clips, and social metrics.
Link Campaign to Market create_job(programId) Binds the public marketplace listing directly to a private Sofia campaign container.

The 16 Curated Sofia Skills #

Sofia packages multi-step creator procedures as Named Skills. Assistants can execute them via MCP slash prompts or programmatic invocation through invoke_skill:

Skill Handle Procedure Intended Agent Context
boost-post Boost Winning Post Converts high-converting organic creator content into TikTok Spark or Meta whitelist ad units. Enforces spend authorization before launching.
create-campaign Launch Campaign Architects full creator campaigns from Sofia benchmark templates, setting objectives, timelines, and deliverables.
find-creators Discover Talent Queries Sofia's verified creator roster by audience demographics, niche, engagement rates, and platform.
fund-wallet Manage Balance Checks escrow balances, estimates required campaign capital, and generates secure payment checkout links.
grill-my-brief Audit Brief Critiques creative hooks, compliance constraints, and production clarity against viral ad benchmarks.
hire-creator Contract Talent Generates custom usage agreements, dispatches e-signatures, and onboards creators to active campaigns.
invoice-client Client Billing Generates client-facing invoices, tracks receivables, and issues receipts for agency services.
message-creators Roster Broadcast Transmits reminders, production updates, or briefing adjustments across individual or cohort creator chats.
performance-report Executive Summary Synthesizes video views, CTRs, creator pacing, and blended CAC into weekly or monthly performance reports.
post-job Publish Listing Finalizes and launches creator opportunities to Sofia's marketplace with pre-flight verification.
quickpay Direct Remittance Issues one-off creator compensation outside standard contracts via email claims or instant bank rail.
resolve-dispute Dispute Settlement Evaluates deliverable milestones and evidence, recommending amicable escrow releases or adjustments.
review-applicants Triage Backlog Ranks applicants by past ad performance and screener responses, queuing acceptance contracts.
review-content Quality Review Reviews submitted raw footage or drafts, approving posts or generating structured revision notes.
run-payouts Execute Payouts Calculates pending payments, runs dry-run ledger verification, and releases creator funds upon user sign-off.
write-brief Draft Creative Brief Authors high-converting UGC briefs tailored to brand identity, visual style, and target audience hooks.

Complete Tool Catalog #

High-performance tools exposed by the Sofia MCP server, categorized by security risk:

Legend: Read (Non-mutating) Write (Reversible state) Sensitive (Real money / outward messaging)
Tool Name Required Scope Risk Description
whoami-readInspect connected Sofia workspace ID, granted scopes, client ID, and agency sub-accounts.
find_capability-readLocate the matching Sofia capability using natural-language intent.
catalog_search-readSearch the full Sofia capability index.
catalog_get_schema-readRetrieve the JSON schema for any discovered tool.
catalog_invoke_readdynamicreadSafely execute discovered read queries.
catalog_invoke_writedynamicwriteExecute confirmed configuration mutations.
catalog_invoke_sensitivedynamicsensitiveExecute sensitive money and contractual operations with confirmation safeguards.
invoke_skillcampaigns:readreadLoad one of Sofia's 16 curated procedure skills into conversational context.
list_campaignscampaigns:readreadFilter and list active, draft, or archived Sofia campaigns.
get_campaigncampaigns:readreadRetrieve details, goals, and roster status for a specific campaign.
create_campaigncampaigns:writewriteInitialize a new campaign container with target metrics and briefs.
update_campaigncampaigns:writewriteUpdate campaign name, instructions, branding emoji, and timelines.
archive_campaigncampaigns:writewriteArchive an ended campaign, preventing new submissions while saving reports.
duplicate_campaigncampaigns:writewriteClone an existing campaign’s settings and briefs into a fresh run.
add_campaign_ghost_handlecampaigns:writewriteTrack an untracked creator handle within a campaign.
bulk_add_campaign_ghost_handlescampaigns:writewriteBatch-import up to 500 creator handles for campaign analytics.
add_campaign_ghost_videocampaigns:writewriteAttach a tracked video link directly to a campaign ledger.
bulk_add_campaign_ghost_videoscampaigns:writewriteBatch-import up to 500 video links for automated metric tracking.
import_campaign_analytics_historycampaigns:writewriteIngest historical video analytics prior to Sofia tracking onset.
get_payment_structurecampaigns:readreadInspect payout terms, performance bonuses, and usage rights.
create_jobjobs:writewritePublish an open job listing to the Sofia Creator Marketplace.
update_jobjobs:writewriteModify marketplace job requirements and creative directions.
list_jobsjobs:readreadList all marketplace job postings owned by your workspace.
get_jobjobs:readreadRetrieve full job specifications and application criteria.
list_applicationsapplications:readreadList incoming creator applications for review.
get_applicationapplications:readreadInspect creator answers, rates, and past sample videos.
update_application_statusapplications:writewriteApprove or decline an applicant; approvals advance to contract drafting.
list_creatorscreators:readreadSearch Sofia’s creator database by follower range, platform, and category.
get_creatorcreators:readreadFetch verified engagement stats, past viral videos, and audience reach.
list_creator_collectionscreators:readreadView saved bookmarks and talent shortlists.
create_creator_collectioncreators:writewriteCreate a named talent shortlist.
create_campaign_invitecreators:writewriteGenerate a direct VIP invite link for specific creators.
list_contractscontracts:readreadReview active, pending, and signed legal agreements.
get_contractcontracts:readreadRetrieve terms, deliverable deadlines, and compensation details.
create_contractcontracts:writewriteDraft and dispatch a creator partnership agreement.
update_contractcontracts:writesensitiveModify retainers or platform usage rights; regenerates PDF agreement.
cancel_contractcontracts:writewriteVoid an unsigned contract.
save_contract_signaturecontracts:signsensitiveExecute and timestamp an e-signature onto a Sofia contract.
list_postsposts:readreadList all tracked creator videos with live metrics across platforms.
get_postposts:readreadInspect video view counts, watch time, shares, and comment sentiment.
get_post_metricsposts:readreadRetrieve daily time-series performance data for attribution models.
export_postsposts:readreadGenerate CSV exports of campaign video statistics.
get_analytics_accountsanalytics:readreadRead authorized brand channel analytics.
list_payoutspayouts:readreadView historical payout ledger entries.
list_pending_payoutspayouts:readreadInspect pending amounts owed to creators for approved milestones.
get_payout_statspayouts:readreadRead current Sofia wallet balance and cumulative disbursement totals.
execute_payoutspayouts:writesensitiveDisburse pending payouts. Supports dry_run: true for preview verification.
quick_paypayouts:writesensitiveRelease an instantaneous compensation transfer directly to a creator.
list_invoicesinvoices:readreadFilter invoices issued to agency clients.
get_invoiceinvoices:readreadRetrieve invoice payment status and itemized line items.
create_invoiceinvoices:writesensitiveGenerate an itemized billing invoice for client approval.
send_invoiceinvoices:writesensitiveEmail an active invoice payment link directly to the customer.
void_invoiceinvoices:writesensitiveCancel and void an unpaid invoice.
list_inboxmessages:readreadUnified creator communications inbox across all campaigns.
list_conversationsmessages:readreadFetch 1:1 creator direct message threads.
get_messagesmessages:readreadRead historical messages in a chat thread.
list_support_channelsmessages:readreadList campaign deliverable help and approval channels.
get_support_channel_messagesmessages:readreadRead message stream within a support channel.
create_conversationmessages:writesensitiveOpen a new chat room with one or more creators.
send_messagemessages:writesensitiveSend direct message text into a conversation.
send_support_channel_messagemessages:writesensitiveTransmit guidance or revision requests in a campaign channel.
react_to_messagemessages:writesensitiveAdd an emoji reaction to creator feedback.
get_settingssettings:readreadRead workspace defaults and currency configurations.
get_companysettings:readreadRetrieve public brand profile details and logo assets.
update_settingssettings:writesensitiveUpdate allowable company configurations and defaults.
list_invitescreators:readreadInspect active campaign invite URLs.
revoke_invitecreators:writewriteDeactivate an invite URL immediately.

Sofia Native Messaging Architecture #

Sofia operates its own high-concurrency native chat network. When interacting with creator conversation streams through MCP:

  • All channels, threads, and individual messages utilize RFC 4122 UUID identifiers.
  • Payload objects report chatType: "native", source: "native", and route responses over the native delivery lane.
  • During scheduled workspace database maintenance, tools return a graceful HTTP 409 Conflict with meta.reason: "messaging_migrating". Agents are instructed to pause and retry after 60 seconds.

Safety Engine & Idempotency #

Enforced strictly at the protocol kernel layer, not on the client:

Security Rule Kernel Behavior
Sandbox Isolation Sensitive tools (financial transfers or outbound communications) are rejected immediately when operating on sandbox or staging credentials.
Kill Switch (Safe Mode) The MCP_SAFE_MODE environment flag instantly deactivates all sensitive tools across the workspace without interrupting read queries.
Idempotency Locks All money-moving and contract actions require an Idempotency-Key header, ensuring network retries never trigger duplicate payouts.
Strict Tenant Binding Every call is locked to one verified company context, preventing cross-tenant data leakage.

Actionable Error Handling #

Sofia transforms raw HTTP status codes into self-healing instructions for the calling LLM:

Trigger Condition Protocol Response & Agent Recovery
Missing Scope Returns descriptive requires 'X:write' scope accompanied by the full cumulative OAuth challenge for the user to re-consent seamlessly.
Cross-Tenant ID Returns Not found or not visible to this Sofia workspace, preventing guesswork.
Sensitive Sandbox Call Returns Action performs real irreversible side-effects; disabled on sandbox token.
Safe Mode Active Returns Operation disabled: Sofia server running under MCP_SAFE_MODE.
Rate Throttled Returns Rate limit exceeded: back off and retry in N seconds with standard headers.

Public Documentation MCP Endpoint #

In addition to the authenticated product server above, Sofia hosts an unauthenticated documentation MCP endpoint so any coding assistant can query these technical specifications on the fly:

https://docs.sofia.com/mcp
Dimension Sofia Product Server Sofia Docs Server
URL Endpoint app.sofia.com/api/mcp docs.sofia.com/mcp
Authentication OAuth 2.1 (PKCE) with Scopes None (Public)
Capabilities Operate brand workspace & escrow Read and search Sofia documentation
Copied to clipboard!