Adding transportType to API

This commit is contained in:
Glen Maddern 2025-06-27 16:08:56 +10:00
commit b326e36ccc

View file

@ -26,6 +26,8 @@ export type UseMcpOptions = {
autoReconnect?: boolean | number
/** Popup window features string (dimensions and behavior) for OAuth */
popupFeatures?: string
/** Transport type preference: 'auto' (HTTP with SSE fallback), 'http' (HTTP only), 'sse' (SSE only) */
transportType?: 'auto' | 'http' | 'sse'
}
export type UseMcpResult = {