MSP-1 schema

protocol

Defines the MSP-1 protocol identity declaration, including protocol name, implemented version, supported version range, and documentation reference.

MSP-1 v1.0.2 • Core term

protocol schema definition

Machine-readable structure describing MSP-1 protocol identity and version alignment.

protocol schema JSON


{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://msp-1.org/schema/protocol/protocol.json",
  "title": "MSP-1 Protocol Schema",
  "description": "Schema describing protocol-level metadata including protocol identity, implemented version, supported version range, documentation reference, and optional governance or profile notes.",
  "type": "object",

  "properties": {
    "name": {
      "type": "string",
      "const": "MSP-1",
      "description": "Formal name of the protocol."
    },

    "short": {
      "type": "string",
      "description": "Optional shortened reference name if applicable."
    },

    "version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$",
      "description": "Specific MSP-1 protocol version being implemented, for example '1.0.2'."
    },

    "supportedVersionRange": {
      "type": "string",
      "description": "Optional compatibility range for supported MSP-1 versions, for example 'MSP-1.0.x'."
    },

    "documentation": {
      "type": "string",
      "format": "uri",
      "description": "Optional URL pointing to the relevant MSP-1 documentation or specification root."
    },

    "governance": {
      "type": "string",
      "description": "Optional description or URL identifying the governance model, body, or steward responsible for the protocol."
    },

    "profiles": {
      "type": "array",
      "description": "Optional list of supported profiles or extensions of the protocol.",
      "items": {
        "type": "string"
      }
    },

    "notes": {
      "type": "string",
      "description": "Optional free-form notes about this protocol declaration."
    },

    "lastUpdated": {
      "type": "string",
      "format": "date",
      "description": "Date indicating the last review or update of this protocol declaration."
    }
  },

  "required": ["name", "version"],

  "additionalProperties": false
}


 

Schema notes

The canonical MSP-1 v1.0.2 form for protocol is an object with name and version as required fields.

The flat string form should not be emitted by current tools. If encountered in older declarations, validators may treat it as legacy drift and issue an advisory warning rather than a hard failure when graceful degradation is appropriate.