v0.1.3 — agent-context: error hints, AGENTS.md, Windows render fixes
Quality-of-life release focused on AI agents driving bcli and on Windows-console rendering.
Added
bcli-mcppreview server — an MCP (Model Context Protocol) server that lets Claude Desktop and other MCP clients drive bcli. Four read-only tools:query,list_endpoints,describe_endpoint,list_companies. Subprocess-only architecture inherits profile, auth, retry, telemetry, anddisable_writesfrom the CLI. Install withpip install "bc-cli[mcp]". Seedocs/mcp-server.md.AGENTS.md— discovery-first recipes for AI agents driving bcli (endpoint/field discovery, format selection, common errors).fields_discoveredhint + opt-in field discovery in MCP, so agents learn an entity's schema by touching it once.
Changed
- Errors now teach the discovery flow at the moment of failure — wrong entity name, unknown filter field, etc. surface a "did-you-mean" plus a one-liner for the right next command instead of a raw 400.
bcli company listaccepts--format(json,markdown,csv,ndjson,table).bcli endpoint listandbcli endpoint infoaccept--format json.
Fixed
- Classic Windows console: default to markdown output and stop truncating the first column.
bcliis now usable incmd.exewithout a Unicode terminal. - Workflow loader: reject YAML 1.1 boolean-key trap (
on:,yes:,no:parsed as booleans) at load time with a clear error. - Tests: catch
ConnectionErrorin WorkOS callback drain calls under Python 3.12+. - CI: remove unused
jsonimport intest_mcp/test_runner.py.