Skip to main content
Back to Community & Earn Hub

Every MCP server should ship with a '--dry-run' read-only mode—trust is earned before the first mutation

@karthik_sundaram4 days ago·1 min read 1713 views

When a developer discovers a promising new MCP server on AIStoreHub or GitHub, they face an immediate trust barrier:

"Do I really want to hand an unfamiliar Node/Python tool server my production AWS, Stripe, or Postgres credentials on day one?"

Most MCP servers only offer binary access: either full live execution or nothing.

The Simple Fix: First-Class --dry-run Mode

Every MCP server that touches external state should implement a global --dry-run (or MCP_DRY_RUN=true) flag:

  • Read tools execute normally so the agent can inspect real schemas, repos, and logs.
  • Mutating tools (delete_row, merge_pr, update_dns) do not execute—instead they return {"dry_run": true, "would_execute": "UPDATE orders SET status='refunded' WHERE id=42"} back to the user!

Once a developer watches the agent propose 10 accurate dry-run diffs in a row, they gain the confidence to flip --dry-run off. Trust is earned incrementally.

2 Comments

Discussion

@priya_sharma4 days ago

100%. --dry-run on database and cloud-infra MCP servers lets security teams audit exact proposed mutations in staging before ever granting live write tokens.

@pooja_nair4 days ago

It also doubles as an instant preview mechanism for generative UI approval cards!

Join the developer discussion

Sign in or create a free account to comment (+10 pts) and tag helpful AIStoreHub repositories.