- Context
- Agents and workers need to read and write the ERP, vendor master, POs (Purchase Orders), receipts and approvals. Giving each its own credentials and client code would spread access control across the system.
- Decision
- Expose enterprise capabilities as MCP tools behind one gateway. The gateway authenticates the caller with SSO (Single Sign-On), checks scopes per tool, applies policy and rate limits, filters output, and writes an audit record. Backend credentials exist only in the gateway.
- Consequences
- One place to review, revoke and audit tool access.
- Agents get capabilities, never credentials.
- A new backend means a new tool definition, not a new integration in every agent.
- Alternatives considered
- Direct database access for agents (rejected: broad, unaudited)
- Per-agent API (Application Programming Interface) clients (rejected: credential sprawl)