Conversations API

Realistic conversation practice for your app. Most AI roleplay agrees with everything and forgets how it felt. The Conversations API runs the whole room: characters who hold their own positions, a Coach, and three levels of feedback. This server gives your coding assistant the integration guide, API contract and verified starter kits. Free, no key needed; API usage is priced separately.

Hosted MCP Server

npx add-mcp 'https://developers.foreverlearning.ai/mcp/conversations'

Installs into Claude Code, Codex, Cursor and more

Documentation

Conversations API for coding assistants (MCP server)

Put a conversation practice room inside your product with the Conversations API, with your coding assistant's help. This MCP server gives the assistant the API's own developer documentation: the integration guide and its runnable examples, the OpenAPI contract, and the Build with Conversations kits. Every answer is the published text itself, so the assistant builds from what the API actually does.

The Conversations API runs the practice room: one to five characters who respond in character and to the whole conversation, a Coach that answers with every turn in its own channel, a safety status on every turn, and a debrief and Insights after. The complete reply comes back to your application.

Install

Any MCP client that starts a stdio server:

npx -y @foreverlearning/conversations-mcp

The docs tools need no key. To let your assistant send a test turn, give the server your own key in its environment:

SettingWhat it is
FOREVERLEARNING_API_KEYYour Conversations API server key, from My APIs in the developer console. Never paste it into a conversation.
FOREVERLEARNING_ASSIGNMENT_IDYour Conversations API assignment id, from My APIs. Every request names it.
FOREVERLEARNING_BASE_URLThe API host: production https://developers-api.foreverlearning.ai/v1 (the default) or staging https://developers-api-staging.foreverlearning.ai/v1.
CONVERSATIONS_MCP_MAX_TURNSTest turns per server run: 2 by default, 10 at most.
CONVERSATIONS_MCP_CONFIRM_DIALOGoff skips the confirmation dialog (the assistant still asks in the conversation).

Run conversations-mcp --docs-only for the docs alone, with no key read at all.

Tools

ToolWhat it does
conversations_kitThe Build with Conversations kits: with no kit, every kit, from a first practice room to embedding one in your app; with a kit id, where to run it, its verified prompt word for word, what you should see, and its finished checkpoint folder.
conversations_starter_fileThe files of a kit's finished checkpoint in conversations-room-starter (MIT): with only kit, the folder's file list and the starter commit; with path, one file.
conversations_searchPlain-words search across the guide, the other pages, the contract's operations and schemas, the examples, the kits and their checkpoint files. Each match names the call that reads it.
conversations_guideThe integration guide, whole or by topic (setup, turns, characters, reads, voice, privacy, pricing), or a runnable example; with page: "pricing", "security" or "changelog", the developer site's pricing page (both APIs), integration security page or changelog.
conversations_contractThe operations a Conversations integration uses, one operation or schema definition with its references filled in, or a whole contract file.
conversations_test_turnOne real test turn with your key: the room's opening, or one message. It states the cost first and sends only on your confirmation; on a production host it also needs allow_live, since it cannot tell a test key (free attempts) from a live one (real money). At most 2 a run. It never retries and never ends the session. The reply comes back exactly as written: each character's line, the Coach's note, the safety status and the receipt.
conversations_lookup_requestLook up a turn that was not confirmed, by its request id. No charge.

Resources: conversations://guide, conversations://guide/{topic}, conversations://contract/{file}, conversations://examples/{file}, conversations://page/{page} (pricing, security), conversations://snapshot.

Cost

The docs tools cost nothing. A test turn is a real turn. On a test assignment it uses one of your workspace's fifty free text attempts and no money; on a live assignment it is 3¢ per text turn from your workspace balance; on staging it uses staging credit, never real money. The app you build pays per turn too: 3¢ per text turn, with every character and the Coach included, and +5¢ for spoken responses. The opening and the closeout are billable turns, and a user's open session is closed, with its closeout, when their next session is opened. Preparing a room and reading saved practice, debriefs and Insights add no charge.

Docs snapshot

The docs are bundled as a dated snapshot (snapshot/conversations-docs.json), read from https://developers.foreverlearning.ai. A kit is included only when it is verified on the release developers use and its page carries the same prompt word for word.

For maintainers: npm run drift (scripts/drift-check.mjs) compares the bundled snapshot with the live site (guide, contract, examples, the Build with Conversations index, each kit page's prompt and "what you should see" text, both ways against the page's Markdown copy, and the starter repository's main) and exits 1 on any difference. It runs in prepack, skips with a message when the site cannot be reached, and can be skipped on purpose with MCP_DRIFT_CHECK=skip. A publish with --ignore-scripts skips prepack, so run it yourself first. When it fails, re-take the snapshot (node scripts/snapshot.mjs --kits <kits folder> --starter <conversations-room-starter at its public main>) and release a patch version. The engine is shared with the Learn package (scripts/drift-core.mjs at the repository root).

License

MIT