pub struct WorkspaceConfig {
pub kind: WorkspaceKind,
pub root: Option<String>,
pub watch: bool,
pub applies_to: Option<String>,
}Fields§
§kind: WorkspaceKind§root: Option<String>Local-mode only: path to the directory to bind as the source root. Relative paths resolve against the YAML’s parent dir.
watch: boolLocal-mode only: wire the framework’s file watcher to root
(debounced rebuild trigger via the post-activate hook).
applies_to: Option<String>Optional opt-in for the find_workspace_manifest parent-walk
fallback. When set, this manifest is auto-discovered by
mcp-server --workspace DIR (and similar callers) only when
DIR canonicalises to applies_to resolved against the
manifest’s parent directory. When unset, the parent-walk
fallback NEVER fires for this manifest — operators must pass
--mcp-config explicitly.
Eliminates the accidental-discovery footgun where a workspace manifest is auto-picked-up by an unrelated sibling dir. The manifest’s own declaration is the opt-in.
Trait Implementations§
Source§impl Clone for WorkspaceConfig
impl Clone for WorkspaceConfig
Source§fn clone(&self) -> WorkspaceConfig
fn clone(&self) -> WorkspaceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more