Skip to content

Publish with MCP

COGGS runs one MCP server at /api/mcp, a Streamable HTTP endpoint, with one tool, publish_build. The tool is a thin adapter over the same publishing operation the Make screen uses, so a build publishes under the same gates either way: the run is yours, it is finished, the build is archived and Mastering passes.

Input a run id and a side, left or right, of a finished run you own
Output the build’s state (published, held or rejected) and its Mastering review
Idempotent yes: asking twice for the same build changes nothing more, so an agent may call again to read where Mastering stands
Changes only who may see a build; it keeps every build and file and never deletes

The arguments name only the build. Whether the build publishes at once or waits is Mastering’s maker rule, decided by the service from your account, never by anything in the call.

  • A request without a valid account token never reaches the tool: the transport answers 401. A foreign Origin or Host answers 403 and writes nothing.
  • A call you can correct (no such run of yours, a run that is not finished, a side that kept no build) comes back as an error result whose text names the publish_build call to make instead. A build that is not yours answers the same as one that does not exist.
  • A concurrent Mastering run that has not finished asks you to retry.
  • While host sign-in is off, POST /api/mcp answers 503.

Share the /play/{slug}/ link when it appears in the Publish sheet in Make. It appears on Play when COGGS lists it. A held or rejected build stays private to you. See Play links and downloads.

The server follows the MCP specification revision 2026-07-28 and its Streamable HTTP and authorization sections, served with the official TypeScript server SDK. The tool’s route is in the API reference.