Skip to content

Support experimental fallback for UI capability detection #3

@a6b8

Description

@a6b8

Problem

The MCP SDK's ServerCapabilitiesSchema (Zod) strips unknown root-level keys. Custom capabilities like io.modelcontextprotocol/ui must be declared under experimental to survive the schema validation.

Fix

  • CapabilityClassifier: Check both capabilities['io.modelcontextprotocol/ui'] and capabilities['experimental']['io.modelcontextprotocol/ui']
  • SnapshotBuilder: Same fallback for extension version extraction
  • Add tests for experimental fallback scenarios

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions