MCP Tools for Publishing: How AI Agents Share Their Own Output

Model Context Protocol (MCP) emerged in late 2024 as the standard for giving AI agents access to external tools.

MCP Tools for Publishing: How AI Agents Share Their Own Output
TL;DR
The MCP ecosystem lets AI agents invoke external tools during a conversation. Display's MCP publish tool lets any Claude Code, Cursor, Codex, or other MCP-compatible agent publish its output to a company-gated URL, without a human manually copying files or clicking publish.

The MCP moment

Model Context Protocol (MCP) emerged in late 2024 as the standard for giving AI agents access to external tools. By 2026, MCP is the plumbing of the agentic web: Claude Code, Cursor, Codex, and most AI coding tools support it. The number of published MCP servers has grown from dozens to thousands.

MCP matters for publishing because it closes the loop on the agent workflow. Before MCP, the workflow was: agent produces output → human manually publishes it → viewers access it. With MCP: agent produces output → agent calls publish tool → viewers access it. The human is removed from the distribution step.


What the Display MCP server does

These Display MCP tools cover the core publishing workflow:

  • publish: create or update an artifact. Arguments: content or file_path, name, optional short_id to update, base_version when updating, format, visibility, share, theme.
  • share_file: grant access to a file in Spaces. Use change_file_access or remove_file_access to manage an existing grant.
  • rename: rename an artifact. The URL slug updates; existing URLs continue to resolve via short_id.
  • list and search: browse artifacts or query by name or source.
  • get_metadata: fetch metadata, retained versions, the heading outline, and open comment threads. Argument: short_id.
  • read: read the source of one artifact version, one byte range at a time.
  • trash_files: move files to Trash in Spaces.

When an agent invokes the publish tool, Display stores the content in the caller's organization and returns a URL. A new artifact starts private. Set visibility to company to open it to everyone on the organization's configured email domains. The URL never changes and works immediately.


How it works in practice

In Claude Desktop:

User says: "Research our top 5 competitors and publish a comparison to my team."

Claude does the research, generates an interactive HTML comparison table, invokes the publish tool, and responds:

"Done. I've published the competitive analysis to your team: https://acme.dsp.so/0kzNYG7O-competitive-analysis-q2"

No terminal, no file management, and no human publishing step.

In an autonomous agent workflow:

async def run_weekly_report():
    data = await fetch_metrics()
    html = generate_report_html(data)
    
    # Agent publishes its own output
    result = await mcp_client.call_tool("publish", {
        "content": html,
        "name": f"weekly-report-{current_week()}",
        "visibility": "company",
    })
    
    await slack_client.post_message(
        channel="#metrics",
        text=f"📊 Weekly report: {result['url']}"
    )

Returned URLs live under the organization's subdomain on dsp.so, e.g., https://yourco.dsp.so/8f3kx9A1-weekly-report-2026-w15.

The agent runs on a schedule, publishes the report, and notifies the team, with no human involvement after the initial setup.


Setup

For Claude Desktop: the fastest path is a custom connector – Settings → Connectors → Add custom connector, paste https://api.display.dev/v1/mcp, and sign in with your work email. For a headless setup, use mcp-remote with an API key (keys start with sk_live_…):

{
  "mcpServers": {
    "display": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.display.dev/v1/mcp",
        "--header",
        "Authorization: Bearer sk_live_..."
      ]
    }
  }
}

Restart Claude Desktop. The tools are available in every conversation.

For Claude Code CLI:

Add to .mcp.json (project scope) or ~/.claude.json (user scope):

{
  "mcpServers": {
    "display": {
      "type": "http",
      "url": "https://api.display.dev/v1/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_..."
      }
    }
  }
}

For custom agents (REST API):

curl -X POST https://api.display.dev/v1/artifacts \
  -H "Authorization: Bearer sk_live_..." \
  -F "file=@report.html" \
  -F "name=report-name"
 
curl -X PUT https://api.display.dev/v1/artifacts/<short_id> \
  -H "Authorization: Bearer sk_live_..." \
  -H 'If-Match: "v1"' \
  -F "file=@report.html"

Why this matters for agent workforces

As teams build agent pipelines (research agents, analysis agents, documentation agents, monitoring agents), the output accumulates. Each agent produces content that humans need to read.

Without a publishing primitive, the workflow breaks down. Agents write to files on disk, to databases, or to Slack messages. None of these are the right format for the work product a human needs to review.

A publishing tool as an MCP primitive means every agent in a workflow can produce output that's immediately accessible to the right people, at a stable URL, behind company auth. The agent workforce produces content and humans consume it, and the distribution layer doesn't require human intervention at each step.

In Display, the AI docs workspace that's open to all agents and people, agents publish that output to Spaces and folders that you and your agents can search. Teammates comment on the page, and the agent reads the comments and publishes the next version at the same URL.


FAQ

Which agents support MCP?

Claude Desktop and Claude Code natively. Cursor has MCP support via settings. Codex and ChatGPT support MCP. Any agent that implements the MCP specification can invoke Display's tools, and other agents can use the CLI or the API.

Can agents update an artifact after publishing?

Yes. Invoke the publish tool with the artifact's short_id and the current base_version. The URL stays the same. Viewers who previously accessed it see the updated content on their next visit.

Are there limits on MCP publishing?

Rate limits are sized for agent-scale workloads, and Enterprise is configurable if you need more headroom.

Are there costs beyond the monthly subscription for MCP usage?

No. MCP publishes count against your organization storage limit, not against a per-publish fee. Solo: 5 GB. Team: 100 GB. Business: 1 TB. Enterprise: custom.

A full workspace behind every URL

Share with your team and clients

Invite your team and your clients by email. Give each person a role, from Viewer to Editor.

Go back to any version

Each publish and each edit saves a version. The link stays the same.

Search for people and agents

You and your agents search inside every doc and file you can open, including PDFs and Office files.

See who opened it

Each doc shows who opened it, and when.

Private betaInternal apps that get data from your sourcesConnectors for the tools your team uses

Publish your first doc from your agent

Your team and your clients comment and edit on the page. Your agent updates the doc at the same link. You never pay for seats.

Free to start · Unlimited viewers