# listing.schema.json

> One Discover listing (config-schema §8c; docs/plans/directory.md): what a shared streamline is called and says about itself, beside the *.streamline.json it lists.

One Discover listing (config-schema §8c; docs/plans/directory.md): what a shared streamline is called and says about itself, beside the *.streamline.json it lists.

Raw file: https://streamliner.work/schema/v1/listing.schema.json

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://streamliner.work/schema/v1/listing.schema.json",
  "title": "listing.json",
  "description": "One Discover listing (config-schema §8c; docs/plans/directory.md): what a shared streamline is called and says about itself, beside the `*.streamline.json` it lists. Signed with the version's manifest. The label (what it connects to, what runs without asking) is never written here: Discover computes it from the streamline file itself. The listing's id and channel are not in this file: the server chooses the id and the version manifest carries both.",
  "type": "object",
  "required": ["schema", "name", "summary", "streamlines", "version"],
  "additionalProperties": false,
  "properties": {
    "$schema": { "$ref": "defs.schema.json#/$defs/schemaRef" },
    "schema": { "const": "streamline.listing/1", "description": "`streamline.listing/1`. An app that doesn't know the major version shows *Update Streamliner to open this link*." },
    "name": { "type": "string", "minLength": 1, "maxLength": 60, "description": "The listing's name, as the listing page heads it. Usually the streamline's own name." },
    "subtitle": { "type": "string", "maxLength": 80, "description": "One line under the name, e.g. `Kiwi.com · Made by Streamliner, not by Kiwi.com`." },
    "summary": { "type": "string", "minLength": 1, "maxLength": 300, "description": "What it does, in a sentence or two. Plain text." },
    "category": { "enum": ["travel", "shopping", "productivity", "business", "finance", "developer-tools", "lifestyle", "health", "education", "entertainment"], "description": "Where Discover's Explore groups the listing (its headings; filter chips later). Returned by the public catalog." },
    "streamlines": {
      "type": "array", "minItems": 1, "maxItems": 12, "uniqueItems": true,
      "items": { "$ref": "defs.schema.json#/$defs/kindId" },
      "description": "The streamline ids this listing carries, each a `<id>.streamline.json` beside this file (in a version: `streamlines/<id>.streamline.json`). A pack lists several; a link share carries exactly one (phase 1)."
    },
    "version": { "type": "string", "pattern": "^[0-9]{1,4}(\\.[0-9]{1,4}){0,2}$", "patternErrorMessage": "a version like 1, 1.2 or 1.2.3", "description": "The version people see (`1.2`). The version manifest's integer `version` orders versions; this is only shown." },
    "releaseNotes": { "type": "string", "maxLength": 2000, "description": "What changed in this version. Plain text." },
    "support": {
      "type": "object", "additionalProperties": false, "required": ["url"],
      "properties": { "url": { "$ref": "defs.schema.json#/$defs/httpsUrl", "description": "Where people ask for help." } },
      "description": "Where to get help with this listing (never a sign-up or pricing page: App Review 3.1)."
    },
    "service": {
      "type": "object", "additionalProperties": false, "required": ["name"],
      "properties": {
        "name": { "type": "string", "minLength": 1, "maxLength": 60, "description": "The product it connects to, e.g. `Kiwi.com`." },
        "domain": { "$ref": "defs.schema.json#/$defs/hostName", "description": "That product's domain." },
        "privacyUrl": { "$ref": "defs.schema.json#/$defs/httpsUrl", "description": "The service's own privacy policy (added 2026-10-19, round two). MCP carries none, and few OAuth servers fill RFC 9728's `resource_policy_uri`, so the publisher records it; the listing page links it. Usually on the service's own domain (`listing.serviceLink` warns otherwise)." },
        "termsUrl": { "$ref": "defs.schema.json#/$defs/httpsUrl", "description": "The service's own terms of use (added 2026-10-19, round two), linked on the listing page beside the privacy policy. Usually on the service's own domain (`listing.serviceLink` warns otherwise)." },
        "claimed": { "type": "boolean", "description": "Set only by Streamliner after the domain's owner proved it (DNS TXT or /.well-known/streamliner.json). A publisher's `true` is ignored and warned about." }
      },
      "description": "The product the listing connects to: its name, domain, and its own privacy policy and terms (the listing page links both; MCP carries neither). Only a claimed listing may show the service's logo or drop *not by <Company>*."
    },
    "visibility": { "enum": ["link", "public"], "default": "link", "description": "`link` (anyone with the link) or `public` (listed in Discover's public catalog as well; only for accounts Streamliner allows, PUBLIC_PUBLISHERS: any other account's public version is refused, `422 public_not_yet`)." },
    "thumbnail": { "type": "string", "maxLength": 2048, "pattern": "^data:image/png;base64,iVBORw0KGgo[A-Za-z0-9+/]*=*$", "patternErrorMessage": "a PNG data URL (data:image/png;base64,…)", "description": "The logo drawn tiny, at most 2048 characters (added 2026-10-20, the storefront): Discover's storefront paints a tile from it with no logo request. Made by the publisher from the streamline's logo (`seeds/publish-listings.mjs`, the app's Publish to Discover), signed with the rest of this file; the Worker refuses a bigger one or another format (`422 bad_version`)." },
    "keywords": { "type": "array", "maxItems": 12, "items": { "type": "string", "minLength": 1, "maxLength": 40 }, "description": "Words people might search Discover for that the name and summary don't say (added 2026-10-20, the storefront's search). Up to 12, each at most 40 characters." },
    "mcpServer": {
      "type": "object", "additionalProperties": false, "required": ["version", "source"],
      "properties": {
        "version": { "type": "string", "pattern": "^[0-9A-Za-z][0-9A-Za-z.+_-]{0,39}$", "patternErrorMessage": "a version like 2.1 or 1.0.3-beta, at most 40 characters", "description": "The MCP server's own version, as its provider gives it (`2.1.0`). Plain text; never ours." },
        "updated": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$", "patternErrorMessage": "a date, YYYY-MM-DD", "description": "When the provider last published that version (the MCP Registry's updatedAt), as a date. Absent when only the server itself answered." },
        "source": { "enum": ["registry", "server"], "description": "Where the version came from: `registry` (the official MCP Registry, registry.modelcontextprotocol.io) or `server` (the server's own `initialize` answer, serverInfo.version)." },
        "registryName": { "type": "string", "maxLength": 200, "pattern": "^[a-zA-Z0-9.-]{1,100}/[a-zA-Z0-9._-]{1,100}$", "description": "The server's name in the MCP Registry (`com.airtable/mcp`), when `source` is `registry`." }
      },
      "description": "The provider's own MCP server version and update date (added 2026-10-21; Nima: the provider's version is the listing's primary version line, Streamliner's `version` label the secondary one under it). Found by the publisher (`seeds/mcp-versions.mjs`: the MCP Registry, else the server's unauthenticated initialize), signed with the rest of this file. Data from a stranger: shown as plain text. Omit it when unknown."
    },
    "previews": {
      "type": "object", "additionalProperties": false, "required": ["turns"],
      "properties": {
        "conversation": { "type": "boolean", "description": "`true` when the turns are a predicted conversation written by hand (they play one after another); absent when they are the streamline's own previews (each card over its template's `sample`)." },
        "timeZone": { "type": "string", "maxLength": 64, "description": "An IANA time zone: where the cards show a time that carries a zone. Default: the device's." },
        "turns": {
          "type": "array", "maxItems": 16,
          "items": {
            "type": "object", "additionalProperties": false, "required": ["phrase", "message", "reply"],
            "properties": {
              "phrase": { "type": "string", "minLength": 1, "maxLength": 60, "description": "The quick phrase's label (the chat tab's title)." },
              "message": { "type": "string", "minLength": 1, "maxLength": 200, "description": "The person's message, finished." },
              "reply": { "type": "string", "minLength": 1, "maxLength": 600, "description": "The assistant's line. It says only what the card shows." },
              "card": { "$ref": "#/$defs/previewCard" },
              "ask": {
                "type": "object", "additionalProperties": false, "required": ["tool", "button"],
                "properties": {
                  "tool": { "type": "string", "minLength": 1, "maxLength": 128, "description": "One of the streamline's tools that ask first." },
                  "button": { "type": "string", "minLength": 1, "maxLength": 24, "description": "The tap's words, a verb first." },
                  "title": { "type": "string", "minLength": 1, "maxLength": 120, "description": "The question the card asks." },
                  "rows": { "type": "object", "maxProperties": 4, "additionalProperties": { "type": "string", "minLength": 1, "maxLength": 120, "description": "One thing that will be sent, in words." }, "description": "What will be sent, in words: up to 4 `{ label: value }`." },
                  "card": { "$ref": "#/$defs/previewCard" }
                },
                "description": "The card that waits for the person's tap (the app's confirm card: *Needs your tap*, *Not yet* and the button)."
              },
              "then": {
                "type": "object", "additionalProperties": false, "required": ["reply"],
                "properties": { "reply": { "type": "string", "minLength": 1, "maxLength": 600, "description": "The assistant's line once the tap is done." }, "card": { "$ref": "#/$defs/previewCard" } },
                "description": "What follows the tap: the assistant's line and the card of the result."
              }
            }
          },
          "description": "What the listing's phone plays, in order: each the person's words, the assistant's line and the card, or the card that waits for the tap and what follows it."
        },
        "tools": {
          "type": "array", "maxItems": 400,
          "items": {
            "type": "object", "additionalProperties": false, "required": ["tool", "text", "asks"],
            "properties": {
              "tool": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The tool's own name, as its server lists it." },
              "text": { "type": "string", "minLength": 1, "maxLength": 80, "description": "The tool in plain words (`Get job status`)." },
              "asks": { "type": "boolean", "description": "`true`: it asks before it acts (`tools.confirm`)." }
            }
          },
          "description": "Every tool the streamline's servers offer, in plain words (the listing page's Tools cloud)."
        }
      },
      "description": "What the listing page's phone plays and its Tools cloud (added 2026-10-24, discover-parity; config-schema §8c *Previews*): worked out by the publisher from the seed's own files (`seeds/lib/previews.mjs`: the predicted conversation over `seeds/<dir>/sample/<tool>.json`, else the previews over each template's `sample`; the tools in plain words), the same data the site's Discover pages draw. Signed with the rest of this file; the Worker refuses another shape (`422 bad_version`) and leaves it out of the catalog and the storefront. A stranger's data: the app draws each card with its own template renderer, never runs anything, never fetches an image."
    },
    "ageRating": { "enum": ["4+", "9+", "12+", "17+"], "description": "App Review 4.7 asks for one per item. Default `4+`." }
  },
  "$defs": {
    "previewCard": {
      "type": "object", "additionalProperties": false, "required": ["template", "data"],
      "properties": {
        "tool": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The tool whose result the card draws (one of the streamline's MCP tools)." },
        "template": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The template that draws it: a key of the streamline file's `templates` (the one its renderers give the tool)." },
        "data": { "type": ["object", "array"], "description": "The tool's result, made up (`seeds/<dir>/sample/<tool>.json`): a stranger's data, drawn by the app's own template renderer, never run, its images never fetched." }
      },
      "description": "A card in a preview: one of the streamline file's templates over made-up data."
    }
  }
}

```
