CLI fallback for any agent - Anchor Docs
Use anchor context from the terminal when an AI coding tool cannot call MCP directly yet.
Some agents can read pasted context or terminal output before they support MCP tool calls.
- Returns the same sanitized context as anchor_get_context from the CLI.
- Supports files, symbols, strict mode, saved diffs, and JSON output.
- Lets teams adopt Anchor without waiting for every editor or agent to implement MCP.
anchor context "Refactor auth cache" --file src/auth/cache.ts --symbol AuthCache --strict
anchor context "Review saved diff" --diff-file change.diff --json