Skip to content

SEP: Replace clientCapabilities?.extensions with clientCapabilities?.experimental #231

@matteo8p

Description

@matteo8p

Issue

The current MCP Apps SEP proposes to use clientCapabilities?.extensions. However, extensions is not a valid object in clientCapabilities in accordance with the MCP spec. Instead, we should be using clientCapabilities?.experimental. This is consistent with the official MCPClient spec and SDK.

See ClientCapabilities in the MCP spec here.

Existing

The existing initialize message uses extensions. Example:

{
  "method": "initialize",
  "params": {
    "protocolVersion": "2024-11-05",
    "capabilities": {
      "extensions": {
        "io.modelcontextprotocol/ui": {
          "mimeTypes": ["text/html;profile=mcp-app"]
        }
      }
    },
    "clientInfo": {
      "name": "claude-desktop",
      "version": "1.0.0"
    }
  }
}

Solution

Instead, we should be using capabilities?.experimental:

{
  "method": "initialize",
  "params": {
    "protocolVersion": "2024-11-05",
    "capabilities": {
      "experimental": {                                                        // Fix here
        "io.modelcontextprotocol/ui": {
          "mimeTypes": ["text/html;profile=mcp-app"]
        }
      }
    },
    "clientInfo": {
      "name": "claude-desktop",
      "version": "1.0.0"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions