The current trust model for Model Context Protocol (MCP) servers handling write operations is fundamentally broken. Most implementations rely on a boolean approved flag in the input schema, forcing the AI agent to self-report that a human user confirmed the action. This approach fails because the entity proposing the change is the same entity attesting to its approval, creating a massive vulnerability to prompt injection, headless execution errors, and replay attacks.

The Vulnerability in Self-Attested Approvals

In standard MCP write tools, such as update_record, the schema includes a property like approved: boolean with a description instructing the model to set it to true only after user confirmation. The server cannot distinguish between a genuine user confirmation and a hallucinated or injected approved: true flag. Furthermore, an approval granted for one specific change can be maliciously or accidentally replayed for a subsequent, different change, leaving no audit trail of who actually authorized what.

Enforced Approval Moves the Check to the Server

Developer chsharoze has released Draft 0.2 of the Enforced Approval specification, an open draft that shifts the approval mechanism entirely to the server side. The core concept involves the server hashing the exact change request, including the principal identity from the agent's credential, the account, and the specific fields being modified. Fields that merely claim approval occurred are excluded from this hash to prevent tampering. If a guarded write request lacks a matching approval for its specific hash, the server refuses execution and returns a refusal linking to an approval page hosted on the server itself. A human must sign in to this page to view the exact change and approve or deny it. The agent then resends the identical request. This approval is single-use and expires, preventing replay attacks. For repetitive tasks, the spec allows bounded grants where a user approves a limited set of future changes with fixed scope, record limits, and expiry times.

Implementation and Current Status

The release includes the core specification, two approval profiles (server-issued and experimental signed-receipts), numbered conformance tests, and test vectors for the change hash. A sandbox server is available for local testing using Node 24+, though the README explicitly warns that it is a test harness with synthetic data and public test keys, not a production-ready product. The signed-receipts profile, which uses an organization-registered issuer, is currently theoretical as no tested clients can yet carry the required receipts.

Key Takeaways

  • Client-side approved: true flags are insecure against prompt injection and headless agents.
  • Enforced Approval uses server-side hashing of changes and principal identities to validate writes.
  • Approvals are single-use, expiring, and linked to a specific change hash to prevent replay attacks.
  • Draft 0.2 is frozen and open for review, lacking independent server implementations or human security audits.

The Bottom Line

If your MCP server trusts the client's word on approval, you're building on sand. Enforced Approval is a necessary step toward real security, but it remains a draft without production hardening. Spec and sandbox: https://github.com/chsharoze/enforced-approval

> From The Wire