Machine-readable sources
https://docs.stefanbrain.com/llms-full.txtcontains the published documentation as one Markdown document.https://docs.stefanbrain.com/llms.txtis a short index of the published documentation.https://stefanbrain.com/api/developers/v1/openapiis the OpenAPI 3.1 contract for SDK generation, request validation, and API tooling. It does not require authentication.https://docs.stefanbrain.com/mcpis the read-only documentation MCP endpoint.https://stefanbrain.com/api/developers/v1/mcpis the product MCP endpoint that exposes StefanBrain capabilities.
The OpenAPI specification is authoritative for endpoint and schema shape. These guides explain behavior, billing, lifecycle, and integration choices that a generated endpoint page cannot capture by itself.
Brief an implementation agent
Give the agent/llms-full.txt and the OpenAPI URL, then include the requirements relevant to the integration:
Choose the app, MCP, or REST
Use the StefanBrain web app when you want to work directly in StefanBrain without configuring another assistant or integration. If you want StefanBrain inside another assistant and the host supports MCP, connect the StefanBrain product MCP. The agent receives StefanBrain’s tools directly instead of generating HTTP calls from the REST schema. Use REST when you are building an automated application, pipeline, or service. Start with Quickstart, then read Agent Runs or Tools and jobs. In TypeScript, install the SDK.@stefanbrain/sdk ships an AGENTS.md quickstart that a coding agent can read from node_modules.
In a shell, install the CLI. @stefanbrain/cli ships an AGENTS.md quickstart and an installable Agent Skill in SKILL.md. sb prints JSON only on stdout and uses stable exit codes, so an agent can parse each result and branch on failures.
The app and standard member MCP use your subscription allowance. REST API keys use the developer API wallet; CLI and SDK billing follows the credential. See Pricing.
Report where the API gets in the way
Tell your agent to send feedback when the API gets in its way: a failed call, an unclear error, wrong docs, or a missing capability. It can send a report withPOST /api/developers/v1/feedback, the MCP send_feedback tool, client.feedback.send in SDK 0.5.0 (unreleased), or sb feedback send in CLI 0.5.0 (unreleased).
The StefanBrain team reads every report and replies, and the reply reaches the agent. Reports are free. See Agent feedback.
Implementation checks
- Treat OpenAPI response schemas as additive. Tolerate fields you do not recognize.
- Store
run_idfor traceability. - Reuse
chatfor follow-up turns in the same conversation. - Use a separate chat or session label for independent parallel work.
- Follow lifecycle URLs returned by runs and jobs instead of reconstructing them.
- Poll or cancel with the returned job id and family. Your own jobs are accessible across Developer API and MCP chats and sessions.
- Local folders available to your coding agent are not automatically available to StefanBrain. Explicitly upload the files StefanBrain needs.
- Use
POST /api/developers/v1/filesor MCPstage_fileto stage local files, then pass the returned ids toask_stefanbrain. - For strict structured output, set
additionalProperties: falseon every object and list every property inrequired. - When
structured_outputisnull, readoutputandlast_errorbefore deciding how to recover. - Check
is_errorin successful direct-tool responses.

