@@ -206,17 +206,6 @@ export function registerAppResource(
206206 */
207207export const EXTENSION_ID = "io.modelcontextprotocol/ui" ;
208208
209- /**
210- * Client capabilities with extensions field.
211- *
212- * This extends the SDK's `ClientCapabilities` type with the `extensions` field
213- * (pending SEP-1724). Once `extensions` is added to the SDK, this type can be
214- * replaced with `ClientCapabilities` directly.
215- */
216- export type ClientCapabilitiesWithExtensions = ClientCapabilities & {
217- extensions ?: Record < string , unknown > ;
218- } ;
219-
220209/**
221210 * MCP Apps capability settings advertised by clients.
222211 *
@@ -236,6 +225,10 @@ export interface McpUiClientCapability {
236225 * This helper retrieves the capability object from the `extensions` field
237226 * where MCP Apps advertises its support.
238227 *
228+ * Note: The `clientCapabilities` parameter extends the SDK's `ClientCapabilities`
229+ * type with an `extensions` field (pending SEP-1724). Once `extensions` is added
230+ * to the SDK, this can use `ClientCapabilities` directly.
231+ *
239232 * @param clientCapabilities - The client capabilities from the initialize response
240233 * @returns The MCP Apps capability settings, or `undefined` if not supported
241234 *
@@ -260,7 +253,10 @@ export interface McpUiClientCapability {
260253 * ```
261254 */
262255export function getUiCapability (
263- clientCapabilities : ClientCapabilitiesWithExtensions | null | undefined ,
256+ clientCapabilities :
257+ | ( ClientCapabilities & { extensions ?: Record < string , unknown > } )
258+ | null
259+ | undefined ,
264260) : McpUiClientCapability | undefined {
265261 if ( ! clientCapabilities ) {
266262 return undefined ;
0 commit comments