Code Mode trades a browsable tool list for a much smaller context footprint: the model looks up what it needs in the docs tool, then writes SDK code that runs in a sandbox with no network and no disk. It suits complex multi-step work, and it means you are trusting generated code inside that sandbox rather than a fixed set of endpoints.
The MCP server for the Post For Me API, generated with Stainless. It is built on the Code Mode scheme: rather than exposing the API endpoint by endpoint, it hands the agent the TypeScript SDK and executes whatever code the agent writes against it.
- Two tools, not a long list: a docs search tool for querying documentation about the API and SDK, and a code tool that runs the agent's TypeScript against it
- Code executes in an isolated sandbox with no web and no filesystem access; whatever it returns or prints comes back as the tool result
- One call can chain several SDK operations, so a multi-step task is one round trip rather than several tool calls
- Runs locally over stdio, or remotely with `--transport=http` on a port or a Unix socket you choose
A Post For Me API key. Locally: `npx -y post-for-me-mcp@latest` with `POST_FOR_ME_API_KEY` in the environment — the package is `post-for-me-mcp`, version 2.9.1. Over HTTP, the key goes in the `x-post-for-me-api-key` header or as a Bearer token in `Authorization`; a hosted endpoint at `https://post-for-me.stlmcp.com` is documented for Cursor, VS Code and Claude Code.
One command plus a key — npx -y post-for-me-mcp@latest, then supply credentials
