put_plugin_manifest. See Sources for when to use one. This page is the format, for you or your agent to check.
A manifest never runs code. Every value comes from a fixed value or a path into a record, so you can read one and know what it does.
The shape
Every manifest has these four fields:
Then it reads from exactly one place:
- An address. Set
formatto"json"or"rss"andurlto anhttps://address. - A remote MCP tool. Set
transportto{ "type": "mcp", "url": "...", "tool": "...", "arguments": { } }. unicorn calls that tool once per sync.
itemsPath, a dot path to the list of records in the response, such as "data.issues". A number in the path picks an array entry, as in "messages.0". Leave it out when the response is already the list.
Authentication
A source that needs a key reads it from a Worker secret whose name starts withPLUGIN_SECRET_. Set the secret first:
auth. A manifest cannot reach any other secret, and the key never appears in the manifest itself.
A remote MCP tool takes
{ "type": "bearer", "binding": "PLUGIN_SECRET_X" } inside transport, or { "type": "oauth", "provider": "google" }, which is what the Gmail source uses.
Mapping
{ "path": "<dot.path>" }, read from the record, or { "value": <json> }, a fixed value. id, kind, title and timestamp are required. url and body are optional.
To tag items with the course codes they mention, add a facet that unicorn computes itself:
More than one page
A JSON address can follow extra pages before mapping. Add one of these aspagination:
Each takes
maxPages: 5 by default, never more than 10. A next-page link that points at a different site stops the sync with an error, so your key is never sent somewhere the manifest did not name.
One request per parent
fanOut fetches a list first, then runs the main request once for each entry, such as every course and then each course’s assignments:
fromis the list to fetch, with its own optionalitemsPathandpagination.asnames the entry. Use it in the mainurlas{{course.<path>}}. A name that does not matchasis rejected.maxis how many entries to visit, from 1 to 20.- A mapping path that starts with
$parent.reads from the list entry instead of the record.
Limits
- Pagination and
fanOutwork withformat: "json"only, never with RSS or a remote MCP tool. - One source may make 25 requests per sync, counting every page and every entry. Past that, the source fails with an error instead of saving part of its data.
- A response over 5 MB is rejected.
- Every address must use
https://.