Skip to content

14. Serialization

An MCP Description document MUST be serialized as a JSON document conforming to RFC 8259.

MCP Description documents MUST be encoded in UTF-8.

JSON numbers SHOULD be used for numeric values. Implementations MUST support IEEE 754 double-precision floating-point numbers.

Properties with null values SHOULD be omitted from the document rather than included with a null value, unless the property explicitly permits null.

Properties whose values are empty arrays or empty objects MAY be omitted. Implementations MUST treat an omitted array property as equivalent to an empty array, and an omitted object property as equivalent to an empty object, unless the property is required.

String values MUST be valid JSON strings. URI values MUST conform to RFC 3986. Email values SHOULD conform to RFC 5322. Date values MUST conform to ISO 8601.

MCP Description documents SHOULD include a $schema property referencing the appropriate JSON Schema for IDE validation and tooling support:

{
"$schema": "https://developer.cisco.com/mcp-description/schema/0.7.0",
"mcpdesc": "0.7.0"
}