457 B
457 B
| @modelcontextprotocol/client | @modelcontextprotocol/server |
|---|---|
| minor | minor |
Export isSpecType and specTypeSchemas records for runtime validation of any MCP spec type by name. isSpecType.ContentBlock(value) is a type predicate; specTypeSchemas.ContentBlock is a StandardSchemaV1<ContentBlock> validator. Guards are standalone functions, so arr.filter(isSpecType.ContentBlock) works. Also export the SpecTypeName and SpecTypes types.