Building a Remote MCP Server for Real SaaS: OAuth 2.1, 70 Task-Shaped Tools

djskrilled · reddit · 2026-11-12

A developer of Perfect HOA, a vertical SaaS for HOA management, shares design lessons from shipping a remote MCP server: 70 task-shaped tools instead of route-shaped ones for more reliable tool selection; OAuth 2.1 with PKCE and dynamic client registration so one CLI command opens browser sign-in; scoped tokens that can only narrow dashboard permissions; destructive write annotations with confirm-before-write; prices returned before paid actions; audit logs attributing every write as 'user via MCP'; Idempotency-Keys to prevent double-recorded payments; and making ambiguity a bug by returning explicit fields like balancestatus instead of sign conventions models must infer.

Original post →

More from coding & agent

coding & agent channel →