Implementation

Identifies an MCP implementation (client or server).

Per the schema Implementation extends BaseMetadata (name/title) and the Icons mixin, adding version plus the optional description, websiteUrl, and icons fields (description/icons/websiteUrl apply from 2025-11-25). All optional fields are omitted from toJson when unset, so wire output stays valid for older protocol versions.

Members

Functions

forVersion
Implementation forVersion(ProtocolVersion v)

Return a copy of this Implementation with any fields newer than the negotiated protocol version stripped, so the wire output stays valid for the peer's version. title applies from 2025-06-18 (BaseMetadata); description, websiteUrl, and icons apply from 2025-11-25. name/version are always present. This lets a server (or client) hold a fully-populated identity while emitting only the fields its peer understands.

Variables

description
Nullable!string description;

optional human-readable description (>= 2025-11-25)

icons
Icon[] icons;

optional icons for display in user interfaces (>= 2025-11-25)

title
Nullable!string title;

human-friendly display name (>= 2025-06-18)

version_
string version_;

serialized as "version"

websiteUrl
Nullable!string websiteUrl;

optional website URL (>= 2025-11-25)