MCPListing class

Constructors

MCPListing({String? description, bool? featured, bool? hidden, String? id, String? name, bool? official, List<MCPPackage> packages = const [], String? registry, List<MCPRemote> remotes = const [], String? repo, String? site, int? synced, String? title, List<String> transports = const [], String? vendor, String? version})
Returns a new MCPListing instance.

Properties

description ↔ String?
Description is the publisher's one-line summary.
getter/setter pair
Featured puts the listing on the front of the shelf. Curation.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hidden ↔ bool?
Hidden keeps the listing out of the org-visible catalog. Curation: a sync never changes it. Only a SuperAdmin sets it, and only a SuperAdmin sees a hidden entry listed.
getter/setter pair
id ↔ String?
ID addresses the listing in a URL. It is the reverse-DNS NAME with its one slash written as an underscore — reversible, because a namespace never contains an underscore — so the id is readable and stable rather than a hash that means nothing to whoever reads a link.
getter/setter pair
Logo is the brand mark to render for the listing — the publisher's icon when the entry carries one, or the one an admin set. Curation.
getter/setter pair
name ↔ String?
Name is the publisher's reverse-DNS name, e.g. "com.stripe/mcp".
getter/setter pair
official ↔ bool?
Official is whether this is the vendor's OWN server rather than someone else's copy of it. Derived on every sync (see isOfficial) until a SuperAdmin sets it explicitly, after which the admin's answer stands.
getter/setter pair
packages ↔ List<MCPPackage>
Packages are the runnable package forms — npm, pypi, oci — each with the runtime that launches it and the transport it then speaks.
getter/setter pair
registry ↔ String?
Registry is the upstream this row was synced from.
getter/setter pair
remotes ↔ List<MCPRemote>
Remotes are the hosted endpoints the publisher serves the server at.
getter/setter pair
repo ↔ String?
Repo is the source repository URL, when the entry names one.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
site ↔ String?
Site is the project's homepage, when the entry names one.
getter/setter pair
synced ↔ int?
Synced is when this row was last confirmed against upstream, Unix seconds.
getter/setter pair
title ↔ String?
Title is the human-readable display name, when the entry carries one.
getter/setter pair
transports ↔ List<String>
Transports are the distinct transports this server can be reached over, sorted: some of "stdio", "streamable-http", "sse". A listing with "streamable-http" is one an org can enable here and now; a listing that is only "stdio" needs a process to run it.
getter/setter pair
vendor ↔ String?
Vendor is the namespace half of Name — the publisher, e.g. "com.stripe".
getter/setter pair
version ↔ String?
Version is the published version of this listing.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → MCPListing?
Returns a new MCPListing instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<MCPListing>
mapFromJson(dynamic json) → Map<String, MCPListing>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<MCPListing>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.