Skip to main content

Module client

Module client 

Source
Expand description

Console client: everything the MCP tools can do, from a human terminal.

Connects to the bus over the same Streamable HTTP transport and the same bearer token a coding agent would use, so a human on the shell is just another agent on the bus:

export BUS_URL=https://bus.internal.example/mcp
export BUS_TOKEN=acs_...
ai-crew-sync client whoami
ai-crew-sync client send --channel deploys --body "staging is on 1.4.2"
ai-crew-sync client read --scope inbox
ai-crew-sync client task claim --key refactor-auth

Modules§

mapping
Strip nulls so optional flags the user did not pass are simply absent. Turning a parsed subcommand into an MCP tools/call.
render
Human-readable output. --json bypasses all of this and prints the raw structured content, so scripts never depend on the shape of these lines.

Structs§

ClientArgs

Enums§

ClientCmd
LockCmd
NoteCmd
TaskCmd

Functions§

run