Brick Work

0007. MCP is a thin layer over the API

Context

Part of the standalone goal (ADR 0001) is that outside tools, including AI agents, can use the app through a standard surface.

Options considered

Not recorded. The plan named an MCP server as a thin layer over the same functions as the API and CLI.

Recommendation at the time: thin layer over the same functions.

Decision

The MCP server is a thin layer over the API's functions. Write tools are available only when the server runs with --allow-write and the caller's token has write scope.

Consequences

docs/brickwork/api-v1.md section 7. Related: ADR 0001, 0003.