1.0 stable for the consent-link profile — MCP binding profile, registry and forwarding. Other profiles and the core objects are draft. What is stable

Isto Intents holder descriptor

holder-descriptor.schema.json · raw JSON · JSON Schema 2020-12

What an intent holder publishes about itself at /.well-known/isto-intents.json (registry chapter §2, version 1.0). A descriptor written for 0.2 is also a valid 1.0 descriptor.

$id: https://istointents.org/schemas/1.0/holder-descriptor.schema.json

Fields#

fieldtyperequireddescription
specVersion"1.0" | "0.2"yes1.0; 0.2 stays valid for the whole 1.x line (VERSIONING.md)
type"holder-descriptor"yes
idstring (uri, pattern ^https://[^/]+/\.well-known/isto-intents\.json$)yesthe descriptor's own URL
createdcommon › timestampyes
updatedcommon › timestamp
operatoroperatoryes
serversarray of serveryes
registryobject
forwardingobjectwhether forwarders may send this holder intents (forwarding chapter §2)
sourcesarray of sourcelisting portals and dealers whose listings this holder reads from their own feed, with their operator’s consent and a verified domain (registry chapter §2); they run no server of their own
jwksUristring (uri, pattern ^https://)where the holder publishes its signing keys (spec §11)
extensionsobject

Definitions#

nametypedescription
operatorobjectthe organisation responsible for the servers
serverserverFieldsone intent server of the holder
serverFieldsobjectthe fields of one intent server
sourceobjectone portal or dealer connected to this holder by its feed

operator

fieldtyperequireddescription
namestringyes
urlstring (uri, pattern ^https://)yes
contactstring (uri, pattern ^(mailto:|https://))yesa role address, not a person's
countrycommon › countryyes

serverFields

fieldtyperequireddescription
urlstring (uri, pattern ^https://)yes
binding"mcp"yes
transport"streamable-http"yes
profilesarray of string (pattern ^([a-z][a-z0-9-]{1,39}|x-[A-Za-z0-9._-]{1,60})$)yesbinding profiles the server implements (consent-link, …); a receiver ignores a profile it does not know, and an x- value is an extension
specVersionsarray of string (pattern ^\d+\.\d+$)yes
categoriesarray of common › categoryyes
countriesarray of common › countryyes
languagesarray of common › languageyes
titlestring
mcpRegistryNamestring (pattern ^[a-zA-Z0-9.-]+/[a-zA-Z0-9._-]+$)the server's name in the MCP Registry
deprecatedboolean
successorstring (uri, pattern ^https://)

source

fieldtyperequireddescription
hoststring (pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$)yesthe domain of the listings, without a leading www.
connection"feed"yesthe holder reads the listings from the operator’s feed; intents and contact data stay with the holder
sincecommon › timestampyes
categoriesserverFields/properties/categoriesyes
countriesserverFields/properties/countriesyes

Examples#

Full schema#

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://istointents.org/schemas/1.0/holder-descriptor.schema.json",
  "title": "Isto Intents holder descriptor",
  "description": "What an intent holder publishes about itself at /.well-known/isto-intents.json (registry chapter §2, version 1.0). A descriptor written for 0.2 is also a valid 1.0 descriptor.",
  "type": "object",
  "required": [
    "specVersion",
    "type",
    "id",
    "created",
    "operator",
    "servers"
  ],
  "properties": {
    "specVersion": {
      "enum": [
        "1.0",
        "0.2"
      ],
      "description": "1.0; 0.2 stays valid for the whole 1.x line (VERSIONING.md)"
    },
    "type": {
      "const": "holder-descriptor"
    },
    "id": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://[^/]+/\\.well-known/isto-intents\\.json$",
      "description": "the descriptor's own URL"
    },
    "created": {
      "$ref": "https://istointents.org/schemas/0.1/common.schema.json#/$defs/timestamp"
    },
    "updated": {
      "$ref": "https://istointents.org/schemas/0.1/common.schema.json#/$defs/timestamp"
    },
    "operator": {
      "$ref": "#/$defs/operator"
    },
    "servers": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "items": {
        "$ref": "#/$defs/server"
      }
    },
    "registry": {
      "type": "object",
      "required": [
        "listing"
      ],
      "properties": {
        "listing": {
          "enum": [
            "requested",
            "withdrawn"
          ],
          "description": "requested asks the registry to list the host; withdrawn asks it to remove the entry"
        },
        "terms": {
          "type": "string",
          "format": "uri",
          "pattern": "^https://",
          "description": "URL of the registry terms the operator accepts"
        }
      },
      "if": {
        "properties": {
          "listing": {
            "const": "requested"
          }
        }
      },
      "then": {
        "required": [
          "terms"
        ]
      },
      "additionalProperties": false
    },
    "forwarding": {
      "type": "object",
      "description": "whether forwarders may send this holder intents (forwarding chapter §2)",
      "required": [
        "accept"
      ],
      "properties": {
        "accept": {
          "enum": [
            "requested",
            "withdrawn"
          ],
          "description": "requested lets forwarders send intents under the terms; withdrawn forbids it"
        },
        "terms": {
          "type": "string",
          "format": "uri",
          "pattern": "^https://",
          "description": "URL of the forwarding terms the operator accepts"
        }
      },
      "if": {
        "properties": {
          "accept": {
            "const": "requested"
          }
        }
      },
      "then": {
        "required": [
          "terms"
        ]
      },
      "additionalProperties": false
    },
    "sources": {
      "type": "array",
      "maxItems": 500,
      "uniqueItems": true,
      "description": "listing portals and dealers whose listings this holder reads from their own feed, with their operator’s consent and a verified domain (registry chapter §2); they run no server of their own",
      "items": {
        "$ref": "#/$defs/source"
      }
    },
    "jwksUri": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://",
      "description": "where the holder publishes its signing keys (spec §11)"
    },
    "extensions": {
      "type": "object",
      "propertyNames": {
        "pattern": "^(x-|https?://)"
      }
    }
  },
  "$defs": {
    "operator": {
      "type": "object",
      "description": "the organisation responsible for the servers",
      "required": [
        "name",
        "url",
        "contact",
        "country"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 2,
          "maxLength": 120
        },
        "url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https://"
        },
        "contact": {
          "type": "string",
          "format": "uri",
          "pattern": "^(mailto:|https://)",
          "description": "a role address, not a person's"
        },
        "country": {
          "$ref": "https://istointents.org/schemas/0.1/common.schema.json#/$defs/country"
        }
      },
      "additionalProperties": false
    },
    "server": {
      "description": "one intent server of the holder",
      "$ref": "#/$defs/serverFields",
      "unevaluatedProperties": false
    },
    "serverFields": {
      "type": "object",
      "description": "the fields of one intent server",
      "required": [
        "url",
        "binding",
        "transport",
        "profiles",
        "specVersions",
        "categories",
        "countries",
        "languages"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "pattern": "^https://"
        },
        "binding": {
          "const": "mcp"
        },
        "transport": {
          "const": "streamable-http"
        },
        "profiles": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "description": "binding profiles the server implements (consent-link, …); a receiver ignores a profile it does not know, and an x- value is an extension",
          "items": {
            "type": "string",
            "pattern": "^([a-z][a-z0-9-]{1,39}|x-[A-Za-z0-9._-]{1,60})$"
          }
        },
        "specVersions": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "pattern": "^\\d+\\.\\d+$"
          }
        },
        "categories": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "$ref": "https://istointents.org/schemas/0.1/common.schema.json#/$defs/category"
          }
        },
        "countries": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "$ref": "https://istointents.org/schemas/0.1/common.schema.json#/$defs/country"
          }
        },
        "languages": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "$ref": "https://istointents.org/schemas/0.1/common.schema.json#/$defs/language"
          }
        },
        "title": {
          "type": "string",
          "maxLength": 120
        },
        "mcpRegistryName": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9.-]+/[a-zA-Z0-9._-]+$",
          "description": "the server's name in the MCP Registry"
        },
        "deprecated": {
          "type": "boolean"
        },
        "successor": {
          "type": "string",
          "format": "uri",
          "pattern": "^https://"
        }
      }
    },
    "source": {
      "type": "object",
      "description": "one portal or dealer connected to this holder by its feed",
      "required": [
        "host",
        "connection",
        "since",
        "categories",
        "countries"
      ],
      "properties": {
        "host": {
          "type": "string",
          "pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$",
          "description": "the domain of the listings, without a leading www."
        },
        "connection": {
          "const": "feed",
          "description": "the holder reads the listings from the operator’s feed; intents and contact data stay with the holder"
        },
        "since": {
          "$ref": "https://istointents.org/schemas/0.1/common.schema.json#/$defs/timestamp"
        },
        "categories": {
          "$ref": "#/$defs/serverFields/properties/categories"
        },
        "countries": {
          "$ref": "#/$defs/serverFields/properties/countries"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}