Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 566 Bytes

File metadata and controls

6 lines (5 loc) · 566 Bytes
@modelcontextprotocol/client minor
@modelcontextprotocol/server minor

Export the abstract Protocol class (was reachable in v1 via deep imports) and add Protocol<ContextT, SpecT extends ProtocolSpec = McpSpec> for typed custom-method vocabularies. Subclasses supplying a concrete ProtocolSpec get method-name autocomplete on the typed setRequestHandler/setNotificationHandler overloads, and result-type correlation on setRequestHandler (handler param types come from the paramsSchema argument; ProtocolSpec['params'] is informational).