Pre-defined schemas for common resource types in MCP
id
: Unique identifier for the packagetype
: Always set to 'package'
attributes
: Object containing:
name
: Package name (follows the @repo/*
convention)version
: Semantic version stringdescription
: Package descriptiondependencies
: Object mapping dependency names to version stringsdevDependencies
: Optional object mapping dev dependency names to version stringspeerDependencies
: Optional object mapping peer dependency names to version stringskeywords
: Optional array of keyword stringsauthor
: Optional author informationlicense
: Optional license identifierid
: Unique identifier for the componenttype
: Always set to 'component'
attributes
: Object containing:
name
: Component namedescription
: Component descriptionprops
: Object mapping prop names to prop definitions
type
: Data type (string, number, boolean, array, object)description
: Prop descriptiondefault
: Optional default valuerequired
: Optional boolean indicating if the prop is requiredenum
: Optional array of allowed values (for string or number types)id
: Unique identifier for the API endpointtype
: Always set to 'api'
attributes
: Object containing:
path
: API endpoint pathmethod
: HTTP method (GET, POST, PUT, DELETE, etc.)parameters
: Object mapping parameter names to parameter definitions
type
: Data typedescription
: Parameter descriptiondefault
: Optional default valuerequired
: Optional boolean indicating if the parameter is requiredresponses
: Object mapping status codes to response definitions
description
: Response descriptioncontent
: Object mapping content types to schema definitionsid
: Unique identifier for the modeltype
: Always set to 'model'
attributes
: Object containing:
name
: Model namedescription
: Model descriptionproperties
: Object mapping property names to property definitions
type
: Data typedescription
: Property descriptionformat
: Optional format specifier (e.g., email, date-time)default
: Optional default valueenum
: Optional array of allowed valuesrequired
: Array of required property names