BundleLoaderAdapter class

Loads McpBundle objects from inline / remote / installed sources and validates schema and manifest (MOD-BUNDLE-001, FR-BUNDLE-001/004~010).

Core-level adapter. mcp_bundle does the actual schema parsing via McpBundle.fromJson (inline / remote) or McpBundleLoader.loadInstalled (installed). This class wraps failures with bundleId context and a unified BundleLoadReason taxonomy so hosts can react uniformly.

Constructors

BundleLoaderAdapter({BundleFetcher? fetcher, Logger? logger, MetricsPort? metrics, String? installRoot})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load(BundleRef ref) Future<McpBundle>
FR-BUNDLE-001
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

supportedSchemaVersions → const Set<String>
Schema versions accepted by this release. Kept narrow; mcp_bundle validates internal structure while this adapter enforces the payload schema range acceptable to the runtime.