@bvdm/strap
v0.1.1
Published
Bootstrap your agents with context, skills, and keys from the terminal.
Readme
Strap CLI
The first-party terminal client for Strap. Strap bootstraps your agents with context, skills, and keys through the same OAuth-protected MCP server used by Claude, Codex, ChatGPT, Cursor, and other integrations.
The CLI discovers tools, resources, and prompts from the live server, so new capabilities appear without a matching CLI release.
Install
npm install --global @bvdm/strap
strapYou can also run Strap without installing it:
npx @bvdm/strapThe first run opens Strap's OAuth screen in your browser. Approve the connection, then return to the terminal.
Commands
strap login
strap logout
strap status
strap doctor
strap tools
strap call read_creed
strap call creed_search --query "current priorities" --limit 5
strap resources
strap resource creed://profile
strap prompts
strap prompt introduce-meread_creed, the creed_* tool names, and creed://profile are stable MCP compatibility identifiers. The product and CLI are Strap.
Run strap with no arguments for an interactive terminal that discovers the live tool schema and prompts for required fields.
Every MCP tool is also available directly by its exact name:
strap creed_get_section --section-id goalsFor scripts and coding agents, use JSON mode:
strap --agent codex tools --json
strap --agent codex call creed_search --args '{"query":"pricing","limit":5}' --json
printf '%s' '{"sectionId":"goals"}' | strap --agent codex call creed_get_section --jsonJSON is written to stdout and diagnostics are written to stderr. Interactive formatting and ANSI color are disabled outside a terminal. Commands copied from strap.bvdm.ai/connections include --agent so the dashboard can attribute CLI use. Omit it for unattributed manual use.
Self-hosted servers
Use a server for one command:
strap --server http://localhost:3000/mcp doctorOr save it:
strap config set server https://your-strap.example/mcpSTRAP_MCP_URL can also set the server. HTTPS is required except on localhost. STRAP_CONFIG_DIR overrides the platform configuration directory.
Strap keeps its configuration and credentials separate from creed-cli. It does not read or migrate legacy CLI credentials automatically.
Security and exit codes
Strap CLI uses OAuth 2.1 Dynamic Client Registration and PKCE. It never asks you to copy an API token. Credentials are stored per server in the platform configuration directory with restrictive filesystem permissions and are never printed. strap logout attempts RFC 7009 revocation before removing local credentials.
0: command completed successfully1: runtime, network, or authorization failure2: invalid command or arguments3: the MCP tool returned an error result
Set NO_COLOR=1 to disable terminal color.
