Set up the Bijection CLI
In Agent mode, Copilot runs thebijection CLI in VS Code’s terminal with the
same verbs and tree paths as the code: bijection check checks the source and
writes the lock, bijection query and bijection mutate call functions,
bijection trial shows what a mutation would write without committing it,
bijection list reads facts and bijection watch sys.logs follows function logs.
Install the CLI, then add Bijection’s guidance for
coding agents from your project directory:
AGENTS.md and
CLAUDE.md, a bijection stub skill for each selected agent (Claude Code and
Codex by default) and a bijection entry in .mcp.json that runs
bijection mcp serve. The guidance itself ships as Agent Skills inside the
installed @bijectionhq/bijection, so it matches the project’s SDK version:
the MCP server serves it with the Skills extension, and bijection skills list
and bijection skills show <name> print it.
An application can also declare an MCP server for its
queries and mutations. Connect the host to that HTTP
endpoint as a person or an issued session. Each tool call runs under the
caller’s own grants, and a write carries its once, so a retry is the same
effect.
Now start asking it questions like:
- Review my tables and indexes, and suggest the index a selection needs
- Which functions are exposed, and to which roles? (read
bijection.lock) - Run
bijection trialon theorders.placemutation and explain its writes