Expand description
CLI dispatch layer for codescout artifact* subcommands.
Each verb translates clap-parsed args into a serde_json::Value shaped
like the corresponding librarian-mcp tool’s input, calls the tool, and
routes the response through format::print.
Modules§
- artifact
codescout artifact <verb>— find/get/graph/state-at/create/update/move/link.- artifact_
augment codescout artifact-augment <id>— attach or merge augmentation params/prompt.- artifact_
event codescout artifact-event <verb>— create / list.- artifact_
refresh codescout artifact-refresh <verb>— gather / list-stale.- audit_
doc_ refs codescout audit-doc-refs— CLI wrapper over the librarianaudit_doc_refstool. Exists so CI gates and other non-MCP callers can run the audit without going through the MCP server.- doctor
cargo run -- doctor— invoke the librarian catalog drift scanner.- format
- Output formatter for the CLI. Pretty by default, JSON via
--json.
Structs§
- Common
Opts - Flags shared by every CLI subcommand.
Functions§
- exit_
with - Print
resultand exit with the right code. JSON mode wraps errors so hooks can parse them; pretty mode writes to stderr. - open_
ctx - Build the librarian-mcp
ToolContext. Honors--projectby settingLIBRARIAN_CWDbefore delegating to the shared bootstrap. - read_
at_ or_ stdin - Resolve a CLI string that may be
@<path>,-(stdin), or a literal value.