agent-paste.sh
Docs

MCP Server

Hosted agents without CLI access can publish, inspect, revise, and share text Artifacts over OAuth-only MCP.

When to use MCP

Use MCP when an agent runs inside a hosted tool that can connect to remote MCP servers but cannot install npm packages, spawn a CLI, or use a local keychain.

MCP is not a weaker side channel. It is a core agent surface for publishing text Artifacts, reading Agent Views, adding Revisions, and managing Share Links or Revision Links without shell access.

Endpoint

Production MCP runs at https://mcp.agent-paste.sh. The transport endpoint is POST / using Streamable HTTP JSON-RPC. Protected Resource Metadata is at /.well-known/oauth-protected-resource; the root OAuth resource is https://mcp.agent-paste.sh/.

MCP does not accept API Keys or dashboard cookies. It verifies a WorkOS-issued OAuth bearer token and forwards authenticated calls to api and upload over service bindings.

Connect https://mcp.agent-paste.sh in the host, complete OAuth, then run whoami first. The WorkOS user must already belong to a Workspace, which dashboard sign-in or agent-paste login creates.

Capability scopes

WorkOS AuthKit tokens carry standard OAuth scopes. agent-paste derives MCP capabilities from the authenticated Workspace Member in api: read, write, and share.

MCP scopeBacked byTypical tools
readmember readwhoami, list_artifacts, read_artifact, list_revisions
writemember publishpublish_artifact, add_revision, delete_artifact, update_display_metadata
sharemember admincreate_share_link, create_revision_link, list_access_links, revoke_access_link

Tools

ToolPurpose
whoamiReturn authenticated member, Workspace, and derived scopes.
publish_artifactPublish a new text-only Artifact and return its Artifact URL.
add_revisionAdd and publish a new text-only Revision and return its Artifact URL.
list_artifactsList Artifacts in the Workspace.
read_artifactRead latest Agent View for an Artifact.
list_revisionsList Revisions for an Artifact.
delete_artifactDelete an Artifact.
update_display_metadataUpdate an Artifact display title.
create_share_linkCreate and mint a Share Link for the latest Revision.
create_revision_linkCreate and mint a Revision Link for a specific Revision.
list_access_linksList Share Links and Revision Links for an Artifact.
revoke_access_linkRevoke a Share Link or Revision Link.

Limits

The MCP publish tools are text-only. Binary uploads, multi-file folder uploads, standalone Bundle downloads, workspace settings, billing, and lockdown controls stay in CLI, REST, or dashboard surfaces.

publish_artifact and add_revision accept optional idempotency keys. When omitted, the server derives stable keys from the OAuth subject, JSON-RPC id, and tool name.

Artifact lifetime follows Workspace Auto Deletion policy. MCP callers do not choose TTL.