McpBundleWriter class

Writer entry point for .mbd/ directory trees.

Constructors

McpBundleWriter()

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<String, Object>> reservedFiles = const {}, int indent = 2, bool overwrite = false}) Future<String>
Write bundle to a fresh .mbd/ tree at mbdPath.
writeManifest(McpBundle bundle, String mbdPath, {int indent = 2}) Future<void>
Write bundle 's manifest.json only — no reserved-folder touch. Use for authoring tools that mutate the manifest in-memory (load → copyWithwriteManifest) 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