guarded / whoami

whoami - cli-mcp examples/composition-with-guard

NAME

whoami - audited diagnostic

SYNOPSIS

whoami

DESCRIPTION

Returns a fixed string identifying the demo. MCP tool name whoami. No input schema (no flags, no positional args). Useful for an agent verifying the audit chain is live before running anything with side effects.

Examples:

# CLI form
guarded whoami
# guarded-demo
# audit row: verb=whoami, exit=0

# MCP form
mcporter call guarded.whoami
# guarded-demo

Use the audit row as a heartbeat: if the row landed, the gate is wired; if it did not, suspect a misconfigured audit dir before trusting any verb that has side effects.

Usage:

whoami [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]