A manifest is one JSON document that tells unicorn how to read one more source. Your agent usually writes it for you from a sample response and saves it with the admin tool 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 format to "json" or "rss" and url to an https:// address.
  • A remote MCP tool. Set transport to { "type": "mcp", "url": "...", "tool": "...", "arguments": { } }. unicorn calls that tool once per sync.
Both accept 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 with PLUGIN_SECRET_. Set the secret first:
Then name it in 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

Each field is either { "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 as pagination: 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:
  • from is the list to fetch, with its own optional itemsPath and pagination.
  • as names the entry. Use it in the main url as {{course.<path>}}. A name that does not match as is rejected.
  • max is 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 fanOut work with format: "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://.
A manifest that breaks any rule is rejected when it is saved, so a broken one never reaches the hourly sync.