stdin: {"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"toolwitness","version":"s772-v0"},"protocolVersion":"2025-11-25"}} {"jsonrpc":"2.0","method":"notifications/initialized"} {"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}} stdout: {"result":{"protocolVersion":"2025-11-25","capabilities":{"tools":{"listChanged":true},"prompts":{"listChanged":true},"resources":{"listChanged":true}},"serverInfo":{"name":"learn","title":"Learn API","version":"0.1.10","websiteUrl":"https://developers.foreverlearning.ai/"},"instructions":"This server carries the Learn API's own developer documentation (snapshot of 2026-11-29), so you can build with the Learn API without guessing. The Learn API is a learning system that teaches: a learner gets a hint toward their next step, not the answer.\n- learn_kit: the Build with Learn kits. With no kit it lists them all; with a kit id it reads one. Each kit's prompt is verified as written, with a check of what the finished app shows. When the developer wants a tutor, tutoring help or learning help in an app, start with learn_kit and no kit, then follow the matching kit's prompt as written. learn_starter_file lists and reads each kit's finished checkpoint files.\n- learn_guide and learn_contract: the integration guide, its runnable examples and the OpenAPI contract. Use only what they describe. If they do not answer something, say so; never invent an endpoint, field or behaviour.\n- learn_search: plain-words search across all of these when you do not know the topic id or operation name. Each match names the call that reads it.\n- learn_guide with page also reads the performance page (https://developers.foreverlearning.ai/docs/performance/), the pricing page (https://developers.foreverlearning.ai/pricing/), the security page (https://developers.foreverlearning.ai/security/), the changelog page (https://developers.foreverlearning.ai/changelog/): performance for turn times and designing the wait, pricing for what each API costs, security for keys, account changes, end users and escalation, changelog for what changed in the API and when.\n- learn_test_turn: one real test turn with the developer's own key, for a quick check. It costs one of the workspace's free test attempts (they never reset) or, on a live key, 5¢ per turn that succeeds. Ask the developer before each one. Show Learn's reply exactly as written. learn_lookup_request looks up a turn that was not confirmed, free.\n- The developer's key stays in their environment. Never ask them to paste it into the conversation, and never write it into a file, a page or a command."},"jsonrpc":"2.0","id":1} {"result":{"tools":[{"name":"learn_guide","title":"Learn integration guide","description":"Read the Learn API integration guide (snapshot of 2026-11-29, learn-mcp 0.1.10), whole or by topic, or one of its runnable examples. Use it for any question about building with the Learn API: preparing a session, the four kinds of help, sending a turn and accepting it only on its final done event, the safety status, receipts, errors and recovery. For exact request and response fields, use learn_contract. Answer only from what it says; if it does not cover something, say so instead of guessing. Topics: access, setup, content, display-name, learner, learner-id, controls, diagnostic, files, turn, safety, team, receipts, timing, saved, open-session, long-sessions, recovery, errors, privacy, price, examples. Examples: README.md, prepare.mjs, quest.ts, quest.py, quest.sh, server.ts. Other guide pages, with page: performance (Fast today. Faster every release., https://developers.foreverlearning.ai/docs/performance/; topics: expect, by-turn-type, edge-cases, faster, checked-first, wait); pricing (Pay only for what you use., https://developers.foreverlearning.ai/pricing/; topics: 5-per-turn-that-succeeds, 3-per-text-turn, memory-that-outlives-the-session, safety-that-reads-the-whole-conversation, understand-what-youll-pay, an-api-built-for-your-organization); security (Build the boundary into your integration., https://developers.foreverlearning.ai/security/; topics: keep-secrets-on-the-server, protect-account-changes, respect-the-person-behind-the-conversation, make-escalation-explicit, report-a-concern); changelog (Know what the contract says., https://developers.foreverlearning.ai/changelog/; topics: learn-replies-arrive-as-soon-as-they-are-checked, fifty-free-attempts-with-learn-and-conversations, learn-learning-sessions, replies-regenerate-before-a-turn-fails, failed-turns-resolve-cleanly, characters-that-carry-the-moment, conversations-api-released, current-conversation-contract-documented). Read performance for what to expect from turn times and how to design the wait, pricing for what each API costs, security for keys, account changes, end users and escalation, changelog for what changed in the API and when.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"topic":{"description":"A topic id from the list (for example \"turn\", \"safety\", \"errors\") or words from its heading. Leave it out for the whole guide.","type":"string","maxLength":200},"example":{"description":"A runnable example file to read instead, for example \"quest.ts\" or \"README.md\".","type":"string","maxLength":200},"page":{"description":"Another guide page to read instead of the integration guide: \"performance\", \"pricing\", \"security\", \"changelog\"; with topic, one of its sections.","type":"string","maxLength":200}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"learn_contract","title":"Learn API contract","description":"Read the Learn API contract (OpenAPI 3.1 and JSON Schema, snapshot of 2026-11-29). With no arguments: every operation, by method, path and operationId. With operation (an operationId such as \"developerChat\", or \"POST /v1/chat\"): that operation with every schema it uses filled in. With file: one whole contract file (large). Use only fields the contract defines. For how and why to use an operation, use learn_guide.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"operation":{"description":"An operationId, or a method and path such as \"GET /v1/requests/{request_id}\".","type":"string","maxLength":200},"file":{"description":"One whole contract file.","type":"string","enum":["learn.openapi.json","learn-v1.schema.json","developer-runtime.openapi.json","developer-runtime.schema.json"]}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"learn_kit","title":"Build with Learn kits","description":"With no kit, list every Build with Learn kit; with a kit id, read that kit: where to run it, its verified prompt word for word, its check (what the finished app shows, with a real reply), and its finished checkpoint folder in learn-tutor-starter. The kits are step-by-step builds with the Learn API, from a first tutor page to embedding Learn in an existing app; each prompt for coding assistants is verified as written. Start here, with no kit, when the developer wants to add tutoring, a tutor, homework help or learning help to an app with the Learn API. Kits: 01-first-tutor, 02-four-kinds-of-help, 03-photos-of-work, 04-remember-the-learner, 05-safety-status, embed, class. The checkpoint folder's files are in learn_starter_file.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"kit":{"description":"A kit id such as \"01-first-tutor\" or \"embed\", a step number, or words from its title. Leave it out to list every kit.","type":"string","maxLength":200}}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"learn_starter_file","title":"Files of a kit checkpoint","description":"List or read the files of a kit's finished checkpoint folder in learn-tutor-starter (MIT). With only kit, list the folder's files; with path, read one file. The kit itself (prompt, check) is in learn_kit.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"kit":{"type":"string","maxLength":200,"description":"The kit id, for example \"01-first-tutor\"."},"path":{"description":"A file path inside the kit folder, for example \"learn.ts\" or \"public/app.js\". Leave it out to list the folder's files.","type":"string","maxLength":300}},"required":["kit"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"learn_search","title":"Search the Learn docs","description":"Search the Learn API docs by plain words when you don't know the topic id or operation name. Returns matching guide sections, pages, contract operations, examples and kits, each with the call that reads it.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"query":{"type":"string","minLength":1,"maxLength":200,"description":"Plain words, for example \"photo upload\", \"what changed\" or \"developerChat\"."}},"required":["query"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"learn_test_turn","title":"Send one Learn test turn","description":"Send ONE real test turn to the Learn API with the developer's own key (from this server's environment), as one stable test learner for this project, and return Learn's reply exactly as written (both parts), its safety status and its receipt. Cost: in test mode each turn uses 1 of the workspace's free test attempts (for the life of the workspace, never reset); with a live key, 5¢ per turn that succeeds, and a live key is refused unless allow_live is true. Preparing the session is free; the session is never ended by this tool. First call it without confirm to see the exact cost, tell the developer, and call again with confirm: true only after they agree in the conversation. At most 2 turns per server run. It never retries: if a turn is not confirmed, use learn_lookup_request with the request id it returns. Show Learn's reply to the developer exactly as written; never paraphrase, summarize or correct it.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"message":{"description":"The learner's message, as a learner would write it. Use made-up work, never real learner data.","type":"string","maxLength":10000},"kind":{"default":"guided","description":"The kind of help: guided (a hint toward the next step; the default), feedback (a check of work included in the message), explain (an explanation of a solution included in the message).","type":"string","enum":["guided","feedback","explain"]},"opening":{"default":false,"description":"Ask for Learn's generated opening instead of sending a message. It is a turn of its own.","type":"boolean"},"confirm":{"default":false,"description":"Set to true only after the developer has agreed to the cost in this conversation.","type":"boolean"},"allow_live":{"default":false,"description":"Set to true only when the developer has said to use a live key, which spends real money.","type":"boolean"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},{"name":"learn_lookup_request","title":"Look up a Learn request","description":"Look up a Learn request by its request id (GET /v1/requests/), as this project's test learner. Free: it never generates a reply. Use it after a test turn that was not confirmed, before sending anything again. It returns the committed reply word for word, or says the request is still running or unavailable. Show a committed reply exactly as written.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"request_id":{"type":"string","minLength":1,"maxLength":200,"description":"The request id from the test turn (req_...)."}},"required":["request_id"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}]},"jsonrpc":"2.0","id":2}