MCPServer class

Constructors

MCPServer({String? authHeader, int? createdAt, bool? hasSecret, String? id, String? listing, String? name, String? org, String? source_, String? url})
Returns a new MCPServer instance.

Properties

authHeader ↔ String?
AuthHeader is the request header the KMS-held credential is injected into, e.g. "Authorization". Absent when the server needs no credential.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the server was registered, Unix seconds.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hasSecret ↔ bool?
HasSecret is whether a credential is sealed in KMS for this server. The VALUE is never returned by any route.
getter/setter pair
id ↔ String?
ID is the server's id within the org. It also PREFIXES every tool name the server contributes, which is what keeps two servers' "search" apart.
getter/setter pair
listing ↔ String?
Listing is the catalog entry this server was enabled from, when it was. Empty means the org typed the URL in itself.
getter/setter pair
name ↔ String?
Name is the org's label for the server.
getter/setter pair
org ↔ String?
Org is the org that registered the server — the validated caller's.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ String?
Source is where the registration came from: "catalog" when it was enabled off the shelf, "org" when the org registered the URL itself. It is DERIVED from Listing rather than stored, because two columns for one fact is two chances to disagree.
getter/setter pair
url ↔ String?
URL is the server's JSON-RPC endpoint. Always a public http(s) host: the registration boundary and the dialer both refuse anything else.
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) → MCPServer?
Returns a new MCPServer instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<MCPServer>
mapFromJson(dynamic json) → Map<String, MCPServer>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<MCPServer>>

Constants

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