BundleApplicationAdapter class
Converts McpBundle into a runtime-ready ApplicationDefinition
(MOD-BUNDLE-004, FR-APP-LOCAL-004~008).
The bundle is treated as a filesystem snapshot of the server's
resource URI space — ui/app.json is the application definition and
ui://<path> URIs are resolved by reading ui/<path>.json. All
UI file I/O goes through bundle.uiResources (mcp_bundle's
reserved-folder API); dart:io is never imported here. mcp_bundle
owns the on-disk layout, this adapter only translates between bundle
bytes and ApplicationDefinition.
No shape translation happens at this layer — whatever the DSL-serving pipeline produces is what the bundle stores and what the runtime consumes.
Constructors
- BundleApplicationAdapter({Logger? logger})
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
-
adapt(
McpBundle bundle, BundleEntryPoint entry, {required BundleUriResolver uriResolver}) → Future< ApplicationDefinition> - FR-APP-LOCAL-004~008
-
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