McpBundleWriter class
Writer entry point for .mbd/ directory trees.
Constructors
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
-
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
Static Methods
-
writeDirectory(
McpBundle bundle, String mbdPath, {Map< BundleFolder, Map< reservedFiles = const {}, int indent = 2, bool overwrite = false}) → Future<String, Object> >String> -
Write
bundleto a fresh.mbd/tree atmbdPath. -
writeManifest(
McpBundle bundle, String mbdPath, {int indent = 2}) → Future< void> -
Write
bundle'smanifest.jsononly — no reserved-folder touch. Use for authoring tools that mutate the manifest in-memory (load →copyWith→ writeManifest) without rewriting the.mbd/directory tree. Prefer this over writeDirectory for partial updates: it has a fraction of the I/O cost of a full rewrite, leaves disk-only files (knowledge/,agents/, … and any author-side scratch) untouched, and races less with other readers.
Constants
- manifestEntry → const String