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.8","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_kits and learn_kit: the Build with Learn kits. 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_kits, then follow the matching kit's prompt as written.\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_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/): performance for turn times and designing the wait, pricing for what each API costs, security for keys, account changes, end users and escalation.\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), 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. 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, 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). 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.","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\" or \"security\"; 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.","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_kits","title":"Build with Learn kits","description":"List the Build with Learn kits: step-by-step builds with the Learn API, from a first tutor page to embedding Learn in an existing app. Each kit has a prompt for coding assistants that is verified as written, a check of what the result should show, and a finished checkpoint folder. Start here when the developer wants to add tutoring, a tutor, homework help or learning help to an app with the Learn API.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{}},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"learn_kit","title":"One Build with Learn kit","description":"Read one Build with Learn 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. Kits: 01-first-tutor, 02-four-kinds-of-help, 03-photos-of-work, 04-remember-the-learner, 05-safety-status, embed, class.","inputSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"kit":{"type":"string","maxLength":200,"description":"A kit id such as \"01-first-tutor\" or \"embed\", a step number, or words from its title."}},"required":["kit"]},"annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"learn_starter_file","title":"A file from a kit checkpoint","description":"Read one file of a kit's finished checkpoint folder in learn-tutor-starter (MIT), to compare with or start from. learn_kit lists each folder's files.","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":{"type":"string","maxLength":300,"description":"The file path inside the kit folder, for example \"learn.ts\" or \"public/app.js\"."}},"required":["kit","path"]},"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}