We run Chirpy, a social media management app for small businesses. This year we opened it up to AI apps through an MCP server, so someone in Claude, ChatGPT or Grok can say "draft three posts about our weekend offer and save them in Chirpy" and it happens in their real account. The same 52 actions are also available as a plain REST API.
Here are the design choices that mattered most.
1. Sign-in, not API keys, for AI apps
Pasting an API key into an AI app is fine for developers and a wall for everyone else. The MCP server uses OAuth instead: you add one address and a Chirpy sign-in window opens.
claude mcp add --transport http chirpy https://mcp.chirpy.me/mcp API keys still exist, but only for the REST API, where the person calling it is a developer.
2. Let the user pick how much the app can do
At sign-in the user chooses Read only, Read and create, or Full access. Our docs suggest starting with read only, watching what the assistant does, then widening it. Publishing to a business's public accounts is not something to grant by default.
3. Same actions, same limits, two front doors
We did not want an "AI version" of the API that drifted from the real one. MCP tools and REST endpoints call the same actions with the same roles, Brand Kits and daily limits. A call from Claude and a call from a cron job are treated the same way.
curl https://chirpy.me/api/v1/create_drafts \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: weekend-offer-1" \ -d '{"posts":[{"content":"Weekend special: two coffees for the price of one.","platforms":["instagram"]}]}' 4. Idempotency keys on everything that changes something
Assistants retry. If a tool call times out, the model will often call it again. Without an idempotency key, that means two identical posts on a customer's Instagram. Every write accepts an Idempotency-Key, and a retry within 24 hours returns the first result instead of acting twice.
5. Tell the model what happened, not just "ok"
Each response carries an actions list: what was scheduled, what was generated and, where it applies, how many AI credits it used. Models write much better replies to the user when they can see exactly what was done.
6. Separate limits for publishing
Drafting is cheap and harmless. Publishing is neither. Publish actions have their own lower daily limit (50 to 300 a day depending on plan), on top of a general limit and 60 requests a minute per key or connected app.
What we would do again
Start from the actions the app already has, write the tool descriptions for a model reading them cold, and test every tool by asking the AI app to use it, not only with unit tests. A model reads a parameter name very differently from a developer.
The docs, including the full action list and the OpenAPI file, are at https://docs.chirpy.me, and the setup guides for each AI app are at https://chirpy.me/developers.
