9 lessons from running a write-capable MCP server against 7 real APIs
Ecstatic-Hurry-635 · reddit · 2026-09-05
A developer running an MCP server with 15 tools that publish to LinkedIn, X, Instagram, Threads, Bluesky and YouTube Shorts shares production lessons for write-capable servers:
- Ship a dry-run tool: a preflight tool checking char limits, unconnected profiles, missing media and credit cost became the most-called tool and boosted trust.
- Partial failure is normal: store one post per profile so retries skip already-delivered targets instead of double-posting.
- Validate the whole batch first: resolve all tool names in a 20-call multicall before executing any, so a typo in call 18 fails before call 1 writes.
- Never default timezones silently: insist in tool descriptions and echo back the resolved absolute time so the model catches mistakes.
- Expose health as a tool: getaccounthealth lets the agent debug failed posts without a web UI.
- Auth from three sources: env vars (stdio), query params (remote connectors), headers (ChatGPT actions).
- Don't make the model guess IDs: bind workspace to the API key; un-derivable required params become hallucinated values.
- Tool descriptions are your prompt: rewording descriptions fixed more bugs than code changes.
- OpenAPI shim gets ChatGPT almost free: keep handlers separate from the MCP transport layer and add a generated openapi. for Custom GPTs.
More from coding & agent
- Hermes Command Cheat Sheet Updated: 10 New Agent Commands Verified Against Source — alexcovo_eth · 2026-09-05
- Open-Source Setup Routes Claude Code Across 50+ Providers With 1.3B Free Tokens/Month — Shruti_0810 · 2026-09-05
- One Codex prompt to audit all your skills and AGENTS.md files for the Astra era — daniel_mac8 · 2026-09-05
- Building AI Agents: Memory, Tool Limits, and Orchestration Frameworks — mdancho84 · 2026-09-05
- A 7-step cheat sheet for building AI agents, from system prompt to evals — mdancho84 · 2026-09-05
- Claude Code v2.1.251 now saves effort levels per model via /effort or settings. — EricBuess · 2026-09-05