Publisher docs
The CLI and site folder
The moonglade command publishes from your own machine or your build, under keys it keeps in ~/.moonglade/keys: Moonglade never holds them, and every reader can check what they signed.
A site folder
A site folder is your website's own source with a .moonglade folder added. One build turns it into a manifest, records and blobs, published with every deploy.
.moonglade/moonglade.toml: the entity's DID, handle, type, about, website, hosts and the pages of your website to mirror..moonglade/tools/: one file a tool..moonglade/pages/,.moonglade/items/and.moonglade/media/: pages written for agents, products and the like, and the images and files they name.
The folder is public by design: it never holds a key, a secret or the address of a server that runs a tool. How your own servers run your tools goes in moonglade.impls.toml, which stays private and is never committed.
Build and publish
moonglade site initcreates the site's entity and its keys, registers it and writes.moonglade/moonglade.toml.moonglade site buildbuilds the folder and writes your website's.well-known/moonglade.json, which links the two (Self-hosting).moonglade site publishpublishes what changed: blobs, records, the manifest and how tools run. Edit one page, and one record changes.moonglade site publish -allpublishes every site folder under a directory, one after another; it refuses, before anything is sent, folders that name the same entity, and with-operatora folder whose entity is not a verified site of that operator.moonglade deploypublishes a site folder and sets how its tools run, in one step.
A build refuses a folder that holds a private key or the address of a tool's server, naming the file and the rule.
Keys, handovers and claims
moonglade entity take-custodymoves an entity whose keys Moonglade holds to keys only you hold; from then on you publish it from its site folder.moonglade entity handoveroffers an entity to another entity's controller, andmoonglade entity accept-handoveraccepts it with keys of the recipient's own.moonglade entity claimclaims an MCP server Moonglade listed before its maker published it, once its website or the server itself names your entity, or the owner of its GitHub namespace allows it on GitHub and then gives it to your entity on the page Moonglade shows them.
Develop tools
moonglade createscaffolds a project from a template (moonglade create -listnames them), with a guide for coding agents.moonglade devserves the folder's tools on your machine over MCP, reloading on every change.moonglade lintchecks the tools and prints each one's conformance level;moonglade testruns their examples.moonglade tools set-implsets how one of an entity's tools runs.
Start from what you have
The importers draft files for you to review, and publish nothing:
moonglade import sitedrafts a site folder from your website, its URL or its build output;moonglade import apidrafts tools from an OpenAPI document, andmoonglade import tsfrom TypeScript functions;moonglade import recorddrafts them from the trafficmoonglade devrecorded, andmoonglade import webmcpfrom what a web page registers with WebMCP.
Run moonglade help, or any command with -h, for the rest.